Created
April 28, 2020 16:35
-
-
Save aravindpai/68d0fb86331a5dcdf5e8d9729a206ad3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Use `Visualizer` to draw the predictions on the image. | |
v = Visualizer(img[:, :, ::-1], MetadataCatalog.get(cfg.DATASETS.TRAIN[0]), scale=1.2) | |
v = v.draw_instance_predictions(outputs["instances"].to("cpu")) | |
cv2_imshow(v.get_image()[:, :, ::-1]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment