Federico Galatolo commited on
Commit
0a91a75
1 Parent(s): 97ba1b0

specify cpu in gradcam

Browse files
Files changed (1) hide show
  1. plots/plot_gradcam.py +2 -1
plots/plot_gradcam.py CHANGED
@@ -19,7 +19,8 @@ def plot_gradcam(**kwargs):
19
  cfg_list = [
20
  "MODEL.ROI_HEADS.SCORE_THRESH_TEST", str(kwargs.th),
21
  "MODEL.ROI_HEADS.NUM_CLASSES", "3",
22
- "MODEL.WEIGHTS", kwargs.model
 
23
  ]
24
 
25
  metadata = Metadata()
 
19
  cfg_list = [
20
  "MODEL.ROI_HEADS.SCORE_THRESH_TEST", str(kwargs.th),
21
  "MODEL.ROI_HEADS.NUM_CLASSES", "3",
22
+ "MODEL.WEIGHTS", kwargs.model,
23
+ "MODEL.DEVICE", "cpu"
24
  ]
25
 
26
  metadata = Metadata()