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

cant load mobilenetv2 #27

Closed
xaerincl opened this issue Aug 16, 2019 · 2 comments
Closed

cant load mobilenetv2 #27

xaerincl opened this issue Aug 16, 2019 · 2 comments
Assignees
Labels
question Further information is requested

Comments

@xaerincl
Copy link

m = ptcv_get_model("mobilenetv2", pretrained=True) returns
ValueError: Unsupported model: mobilenetv2

If i use the mobilenetv2.py file and do:

get_mobilenetv2(width_scale=1.0, model_name="mobilenetv2_w1") it works fine, but if i use pretrained = True i get:

ModuleNotFoundError: No module named 'main.model_store'; 'main' is not a package

Is there any way i can fix this?

@xaerincl
Copy link
Author

I forgot to add: Im using pytorch btw

@osmr osmr self-assigned this Aug 17, 2019
@osmr osmr added the question Further information is requested label Aug 17, 2019
@osmr
Copy link
Owner

osmr commented Aug 17, 2019

Try to simply use:

net = ptcv_get_model("mobilenetv2_w1", pretrained=True)

You can find a list of available model names in pytorchcv/model_provider.py.

@osmr osmr closed this as completed Aug 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants