ttxskk commited on
Commit
6a8b994
1 Parent(s): 68bb4ad

Update datasets/INFERENCE_demo.py

Browse files
Files changed (1) hide show
  1. datasets/INFERENCE_demo.py +1 -1
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>self.num_person:
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]