Skip to content

Commit 81cba99

Browse files
datumboxfacebook-github-bot
authored andcommitted
[fbsync] Replace master with main in links to torchvision repo (#4365)
Reviewed By: fmassa Differential Revision: D30793340 fbshipit-source-id: 1ea65484704c3ef0c2f3d34492a54b5d7a19f296
1 parent c572e4b commit 81cba99

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

gallery/plot_video_api.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535

3636
# Download the sample video
3737
download_url(
38-
"https://github.com/pytorch/vision/blob/master/test/assets/videos/WUzgd7C1pWA.mp4?raw=true",
38+
"https://github.com/pytorch/vision/blob/main/test/assets/videos/WUzgd7C1pWA.mp4?raw=true",
3939
".",
4040
"WUzgd7C1pWA.mp4"
4141
)
@@ -187,26 +187,26 @@ def example_read_video(video_object, start=0, end=None, read_video=True, read_au
187187
# Download the videos
188188
from torchvision.datasets.utils import download_url
189189
download_url(
190-
"https://github.com/pytorch/vision/blob/master/test/assets/videos/WUzgd7C1pWA.mp4?raw=true",
190+
"https://github.com/pytorch/vision/blob/main/test/assets/videos/WUzgd7C1pWA.mp4?raw=true",
191191
"./dataset/1", "WUzgd7C1pWA.mp4"
192192
)
193193
download_url(
194-
"https://github.com/pytorch/vision/blob/master/test/assets/videos/RATRACE_wave_f_nm_np1_fr_goo_37.avi?raw=true",
194+
"https://github.com/pytorch/vision/blob/main/test/assets/videos/RATRACE_wave_f_nm_np1_fr_goo_37.avi?raw=true",
195195
"./dataset/1",
196196
"RATRACE_wave_f_nm_np1_fr_goo_37.avi"
197197
)
198198
download_url(
199-
"https://github.com/pytorch/vision/blob/master/test/assets/videos/SOX5yA1l24A.mp4?raw=true",
199+
"https://github.com/pytorch/vision/blob/main/test/assets/videos/SOX5yA1l24A.mp4?raw=true",
200200
"./dataset/2",
201201
"SOX5yA1l24A.mp4"
202202
)
203203
download_url(
204-
"https://github.com/pytorch/vision/blob/master/test/assets/videos/v_SoccerJuggling_g23_c01.avi?raw=true",
204+
"https://github.com/pytorch/vision/blob/main/test/assets/videos/v_SoccerJuggling_g23_c01.avi?raw=true",
205205
"./dataset/2",
206206
"v_SoccerJuggling_g23_c01.avi"
207207
)
208208
download_url(
209-
"https://github.com/pytorch/vision/blob/master/test/assets/videos/v_SoccerJuggling_g24_c01.avi?raw=true",
209+
"https://github.com/pytorch/vision/blob/main/test/assets/videos/v_SoccerJuggling_g24_c01.avi?raw=true",
210210
"./dataset/2",
211211
"v_SoccerJuggling_g24_c01.avi"
212212
)

references/video_classification/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ python -m torch.distributed.launch --nproc_per_node=8 --use_env train.py --data-
2222
```
2323

2424
**Note:** all our models were trained on 8 nodes with 8 V100 GPUs each for a total of 64 GPUs. Expected training time for 64 GPUs is 24 hours, depending on the storage solution.
25-
**Note 2:** hyperparameters for exact replication of our training can be found [here](https://github.com/pytorch/vision/blob/master/torchvision/models/video/README.md). Some hyperparameters such as learning rate are scaled linearly in proportion to the number of GPUs.
25+
**Note 2:** hyperparameters for exact replication of our training can be found [here](https://github.com/pytorch/vision/blob/main/torchvision/models/video/README.md). Some hyperparameters such as learning rate are scaled linearly in proportion to the number of GPUs.
2626

2727
### Single GPU
2828

torchvision/models/video/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Additional documentation can be found [here](https://pytorch.org/docs/stable/tor
88

99
### Kinetics400 dataset pretraining parameters
1010

11-
See reference training script [here](https://github.com/pytorch/vision/blob/master/references/video_classification/train.py):
11+
See reference training script [here](https://github.com/pytorch/vision/blob/main/references/video_classification/train.py):
1212

1313
- input size: [3, 16, 112, 112]
1414
- input space: RGB

torchvision/transforms/transforms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ class ToTensor:
8383
Because the input image is scaled to [0.0, 1.0], this transformation should not be used when
8484
transforming target image masks. See the `references`_ for implementing the transforms for image masks.
8585
86-
.. _references: https://github.com/pytorch/vision/tree/master/references/segmentation
86+
.. _references: https://github.com/pytorch/vision/tree/main/references/segmentation
8787
"""
8888

8989
def __call__(self, pic):

0 commit comments

Comments
 (0)