Skip to content

Commit 0dffdf2

Browse files
committed
Merge branch 'main' of github.com:pytorch/vision into update-usort
2 parents 1589df9 + 9293be7 commit 0dffdf2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+1748
-819
lines changed

.circleci/config.yml

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.circleci/config.yml.in

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ jobs:
458458
binary_macos_wheel:
459459
<<: *binary_common
460460
macos:
461-
xcode: "12.0"
461+
xcode: "14.0"
462462
steps:
463463
- checkout_merge
464464
- designate_upload_channel
@@ -481,7 +481,7 @@ jobs:
481481
binary_ios_build:
482482
<<: *torchvision_ios_params
483483
macos:
484-
xcode: "12.0"
484+
xcode: "14.0"
485485
steps:
486486
- attach_workspace:
487487
at: ~/workspace
@@ -501,7 +501,7 @@ jobs:
501501
binary_ios_upload:
502502
<<: *torchvision_ios_params
503503
macos:
504-
xcode: "12.0"
504+
xcode: "14.0"
505505
steps:
506506
- attach_workspace:
507507
at: ~/workspace
@@ -554,7 +554,7 @@ jobs:
554554
binary_macos_conda:
555555
<<: *binary_common
556556
macos:
557-
xcode: "12.0"
557+
xcode: "14.0"
558558
steps:
559559
- checkout_merge
560560
- designate_upload_channel
@@ -901,7 +901,7 @@ jobs:
901901
unittest_macos_cpu:
902902
<<: *binary_common
903903
macos:
904-
xcode: "12.0"
904+
xcode: "14.0"
905905
resource_class: large
906906
steps:
907907
- checkout
@@ -977,7 +977,7 @@ jobs:
977977
cmake_macos_cpu:
978978
<<: *binary_common
979979
macos:
980-
xcode: "12.0"
980+
xcode: "14.0"
981981
steps:
982982
- checkout_merge
983983
- designate_upload_channel

.github/workflows/prototype-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,4 @@ jobs:
4141

4242
- name: Run prototype tests
4343
shell: bash
44-
run: pytest --durations=20 test/test_prototype_*.py
44+
run: pytest -vvv --durations=20 test/test_prototype_*.py

README.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ supported Python versions.
2323
+==========================+==========================+=================================+
2424
| ``main`` / ``nightly`` | ``main`` / ``nightly`` | ``>=3.7``, ``<=3.10`` |
2525
+--------------------------+--------------------------+---------------------------------+
26+
| ``1.12.0`` | ``0.13.0`` | ``>=3.7``, ``<=3.10`` |
27+
+--------------------------+--------------------------+---------------------------------+
2628
| ``1.11.0`` | ``0.12.0`` | ``>=3.7``, ``<=3.10`` |
2729
+--------------------------+--------------------------+---------------------------------+
2830
| ``1.10.2`` | ``0.11.3`` | ``>=3.6``, ``<=3.9`` |

docs/source/models/swin_transformer.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ paper.
1111
Model builders
1212
--------------
1313

14-
The following model builders can be used to instanciate an SwinTransformer model.
14+
The following model builders can be used to instantiate an SwinTransformer model.
1515
`swin_t` can be instantiated with pre-trained weights and all others without.
1616
All the model builders internally rely on the ``torchvision.models.swin_transformer.SwinTransformer``
1717
base class. Please refer to the `source code

gallery/plot_video_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ def example_read_video(video_object, start=0, end=None, read_video=True, read_au
170170
print(vf.size(), af.size())
171171

172172
####################################
173-
# 3. Building an example randomly sampled dataset (can be applied to training dataest of kinetics400)
173+
# 3. Building an example randomly sampled dataset (can be applied to training dataset of kinetics400)
174174
# -------------------------------------------------------------------------------------------------------
175175
# Cool, so now we can use the same principle to make the sample dataset.
176176
# We suggest trying out iterable dataset for this purpose.

hubconf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
resnet152,
5050
resnext50_32x4d,
5151
resnext101_32x8d,
52+
resnext101_64x4d,
5253
wide_resnet50_2,
5354
wide_resnet101_2,
5455
)

ios/LibTorchvision.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
pytorch_version = '1.11.0'
1+
pytorch_version = '1.12.0'
22

33
Pod::Spec.new do |s|
44
s.name = 'LibTorchvision'
5-
s.version = '0.12.0'
5+
s.version = '0.13.0'
66
s.authors = 'PyTorch Team'
77
s.license = { :type => 'BSD' }
88
s.homepage = 'https://github.com/pytorch/vision'

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,7 @@ target-version = ["py37"]
1212
excludes = [
1313
"gallery",
1414
]
15+
16+
[build-system]
17+
18+
requires = ["setuptools", "torch", "wheel"]
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
from typing import Tuple
2+
3+
import torchvision
4+
from torch import Tensor
5+
6+
7+
class KineticsWithVideoId(torchvision.datasets.Kinetics):
8+
def __getitem__(self, idx: int) -> Tuple[Tensor, Tensor, int]:
9+
video, audio, info, video_idx = self.video_clips.get_clip(idx)
10+
label = self.samples[video_idx][1]
11+
12+
if self.transform is not None:
13+
video = self.transform(video)
14+
15+
return video, audio, label, video_idx

0 commit comments

Comments
 (0)