allencbzhang commited on
Commit
d044d4b
·
verified ·
1 Parent(s): b2605e8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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
- checkpointer.load("https://huggingface.co/allencbzhang/Mr.DETR/blob/main/MrDETR_align_swinL_12ep_900q.pth")
 
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(