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)
'딥러닝' 카테고리의 다른 글
GPU 지정 (0) | 2022.10.26 |
---|---|
Intra-class distance (0) | 2022.10.25 |
[MMdetection] Grad-CAM (0) | 2022.09.24 |
[MMdetection] AP for each class (0) | 2022.09.21 |
[MMdetection] samples_per_gpu (0) | 2022.09.16 |