Spaces:
Runtime error
Runtime error
Nadine Rueegg
commited on
Commit
·
6276e10
1
Parent(s):
bc8bb8d
remove fig
Browse files- scripts/gradio_demo.py +1 -1
scripts/gradio_demo.py
CHANGED
@@ -152,7 +152,7 @@ def run_bbox_inference(input_image):
|
|
152 |
cfg = get_cfg_global_updated()
|
153 |
out_path = os.path.join(cfg.paths.ROOT_OUT_PATH, 'gradio_examples', 'test2.png')
|
154 |
img, bbox = detect_object(model=model_bbox, img_path_or_img=input_image, confidence=0.5)
|
155 |
-
fig = plt.figure() # plt.figure(figsize=(20,30))
|
156 |
# plt.imsave(out_path, img)
|
157 |
return img, bbox
|
158 |
|
|
|
152 |
cfg = get_cfg_global_updated()
|
153 |
out_path = os.path.join(cfg.paths.ROOT_OUT_PATH, 'gradio_examples', 'test2.png')
|
154 |
img, bbox = detect_object(model=model_bbox, img_path_or_img=input_image, confidence=0.5)
|
155 |
+
# fig = plt.figure() # plt.figure(figsize=(20,30))
|
156 |
# plt.imsave(out_path, img)
|
157 |
return img, bbox
|
158 |
|