딥러닝
[COCO] 데이터 확인
승무_
2022. 10. 4. 18:34
json_paths = glob(os.path.join('...', 'instances_val2017.json'))
for json_path in tqdm(json_paths):
with open(json_path, 'r') as f:
tmp = json.load(f)
count=0
for anno in tmp['annotations']:
x,y,w,h=anno['bbox']
if (w<8 and h<8):
print(w,h)
count+=1
print(count)