Fix the visualization bug that incorrectly assumes predictions to have keypoints.
Summary: This diff fixes a bug in the visualization framework, which image_inference and video_inference debugging tools utilize to visualize RCNN model outputs.
@@ -631,7 +631,7 @@ class Visualizer:
Returns:
output (VisImage): image object with visualizations.
"""
- num_instances = None
+ num_instances = 0
if boxes is not None:
boxes = self._convert_boxes(boxes)
num_instances = len(boxes)
