coco dataset class 가져오기Published by onesixx on 23-02-2123-02-21 Python import json # !wget http://images.cocodataset.org/annotations/annotations_trainval2017.zip # !unzip annotations_trainval2017.zip with open('./annotations/instances_train2017.json', 'r') as f: data = json.load(f) categories = data['categories'] category_list = [] for category in categories: category_list.append({'name': category['name'], 'id': category['id']}) # print(category_list) classes = category_list Categories: Uncategorized onesixx Blog Owner Label {} [+] Name* Email Δ Label {} [+] Name* Email Δ 0 Comments Inline Feedbacks View all comments