Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
ResNet50_tensorflow
Commits
4dba273d
Commit
4dba273d
authored
May 18, 2022
by
Mark Daoust
Browse files
replace commented prints with logging.debug
parent
7a27ad85
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
official/projects/cots_detector/crown_of_thorns_starfish_detection_pipeline.ipynb
...etector/crown_of_thorns_starfish_detection_pipeline.ipynb
+2
-2
No files found.
official/projects/cots_detector/crown_of_thorns_starfish_detection_pipeline.ipynb
View file @
4dba273d
...
@@ -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",
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment