Commit 4dba273d authored by Mark Daoust's avatar Mark Daoust
Browse files

replace commented prints with logging.debug

parent 7a27ad85
...@@ -1078,7 +1078,7 @@ ...@@ -1078,7 +1078,7 @@
" if (bbox.x0 < self.border or bbox.y0 < self.border or\n", " if (bbox.x0 < self.border or bbox.y0 < self.border or\n",
" bbox.x1 >= image_w - self.border or\n", " bbox.x1 >= image_w - self.border or\n",
" bbox.y1 >= image_h - self.border):\n", " bbox.y1 >= image_h - self.border):\n",
" # print('Skipping detection because it\\'s close to the border.')\n", " logging.debug('Skipping detection because it\\'s close to the border.')\n",
" continue\n", " continue\n",
"\n", "\n",
" # See if detection can be linked to an existing track.\n", " # See if detection can be linked to an existing track.\n",
...@@ -1086,7 +1086,7 @@ ...@@ -1086,7 +1086,7 @@
" overlap_index = 0\n", " overlap_index = 0\n",
" overlap_max = -1000\n", " overlap_max = -1000\n",
" for track_index, track in enumerate(self.tracks):\n", " for track_index, track in enumerate(self.tracks):\n",
" # print(f'Testing track {track_index}')\n", " loggine.debug('Testing track %d', track_index)\n",
" if track.det.class_id != detection.class_id:\n", " if track.det.class_id != detection.class_id:\n",
" continue\n", " continue\n",
" overlap = detection.bbox.iou(track.det.bbox)\n", " overlap = detection.bbox.iou(track.det.bbox)\n",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment