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

AttributeError: 'NoneType' object has no attribute 'CONTRASTIVE' #26

Open
FeSCN6 opened this issue Sep 5, 2024 · 1 comment
Open

AttributeError: 'NoneType' object has no attribute 'CONTRASTIVE' #26

FeSCN6 opened this issue Sep 5, 2024 · 1 comment

Comments

@FeSCN6
Copy link

FeSCN6 commented Sep 5, 2024

I met this problem here:
image
It seems that the class ResNetBasicHead(slowfast/models/head_helper.py) needs CONTRASTIVE, but I couldn't find any setting concerning CONTRASTIVE in .yaml file. : (

@elagaty
Copy link

elagaty commented Jan 1, 2025

In build_model where ResNetBasicHead is initalized, pass cfg as an argument:
model.head = ResNetBasicHead(cfg =cfg ,...)

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