KPrashanth commited on
Commit
6f2da8f
·
verified ·
1 Parent(s): 2c2fc49

Update utils/classifier.py

Browse files
Files changed (1) hide show
  1. utils/classifier.py +1 -1
utils/classifier.py CHANGED
@@ -51,7 +51,7 @@ def load_wbc_classifier(weights_path: str | Path):
51
  )
52
 
53
  # Load checkpoint
54
- ckpt = torch.load(weights_path, map_location=DEVICE)
55
  if "model_state_dict" in ckpt:
56
  model.load_state_dict(ckpt["model_state_dict"])
57
  else:
 
51
  )
52
 
53
  # Load checkpoint
54
+ ckpt = torch.load(weights_path, map_location=DEVICE,weights_only=False)
55
  if "model_state_dict" in ckpt:
56
  model.load_state_dict(ckpt["model_state_dict"])
57
  else: