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: 'ModifiedResNet' object has no attribute 'num_features' #53

Open
gjc0824 opened this issue Mar 22, 2023 · 6 comments
Open

Comments

@gjc0824
Copy link

gjc0824 commented Mar 22, 2023

I am sorry to bother you. I run your new zero-shot branch but I receive some bugs. I check and find out that this part doesn't exisit in main branch. Could you please help me solve it?
image

@jwyang
Copy link
Member

jwyang commented Mar 22, 2023

thanks for pointing this out! I will take a look and get back to you asap.

@gjc0824
Copy link
Author

gjc0824 commented Mar 23, 2023

Thanks for your reply! I should provide you more infomation about this bug. It occurs when I use the config file of your original resnet version. It won't occur when I use the vit version config file. Maybe the two branch codes are not suitable for each other.
And I also have a naive question. There are only config files that support the other versions such as vit and swin-t in this project. However, I don't find the checkpoint or weights file support other versions. So is there pretrained RegionCLIP that using transformer-version backbone? Maybe I misunderstand the model.
Looking forward your reply! Thanks for your exciting contribution!

@jwyang
Copy link
Member

jwyang commented Mar 23, 2023

thanks for the context! still looking at it

@ross-Hr
Copy link

ross-Hr commented Apr 20, 2023

Besides resnet, I couldn't find a pre trained model either

@junnnxie
Copy link

Hi, have you solved this problem? I also encountered the same problem. Your help is greatly needed!

@RobertBiehl
Copy link

RobertBiehl commented Feb 12, 2024

Thanks for your reply! I should provide you more infomation about this bug. It occurs when I use the config file of your original resnet version. It won't occur when I use the vit version config file. Maybe the two branch codes are not suitable for each other. And I also have a naive question. There are only config files that support the other versions such as vit and swin-t in this project. However, I don't find the checkpoint or weights file support other versions. So is there pretrained RegionCLIP that using transformer-version backbone? Maybe I misunderstand the model. Looking forward your reply! Thanks for your exciting contribution!

@gjc0824 Were you able to train the ViT version?

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

5 participants