Skip to content

Commit 9176db6

Browse files
Carolyn Soofacebook-github-bot
authored andcommitted
Visualize eval results for frame V2 - use new annotation loader
Summary: Use D32096988 to get predictions from file. Refactor out json loading logic from here. I opted to leave bbox/kpt filtering logic here rather than in the loader, because I don't feel it's appropriate for a loader to modify/truncate/determine what it is loading. --------- References: * D31199879 * [visualizer.py](https://www.internalfb.com/code/fbsource/fbcode/portalai/detectron2/tools/inference/visualizer.py) * [frame_grabber.py](https://www.internalfb.com/code/fbsource/[9d0cc082a413]/fbcode/portalai/data/core/frame_grabber.py) * [Sample worldmodel prediction, from the json](https://www.internalfb.com/phabricator/paste/view/P462408906) Reviewed By: abhinavgar Differential Revision: D32119148 fbshipit-source-id: b10ce49cb647322bec9ab625cc5f3014c261425e
1 parent 08f617c commit 9176db6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

detectron2/utils/visualizer.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -800,6 +800,7 @@ def draw_and_connect_keypoints(self, keypoints):
800800
visible = {}
801801
keypoint_names = self.metadata.get("keypoint_names")
802802
for idx, keypoint in enumerate(keypoints):
803+
803804
# draw keypoint
804805
x, y, prob = keypoint
805806
if prob > self.keypoint_threshold:

0 commit comments

Comments
 (0)