Skip to content

Commit

Permalink
[fbsync] Replace master with main in links to torchvision repo (#4365)
Browse files Browse the repository at this point in the history
Reviewed By: fmassa

Differential Revision: D30793340

fbshipit-source-id: 1ea65484704c3ef0c2f3d34492a54b5d7a19f296
  • Loading branch information
datumbox authored and facebook-github-bot committed Sep 9, 2021
1 parent c572e4b commit 81cba99
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions gallery/plot_video_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

# Download the sample video
download_url(
"https://github.com/pytorch/vision/blob/master/test/assets/videos/WUzgd7C1pWA.mp4?raw=true",
"https://github.com/pytorch/vision/blob/main/test/assets/videos/WUzgd7C1pWA.mp4?raw=true",
".",
"WUzgd7C1pWA.mp4"
)
Expand Down Expand Up @@ -187,26 +187,26 @@ def example_read_video(video_object, start=0, end=None, read_video=True, read_au
# Download the videos
from torchvision.datasets.utils import download_url
download_url(
"https://github.com/pytorch/vision/blob/master/test/assets/videos/WUzgd7C1pWA.mp4?raw=true",
"https://github.com/pytorch/vision/blob/main/test/assets/videos/WUzgd7C1pWA.mp4?raw=true",
"./dataset/1", "WUzgd7C1pWA.mp4"
)
download_url(
"https://github.com/pytorch/vision/blob/master/test/assets/videos/RATRACE_wave_f_nm_np1_fr_goo_37.avi?raw=true",
"https://github.com/pytorch/vision/blob/main/test/assets/videos/RATRACE_wave_f_nm_np1_fr_goo_37.avi?raw=true",
"./dataset/1",
"RATRACE_wave_f_nm_np1_fr_goo_37.avi"
)
download_url(
"https://github.com/pytorch/vision/blob/master/test/assets/videos/SOX5yA1l24A.mp4?raw=true",
"https://github.com/pytorch/vision/blob/main/test/assets/videos/SOX5yA1l24A.mp4?raw=true",
"./dataset/2",
"SOX5yA1l24A.mp4"
)
download_url(
"https://github.com/pytorch/vision/blob/master/test/assets/videos/v_SoccerJuggling_g23_c01.avi?raw=true",
"https://github.com/pytorch/vision/blob/main/test/assets/videos/v_SoccerJuggling_g23_c01.avi?raw=true",
"./dataset/2",
"v_SoccerJuggling_g23_c01.avi"
)
download_url(
"https://github.com/pytorch/vision/blob/master/test/assets/videos/v_SoccerJuggling_g24_c01.avi?raw=true",
"https://github.com/pytorch/vision/blob/main/test/assets/videos/v_SoccerJuggling_g24_c01.avi?raw=true",
"./dataset/2",
"v_SoccerJuggling_g24_c01.avi"
)
Expand Down
2 changes: 1 addition & 1 deletion references/video_classification/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ python -m torch.distributed.launch --nproc_per_node=8 --use_env train.py --data-
```

**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.
**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.
**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.

### Single GPU

Expand Down
2 changes: 1 addition & 1 deletion torchvision/models/video/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Additional documentation can be found [here](https://pytorch.org/docs/stable/tor

### Kinetics400 dataset pretraining parameters

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

- input size: [3, 16, 112, 112]
- input space: RGB
Expand Down
2 changes: 1 addition & 1 deletion torchvision/transforms/transforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class ToTensor:
Because the input image is scaled to [0.0, 1.0], this transformation should not be used when
transforming target image masks. See the `references`_ for implementing the transforms for image masks.
.. _references: https://github.com/pytorch/vision/tree/master/references/segmentation
.. _references: https://github.com/pytorch/vision/tree/main/references/segmentation
"""

def __call__(self, pic):
Expand Down

0 comments on commit 81cba99

Please sign in to comment.