Spaces:
Build error
Build error
import json | |
# f = open("dataset_anns.json") | |
# js_file = json.load(f) | |
# all_sent_ids = [] | |
# for case in js_file['images']: | |
# all_sent_ids.extend(case['sentids']) | |
# print("length of sent ids is: {}; max id of sentids is {}.".format(len(all_sent_ids), max(all_sent_ids))) | |
# # print(js_file['images'][0]) | |
# f.close() | |
import os | |
# train_dict = os.listdir("/dataset/coco/train2017") | |
# val_dict = os.listdir("/dataset/coco/val2017") | |
import json | |
with open("/dataset/coco/annotations/image_info_test2017.json", "r") as f: | |
js = json.load(f) | |
print() |