Problem Statement.
When using inception_v3 with torchvision.models.inception_v3 today, an error was reported during training.
Solution.
Put net = torchvision.models.inception_v3(pretrained=False).to(DEVICE)
Change to
net = torchvision.models.inception_v3(aux_logits=False,pretrained=False).to(DEVICE)
When using inception_v3 with torchvision.models.inception_v3 today, an error was reported during training.
Solution.
Put net = torchvision.models.inception_v3(pretrained=False).to(DEVICE)
Change to
net = torchvision.models.inception_v3(aux_logits=False,pretrained=False).to(DEVICE)
Read More:
- [Solved] AttributeError: ‘DataParallel‘ object has no attribute ‘save‘
- [Solved] AttributeError: ‘NoneType‘ object has no attribute ‘astype‘
- [Solved] AttributeError: ‘NoneType‘ object has no attribute ‘append‘
- [Solved] Operator Not Allowed In Graph Error & Attribute Error Tensor object has no attribute numpy
- [Solved] vpython: AttributeError: ‘box‘ object has no attribute ‘idx‘
- [Solved] LeNet Script Train Error: AttributeError: ‘DictIterator’ object has no attribute ‘get_next’
- [Solved] Pytorch-transformers Error: AttributeError: ‘str‘ object has no attribute ‘shape‘
- AttributeError: DatetimeProperties object has no attribute
- [Solved] AttributeError: DataFrame object has no attribute’xxx’
- [Solved] AttributeError: ‘HTMLWriter‘ object has no attribute ‘_temp_names‘
- [Solved] AttributeError: ‘DataFrame‘ object has no attribute ‘tolist‘
- [Solved] AttributeError: ‘_IncompatibleKeys‘ object has no attribute ‘parameters‘
- [Solved] Simple jwt Error: AttributeError: type object ‘BlacklistedToken‘ has no attribute ‘objects
- [Solved] AttributeError: ‘_IncompatibleKeys’ object has no attribute
- [Solved] AttributeError: ‘str‘ object has no attribute ‘decode‘
- [Solved] PyQt: RuntimeError: wrapped C/C++ object has been deleted & has no attribute of flush in python
- [Solved] django AttributeError: ‘UserComment‘ object has no attribute ‘save‘
- [Solved] AttributeError WriteOnlyWorksheet object has no attribute cell
- [Solved] Add-apt-repository Command Error: AttributeError: ‘Thread‘ object has no attribute ‘isAlive‘
- [Solved] Python 3.6 Error: ‘dict’ object has no attribute ‘has_key’