Skip to content

Commit 5ce2758

Browse files
Merge branch 'master' into svhn-hwc
2 parents 176d0fd + 37eb37a commit 5ce2758

Some content is hidden

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

67 files changed

+919
-2116
lines changed

.circleci/config.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1498,13 +1498,11 @@ workflows:
14981498
- torch_onnx_test
14991499
- binary_ios_build:
15001500
build_environment: binary-libtorchvision_ops-ios-12.0.0-x86_64
1501-
context: org-member
15021501
ios_arch: x86_64
15031502
ios_platform: SIMULATOR
15041503
name: binary_libtorchvision_ops_ios_12.0.0_x86_64
15051504
- binary_ios_build:
15061505
build_environment: binary-libtorchvision_ops-ios-12.0.0-arm64
1507-
context: org-member
15081506
ios_arch: arm64
15091507
ios_platform: OS
15101508
name: binary_libtorchvision_ops_ios_12.0.0_arm64
@@ -1657,7 +1655,6 @@ workflows:
16571655
- torch_onnx_test
16581656
- binary_ios_build:
16591657
build_environment: nightly-binary-libtorchvision_ops-ios-12.0.0-x86_64
1660-
context: org-member
16611658
filters:
16621659
branches:
16631660
only:
@@ -1667,7 +1664,6 @@ workflows:
16671664
name: nightly_binary_libtorchvision_ops_ios_12.0.0_x86_64
16681665
- binary_ios_build:
16691666
build_environment: nightly-binary-libtorchvision_ops-ios-12.0.0-arm64
1670-
context: org-member
16711667
filters:
16721668
branches:
16731669
only:

