vobecant commited on
Commit
318ffb5
1 Parent(s): 179cb5d

Initial commit.

Browse files
Files changed (1) hide show
  1. segmenter_model/factory.py +1 -1
segmenter_model/factory.py CHANGED
@@ -49,7 +49,7 @@ def create_vit(model_cfg):
49
  # hard-coded for now, too lazy
50
  pretrained_weights = 'dino_deitsmall16_pretrain.pth'
51
  if not os.path.exists(pretrained_weights):
52
- requests.get(pretrained_weights, allow_redirects=True)
53
  model.load_state_dict(torch.load(pretrained_weights), strict=True)
54
  else:
55
  model = torch.hub.load('facebookresearch/dino:main', backbone)
 
49
  # hard-coded for now, too lazy
50
  pretrained_weights = 'dino_deitsmall16_pretrain.pth'
51
  if not os.path.exists(pretrained_weights):
52
+ requests.get('https://dl.fbaipublicfiles.com/dino/dino_deitsmall16_pretrain/dino_deitsmall16_pretrain.pth', allow_redirects=True)
53
  model.load_state_dict(torch.load(pretrained_weights), strict=True)
54
  else:
55
  model = torch.hub.load('facebookresearch/dino:main', backbone)