MCG-NJU / TRACE

[ICCV 2021] Target Adaptive Context Aggregation for Video Scene Graph Generation
Other
57 stars 5 forks source link

Missing detections_train.json #10

Open Yvonne0413 opened 2 years ago

Yvonne0413 commented 2 years ago

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?

tyshiwo1 commented 2 years ago

Did you follow the readme, and execute this?

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

python tools/rename_ag.py
jiajia2024 commented 1 year ago

执行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'

这个错误怎么解决