.circleci/regenerate.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,6 @@ def ios_workflows(indentation=6, nightly=False):
271271
build_job_names.append(name)
272272
build_job = {
273273
'build_environment': f'{env_prefix}binary-libtorchvision_ops-ios-12.0.0-{arch}',
274-
'context': 'org-member',
275274
'ios_arch': arch,
276275
'ios_platform': platform,
277276
'name': name,

examples/python/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
[Examples of Tensor Images transformations](https://github.com/pytorch/vision/blob/master/examples/python/tensor_transforms.ipynb)
55
- [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/pytorch/vision/blob/master/examples/python/video_api.ipynb)
66
[Example of VideoAPI](https://github.com/pytorch/vision/blob/master/examples/python/video_api.ipynb)
7+
- [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/pytorch/vision/blob/master/examples/python/visualization_utils.ipynb)
8+
[Example of Visualization Utils](https://github.com/pytorch/vision/blob/master/examples/python/visualization_utils.ipynb)
79

810

911
Prior to v0.8.0, transforms in torchvision have traditionally been PIL-centric and presented multiple limitations due to
@@ -16,3 +18,5 @@ features:
1618
- read and decode data directly as torch tensor with torchscript support (for PNG and JPEG image formats)
1719

1820
Furthermore, previously we used to provide a very high-level API for video decoding which left little control to the user. We're now expanding that API (and replacing it in the future) with a lower-level API that allows the user a frame-based access to a video.
21+
22+
Torchvision also provides utilities to visualize results. You can make grid of images, plot bounding boxes as well as segmentation masks. Thse utilities work standalone as well as with torchvision models for detection and segmentation.

examples/python/visualization_utils.ipynb

Lines changed: 683 additions & 0 deletions
Large diffs are not rendered by default.

packaging/conda/build_vision.sh

Lines changed: 0 additions & 223 deletions
This file was deleted.

packaging/conda/install_conda.bat

Lines changed: 0 additions & 1 deletion
This file was deleted.

packaging/conda/switch_cuda_version.sh

Lines changed: 0 additions & 28 deletions
This file was deleted.

packaging/pkg_helpers.bash

Lines changed: 7 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,7 @@ setup_cuda() {
5656
export CUDA_HOME=/usr/local/cuda-11.2/
5757
fi
5858
export FORCE_CUDA=1
59-
# Hard-coding gencode flags is temporary situation until
60-
# https://github.com/pytorch/pytorch/pull/23408 lands
61-
export NVCC_FLAGS="-gencode=arch=compute_35,code=sm_35 -gencode=arch=compute_50,code=sm_50 -gencode=arch=compute_60,code=sm_60 -gencode=arch=compute_70,code=sm_70 -gencode=arch=compute_75,code=sm_75 -gencode=arch=compute_80,code=sm_80 -gencode=arch=compute_86,code=sm_86 -gencode=arch=compute_50,code=compute_50"
59+
export TORCH_CUDA_ARCH_LIST="3.5;5.0+PTX;6.0;7.0;7.5;8.0;8.6"
6260
;;
6361
cu111)
6462
if [[ "$OSTYPE" == "msys" ]]; then
@@ -67,9 +65,7 @@ setup_cuda() {
6765
export CUDA_HOME=/usr/local/cuda-11.1/
6866
fi
6967
export FORCE_CUDA=1
70-
# Hard-coding gencode flags is temporary situation until
71-
# https://github.com/pytorch/pytorch/pull/23408 lands
72-
export NVCC_FLAGS="-gencode=arch=compute_35,code=sm_35 -gencode=arch=compute_50,code=sm_50 -gencode=arch=compute_60,code=sm_60 -gencode=arch=compute_70,code=sm_70 -gencode=arch=compute_75,code=sm_75 -gencode=arch=compute_80,code=sm_80 -gencode=arch=compute_86,code=sm_86 -gencode=arch=compute_50,code=compute_50"
68+
export TORCH_CUDA_ARCH_LIST="3.5;5.0+PTX;6.0;7.0;7.5;8.0;8.6"
7369
;;
7470
cu110)
7571
if [[ "$OSTYPE" == "msys" ]]; then
@@ -78,9 +74,7 @@ setup_cuda() {
7874
export CUDA_HOME=/usr/local/cuda-11.0/
7975
fi
8076
export FORCE_CUDA=1
81-
# Hard-coding gencode flags is temporary situation until
82-
# https://github.com/pytorch/pytorch/pull/23408 lands
83-
export NVCC_FLAGS="-gencode=arch=compute_35,code=sm_35 -gencode=arch=compute_50,code=sm_50 -gencode=arch=compute_60,code=sm_60 -gencode=arch=compute_70,code=sm_70 -gencode=arch=compute_75,code=sm_75 -gencode=arch=compute_80,code=sm_80 -gencode=arch=compute_50,code=compute_50"
77+
export TORCH_CUDA_ARCH_LIST="3.5;5.0+PTX;6.0;7.0;7.5;8.0"
8478
;;
8579
cu102)
8680
if [[ "$OSTYPE" == "msys" ]]; then
@@ -89,9 +83,7 @@ setup_cuda() {
8983
export CUDA_HOME=/usr/local/cuda-10.2/
9084
fi
9185
export FORCE_CUDA=1
92-
# Hard-coding gencode flags is temporary situation until
93-
# https://github.com/pytorch/pytorch/pull/23408 lands
94-
export NVCC_FLAGS="-gencode=arch=compute_35,code=sm_35 -gencode=arch=compute_50,code=sm_50 -gencode=arch=compute_60,code=sm_60 -gencode=arch=compute_70,code=sm_70 -gencode=arch=compute_75,code=sm_75 -gencode=arch=compute_50,code=compute_50"
86+
export TORCH_CUDA_ARCH_LIST="3.5;5.0+PTX;6.0;7.0;7.5"
9587
;;
9688
cu101)
9789
if [[ "$OSTYPE" == "msys" ]]; then
@@ -100,9 +92,7 @@ setup_cuda() {
10092
export CUDA_HOME=/usr/local/cuda-10.1/
10193
fi
10294
export FORCE_CUDA=1
103-
# Hard-coding gencode flags is temporary situation until
104-
# https://github.com/pytorch/pytorch/pull/23408 lands
105-
export NVCC_FLAGS="-gencode=arch=compute_35,code=sm_35 -gencode=arch=compute_50,code=sm_50 -gencode=arch=compute_60,code=sm_60 -gencode=arch=compute_70,code=sm_70 -gencode=arch=compute_75,code=sm_75 -gencode=arch=compute_50,code=compute_50"
95+
export TORCH_CUDA_ARCH_LIST="3.5;5.0+PTX;6.0;7.0;7.5"
10696
;;
10797
cu100)
10898
if [[ "$OSTYPE" == "msys" ]]; then
@@ -111,9 +101,7 @@ setup_cuda() {
111101
export CUDA_HOME=/usr/local/cuda-10.0/
112102
fi
113103
export FORCE_CUDA=1
114-
# Hard-coding gencode flags is temporary situation until
115-
# https://github.com/pytorch/pytorch/pull/23408 lands
116-
export NVCC_FLAGS="-gencode=arch=compute_35,code=sm_35 -gencode=arch=compute_50,code=sm_50 -gencode=arch=compute_60,code=sm_60 -gencode=arch=compute_70,code=sm_70 -gencode=arch=compute_75,code=sm_75 -gencode=arch=compute_50,code=compute_50"
104+
export TORCH_CUDA_ARCH_LIST="3.5;5.0+PTX;6.0;7.0;7.5"
117105
;;
118106
cu92)
119107
if [[ "$OSTYPE" == "msys" ]]; then
@@ -122,7 +110,7 @@ setup_cuda() {
122110
export CUDA_HOME=/usr/local/cuda-9.2/
123111
fi
124112
export FORCE_CUDA=1
125-
export NVCC_FLAGS="-gencode=arch=compute_35,code=sm_35 -gencode=arch=compute_50,code=sm_50 -gencode=arch=compute_60,code=sm_60 -gencode=arch=compute_70,code=sm_70 -gencode=arch=compute_50,code=compute_50"
113+
export TORCH_CUDA_ARCH_LIST="3.5;5.0+PTX;6.0;7.0"
126114
;;
127115
cpu)
128116
;;

packaging/torchvision/meta.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ build:
3737
script_env:
3838
- CUDA_HOME
3939
- FORCE_CUDA
40-
- NVCC_FLAGS
4140
- BUILD_VERSION
41+
- TORCH_CUDA_ARCH_LIST
4242
features:
4343
{{ environ.get('CONDA_CPUONLY_FEATURE') }}
4444

0 commit comments

Comments
 (0)