Sijuade commited on
Commit
e3e3ffd
·
1 Parent(s): 86a0fab

Update gradio_utils.py

Browse files
Files changed (1) hide show
  1. gradio_utils.py +2 -3
gradio_utils.py CHANGED
@@ -30,9 +30,8 @@ icons = [
30
 
31
  icons_mapping = {config.PASCAL_CLASSES[i]:icons[i] for i in range(len(icons))}
32
 
33
- YOLO = YOLOv3Lightning()
34
- model = YOLO.load_from_checkpoint('YoLoV3Model2.ckpt',
35
- map_location=torch.device('cpu'))
36
  model.eval()
37
 
38
  scaled_anchors = (
 
30
 
31
  icons_mapping = {config.PASCAL_CLASSES[i]:icons[i] for i in range(len(icons))}
32
 
33
+ model = YOLOv3Lightning.load_from_checkpoint('YoLoV3Model2.ckpt',
34
+ map_location=torch.device('cpu'))
 
35
  model.eval()
36
 
37
  scaled_anchors = (