Skip to content

Instantly share code, notes, and snippets.

View getcontrol's full-sized avatar
💭
Coding

kathryn getcontrol

💭
Coding
View GitHub Profile
@cuuupid
cuuupid / labelbox_label.py
Last active February 17, 2020 20:17
Labelbox to YOLOnet
import sys, os
import json
import glob
from PIL import Image
USAGE = "python labelbox_label.py /path/to/training/image/directory/ /path/to/labelbox/exported/xy/data.json"
assert len(sys.argv) > 2, f'Insufficient arguments: {USAGE}'
args = sys.argv[1:] if '.py' in sys.argv[0] else sys.argv[0:]
assert(len(args) == 2), f'Incorrect usage: {USAGE}'