Update tools/demo_api.py
Browse files- tools/demo_api.py +1 -1
tools/demo_api.py
CHANGED
@@ -157,7 +157,7 @@ def run_detection(predictor, path):
|
|
157 |
"filename": image_name }
|
158 |
img_list.append(img_entry)
|
159 |
|
160 |
-
if
|
161 |
for id, output in enumerate(outputs[0]):
|
162 |
print(output)
|
163 |
ann_entry = {"id": id,
|
|
|
157 |
"filename": image_name }
|
158 |
img_list.append(img_entry)
|
159 |
|
160 |
+
if outputs[0] is not None:
|
161 |
for id, output in enumerate(outputs[0]):
|
162 |
print(output)
|
163 |
ann_entry = {"id": id,
|