Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

questions about scl #26

Open
hannajiang opened this issue Mar 5, 2023 · 1 comment
Open

questions about scl #26

hannajiang opened this issue Mar 5, 2023 · 1 comment

Comments

@hannajiang
Copy link

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?

@zhihou7
Copy link
Owner

zhihou7 commented Mar 5, 2023

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

if args.model.__contains__('res101'):
? 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
elif os.environ['DATASET'] == 'HICO_res101_icl':

Sorry for the ugly code. Feel free to ask if you have further questions.

Regards,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants