Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,8 @@ if __name__ == "__main__":
|
|
18 |
cfg["train"].device = "cpu"
|
19 |
model = instantiate(cfg.model)
|
20 |
checkpointer = DetectionCheckpointer(model)
|
21 |
-
|
|
|
22 |
|
23 |
model.eval()
|
24 |
vis_demo = VisualizationDemo(
|
|
|
18 |
cfg["train"].device = "cpu"
|
19 |
model = instantiate(cfg.model)
|
20 |
checkpointer = DetectionCheckpointer(model)
|
21 |
+
os.system("wget https://huggingface.co/allencbzhang/Mr.DETR/blob/main/MrDETR_align_swinL_12ep_900q.pth")
|
22 |
+
checkpointer.load("MrDETR_align_swinL_12ep_900q.pth")
|
23 |
|
24 |
model.eval()
|
25 |
vis_demo = VisualizationDemo(
|