Spaces:
Runtime error
Runtime error
Update gradio_utils.py
Browse files- 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 |
-
|
34 |
-
|
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 = (
|