piyushgrover commited on
Commit
6d42992
·
1 Parent(s): d1be1c8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -16,7 +16,7 @@ device = torch.device('cpu')
16
  dataset_mean, dataset_std = (0.4914, 0.4822, 0.4465), \
17
  (0.2470, 0.2435, 0.2616)
18
  model = YoloV3Lightning.YOLOv3LightningModel(num_classes=cfg.NUM_CLASSES, anchors=cfg.ANCHORS, S=cfg.S)
19
- ckpt_file = 'ckpt_light.pth'
20
  checkpoint = load_model_from_checkpoint(device, file_name=ckpt_file)
21
  model.load_state_dict(checkpoint['model'], strict=False)
22
 
 
16
  dataset_mean, dataset_std = (0.4914, 0.4822, 0.4465), \
17
  (0.2470, 0.2435, 0.2616)
18
  model = YoloV3Lightning.YOLOv3LightningModel(num_classes=cfg.NUM_CLASSES, anchors=cfg.ANCHORS, S=cfg.S)
19
+ ckpt_file = 'ckpt_light2.pth'
20
  checkpoint = load_model_from_checkpoint(device, file_name=ckpt_file)
21
  model.load_state_dict(checkpoint['model'], strict=False)
22