-
Notifications
You must be signed in to change notification settings - Fork 7k
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
Excessively long initialization time for Inception3 #1797
Comments
I confirmed that rolling scipy from So this is not strictly a torchvision bug but it does mean that |
@os-gabe one alternative, given that we don't really train inception from scratch, would be to remove the custom initialization based on scipy. That would be a breaking change though. |
Here is the scipy issue for reference scipy/scipy#11299 |
@fmassa what if the |
Yeah, we could do something similar to what we do in VGG vision/torchvision/models/vgg.py Line 26 in e130c6c
with init_weights . Can you send a PR for inception?
|
Fixed with #1832 |
Is this released? |
There hasn't been a release since this change was merged. I'm curious to know when the next release is planned for. |
I had very bad time to debug problem related to this issue. |
Next release for torchvision will happen in a couple of weeks. But the underlying problem is with scipy, so the "fix" we use in torchvision is to skip the default initialization if the user specifies it. |
Creating an instance of the
Inception3
class viatorchvision.models.inception_v3(pretrained=False)
ortorchvision.models.Inception3()
takes several minutes to complete.It appears that all of the time is being spent here here.
I believe this may be related to some change in scipy perhaps as I do not think this model used to take so long to instantiate.
The text was updated successfully, but these errors were encountered: