Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

Commit

Permalink
change torch.hub link to main branch name
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathilde Caron committed Sep 21, 2021
1 parent 5e073db commit 06b1b7c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ We release several models pre-trained with SwAV with the hope that other researc
To load our best SwAV pre-trained ResNet-50 model, simply do:
```python
import torch
model = torch.hub.load('facebookresearch/swav', 'resnet50')
model = torch.hub.load('facebookresearch/swav:main', 'resnet50')
```

We provide several baseline SwAV pre-trained models with ResNet-50 architecture in torchvision format.
Expand All @@ -44,9 +44,9 @@ We provide SwAV models with ResNet-50 networks where we multiply the width by a
To load the corresponding backbone you can use:
```python
import torch
rn50w2 = torch.hub.load('facebookresearch/swav', 'resnet50w2')
rn50w4 = torch.hub.load('facebookresearch/swav', 'resnet50w4')
rn50w5 = torch.hub.load('facebookresearch/swav', 'resnet50w5')
rn50w2 = torch.hub.load('facebookresearch/swav:main', 'resnet50w2')
rn50w4 = torch.hub.load('facebookresearch/swav:main', 'resnet50w4')
rn50w5 = torch.hub.load('facebookresearch/swav:main', 'resnet50w5')
```

| network | parameters | epochs | ImageNet top-1 acc. | url | args |
Expand Down

0 comments on commit 06b1b7c

Please sign in to comment.