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
xrv.models.DenseNet(weights="all").cuda() problem in new update #26
Comments
Ok I see it. It seems to be related to a new version of torchvision or torch. I tested it with torchvision 0.6.1 and it worked so you can downgrade to that. I'll look more into it today. |
I have downgraded as: now this error happened: The NVIDIA driver on your system is too old (found version 10010). Also I forgot to mention, I am using google colab |
I have a fix. I am pushing in in 5 min. |
It is the same issue and solution here: pytorch/pytorch#42242 |
Ok the version 0.0.13 should fix it. |
Thanks a lot |
Hi there, I have the same issue right now. I run this line in Spyder and then it shows the error "AttributeError: module 'torchxrayvision' has no attribute 'models'". The version of torchxrayvision is 0.0.24, torchvision is 0.9.0 and torch is 1.8.0. I have tried to downgrade the torchxrayvision to 0.0.23, but it did not help. |
@Jen2351 maybe you have a folder called torchxrayvision in your path that is confusing the import? |
Hello
Thanks for great repo
It seems you recently updated your codes,
This error happens when i try to load pretrained net:
xrv.models.DenseNet(weights="all").cuda()
/usr/local/lib/python3.6/dist-packages/torch/nn/modules/module.py in getattr(self, name)
770 return modules[name]
771 raise ModuleAttributeError("'{}' object has no attribute '{}'".format(
--> 772 type(self).name, name))
773
774 def setattr(self, name: str, value: Union[Tensor, 'Module']) -> None:
ModuleAttributeError: 'BatchNorm2d' object has no attribute '_non_persistent_buffers_set'
The text was updated successfully, but these errors were encountered: