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

ImportError: cannot import name 'resnet_v1' from 'models' (unknown location) #16

Closed
hubblezhang opened this issue Jul 27, 2022 · 3 comments

Comments

@hubblezhang
Copy link

In the File "/media/iiau/LiGong4T2/zwb/code/l2p/train_continual.py", line 42, I can see:

from models import resnet_v1

but in "./models" folder, i can't find resnet_v1, so I get error like this:

ImportError: cannot import name 'resnet_v1' from 'models' (unknown location)

How to solve this problem? Thanks!

@prateeky2806
Copy link

Hi, I am facing a similar issue. I could get the model to work for a ViT based model but I want to check the performance when using ResNet based model. Can you please provide the missing file and what changes are required to be in the config file for this.

Thanks!

@KingSpencer
Copy link
Collaborator

Hi,

Thanks for pointing this out! The model was deleted by mistake in the previous update. I have added it back.

Best,
Zifeng

@prateeky2806
Copy link

prateeky2806 commented Jul 28, 2022

Hi @KingSpencer, does using model_name as resnet in config file lead to a setting where resnet is used as the base model classification or does it use resnet model as a query function?
Can you please also mention the changes needed to be done in the cifar100 config file and the command line to make it work with resnet as a base model as opposed to vit.

Thanks in Advance!

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

3 participants