Update app.py
Browse files
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"
|
| 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()):
|