TRACE icon indicating copy to clipboard operation
TRACE copied to clipboard

Missing detections_train.json

Open Yvonne0413 opened this issue 3 years ago • 2 comments

AssertionError: Annotation file '/vision2/u/zhuoyih/projects/moma_scene_graph/TRACE/data/ag/annotations/detections_train.json' not found

Hi, I got this error while I was trying to train on the action genome dataset, however, I searched there's no detections_train.json in action genome dataset or ways to generate this file, could you give more information on this, please?

Yvonne0413 avatar Feb 20 '22 08:02 Yvonne0413

Did you follow the readme, and execute this?

# ROOT=path/to/cloned/repository
cd $ROOT

python tools/rename_ag.py

tyshiwo1 avatar Feb 20 '22 10:02 tyshiwo1

执行python tools/rename_ag.py后,出现 File "/mnt/cephfs/home/alvin/jiashuning/TRACE/tools/rename_ag.py", line 272, in process_vrd_split('test', 'val', test_split, obj_dict, pred_dict, issave) File "/mnt/cephfs/home/alvin/jiashuning/TRACE/tools/rename_ag.py", line 205, in process_vrd_split convert_anno(out_split, vrd_anns, obj_dict, fname_list) File "/mnt/cephfs/home/alvin/jiashuning/TRACE/tools/rename_ag.py", line 219, in convert_anno im_h, im_w, C = cv2.imread(f_path, cv2.IMREAD_COLOR).shape AttributeError: 'NoneType' object has no attribute 'shape'

这个错误怎么解决

jiajia2024 avatar Feb 18 '23 07:02 jiajia2024