Spaces:
Sleeping
Sleeping
Update datasets/INFERENCE_demo.py
Browse files
datasets/INFERENCE_demo.py
CHANGED
@@ -118,7 +118,7 @@ class INFERENCE_demo(torch.utils.data.Dataset):
|
|
118 |
for i, score in enumerate(scores):
|
119 |
if score < self.score_threshold:
|
120 |
break
|
121 |
-
if i
|
122 |
break
|
123 |
save_name = img_paths[ann_idx].split('/')[-1]
|
124 |
save_name = save_name.split('.')[0]
|
|
|
118 |
for i, score in enumerate(scores):
|
119 |
if score < self.score_threshold:
|
120 |
break
|
121 |
+
if i>=self.num_person:
|
122 |
break
|
123 |
save_name = img_paths[ann_idx].split('/')[-1]
|
124 |
save_name = save_name.split('.')[0]
|