jwyang commited on
Commit
69ddcf7
·
1 Parent(s): c7077ad

minor change to app

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -68,7 +68,7 @@ build model
68
  model = build_model(config)
69
 
70
  url = './in21k_yfcc14m_gcc15m_swin_base.pth'
71
- checkpoint = torch.hub.load_state_dict_from_url(url=url, map_location="cpu", check_hash=True)
72
  model.load_state_dict(checkpoint["model"])
73
  model.eval()
74
 
 
68
  model = build_model(config)
69
 
70
  url = './in21k_yfcc14m_gcc15m_swin_base.pth'
71
+ checkpoint = torch.load(url)
72
  model.load_state_dict(checkpoint["model"])
73
  model.eval()
74