Created
July 9, 2020 04:52
-
-
Save ctodd/ac3dffa11c32ac2219b26487c7cdf7b6 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
!pip -q install --upgrade pip | |
!pip -q install jsonlines | |
import jsonlines | |
from itertools import islice | |
with jsonlines.open(augmented_manifest_file, 'r') as reader: | |
for desc in islice(reader, 10): | |
img_url = desc['source-ref'] | |
img_file = "images/source/" + os.path.basename(img_url) | |
file_exists = os.path.isfile(img_file) | |
bboxes = desc[labeling_job_name]['annotations'] | |
show_annotated_image(img_file, bboxes, 1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment