ZidongC commited on
Commit
3bf0f59
·
verified ·
1 Parent(s): bb3aff4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -32,7 +32,7 @@ DEVICE = 'cuda' if torch.cuda.is_available() else 'mps' if torch.backends.mps.is
32
  config = 'panda_large.yaml'
33
  with open(config, 'r') as f:
34
  config = yaml.load(f, Loader=yaml.FullLoader)
35
- hf_weight = hf_hub_download(repo_id=f"ZidongC/PanDA", filename=f"model.pth", repo_type="model")
36
  state_dict = torch.load(hf_weight, map_location="cpu")
37
  model = make(config['model'])
38
  if any(key.startswith('module') for key in state_dict.keys()):
 
32
  config = 'panda_large.yaml'
33
  with open(config, 'r') as f:
34
  config = yaml.load(f, Loader=yaml.FullLoader)
35
+ hf_weight = hf_hub_download(repo_id=f"ZidongC/PanDA", filename=f"panda_large.pth", repo_type="model")
36
  state_dict = torch.load(hf_weight, map_location="cpu")
37
  model = make(config['model'])
38
  if any(key.startswith('module') for key in state_dict.keys()):