Open hannajiang opened 1 year ago
Hi @hannajiang, thanks for your reply.
It is quite wired. I HOIICLNet should be a child class of ResNet101_HICO_zs.ResNet101, which includes an attribute 'obj_to_HO_matrix_orig'. Do you change the line https://github.com/zhihou7/HOI-CL/blob/9f5549504773d50b246ce30162eb6ce8178be3f1/tools/Train_ATL_HICO.py#L113? The environment variable 'DATASET' is used to control the parent class of HOIICLNet. If you still suffer from this issue. You can fix the parent model to networks.ResNet101_HICO_zs.ResNet101 in https://github.com/zhihou7/HOI-CL/blob/9f5549504773d50b246ce30162eb6ce8178be3f1/lib/networks/HOI.py#L36
Sorry for the ugly code. Feel free to ask if you have further questions.
Regards,
Hello, thanks for your excellent works. I have some questions about SCL(ECCV 2022). When I run the code "python tools/Train_ATL_HICO.py --model VCL_union_batch1_semi_vloss2_ml5_zs11_ICL_VERB_def4_l2_aug5_3_x5new_bothzs_res101_affordance_AF713_9 --num_iteration 500000 ", I encounter AttributeError: 'HOIICLNet' object has no attribute 'obj_to_HO_matrix_orig'. Is there something missing in this code?