Skip to content

Instantly share code, notes, and snippets.

@ctodd
Created July 9, 2020 04:52
Show Gist options
  • Save ctodd/ac3dffa11c32ac2219b26487c7cdf7b6 to your computer and use it in GitHub Desktop.
Save ctodd/ac3dffa11c32ac2219b26487c7cdf7b6 to your computer and use it in GitHub Desktop.
!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