You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I followed the video("Setting Up a Pretrained Model with Torchvision") and tried to run the code :
model = torchvision.models.efficientnet_b0(weights=weights)
model
then got the error message: invalid hash value (expected "3dd342df", got "7f5810bc96def8f7552d5b7e68d53c4786f81167d28291b21c0d90e1fca14934")
It seems like a new bug, and it could be fixed temporarily by overriding torchvision.models._api.WeightsEnum.get_state_dict()
source:pytorch/vision#7744 (comment)
I hope this could be helpful to those who got the same error.
The text was updated successfully, but these errors were encountered:
If you still face the same issue, after running the first code cell to install the packages, try to Restart Session on Google Colab. Then, run the imports again.
The issue seems to be with torchvisionv0.16.0 specifically. Other higher versions work seamlessly. pytorch/vision#7744 (comment)
I followed the video("Setting Up a Pretrained Model with Torchvision") and tried to run the code :
then got the error message:
invalid hash value (expected "3dd342df", got "7f5810bc96def8f7552d5b7e68d53c4786f81167d28291b21c0d90e1fca14934")
It seems like a new bug, and it could be fixed temporarily by overriding
torchvision.models._api.WeightsEnum.get_state_dict()
source:pytorch/vision#7744 (comment)
I hope this could be helpful to those who got the same error.
The text was updated successfully, but these errors were encountered: