Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Yolov3 #103

Merged
merged 15 commits into from
Dec 28, 2020
Next Next commit
fixed mined issues at classifier inference
  • Loading branch information
mrn-mln committed Dec 1, 2020
commit b5ae1e51d1d10ebbf76f068d4d25e0d1aa679e6b
6 changes: 4 additions & 2 deletions libs/distancing.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,10 @@ def __process(self, cv_image):
detection_scores.append(itm['score'])
class_ids.append(int(itm['id'].split('-')[0]))
detection_bboxes.append((int(x0 * w), int(y0 * h), int(x1 * w), int(y1 * h)))
faces = np.array(faces)
face_mask_results, scores = self.classifier.inference(faces)

if self.classifier is not None:
faces = np.array(faces)
face_mask_results, scores = self.classifier.inference(faces)

tracks = self.tracker.update(detection_bboxes, class_ids, detection_scores)
self.update_history(tracks)
Expand Down