Spaces:
Build error
Build error
Assigned color to viz function
Browse files
app.py
CHANGED
@@ -51,6 +51,7 @@ def predict_combined_models(image_np, model1, model2):
|
|
51 |
max_boxes_to_draw=200,
|
52 |
min_score_thresh=.60,
|
53 |
agnostic_mode=False,
|
|
|
54 |
line_thickness=2)
|
55 |
|
56 |
# Visualization for model 2 (can adjust styles to differentiate)
|
@@ -64,6 +65,7 @@ def predict_combined_models(image_np, model1, model2):
|
|
64 |
max_boxes_to_draw=200,
|
65 |
min_score_thresh=.60,
|
66 |
agnostic_mode=False,
|
|
|
67 |
line_thickness=2)
|
68 |
|
69 |
# Combine and return final image
|
|
|
51 |
max_boxes_to_draw=200,
|
52 |
min_score_thresh=.60,
|
53 |
agnostic_mode=False,
|
54 |
+
colors=color_final,
|
55 |
line_thickness=2)
|
56 |
|
57 |
# Visualization for model 2 (can adjust styles to differentiate)
|
|
|
65 |
max_boxes_to_draw=200,
|
66 |
min_score_thresh=.60,
|
67 |
agnostic_mode=False,
|
68 |
+
colors=color_initial
|
69 |
line_thickness=2)
|
70 |
|
71 |
# Combine and return final image
|