Update app.py
Browse files
app.py
CHANGED
@@ -24,7 +24,7 @@ def show_preds(input_image, display_label, display_bbox, detection_threshold):
|
|
24 |
|
25 |
img = PIL.Image.fromarray(input_image, 'RGB')
|
26 |
|
27 |
-
pred_dict = models.torchvision.faster_rcnn.end2end_detect(img, valid_tfms, model1, class_map=class_map, detection_threshold=detection_threshold,
|
28 |
display_label=display_label, display_bbox=display_bbox, return_img=True,
|
29 |
font_size=16, label_color="#FF59D6")
|
30 |
|
|
|
24 |
|
25 |
img = PIL.Image.fromarray(input_image, 'RGB')
|
26 |
|
27 |
+
pred_dict = models.torchvision.faster_rcnn.end2end_detect(img, valid_tfms, model1, class_map=ClassMap(class_map), detection_threshold=detection_threshold,
|
28 |
display_label=display_label, display_bbox=display_bbox, return_img=True,
|
29 |
font_size=16, label_color="#FF59D6")
|
30 |
|