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 modified your code to train a model with my own dataset, and I am trying to load the model saved as "latest.pth" to do some tests. However, I am getting this error:
AttributeError: 'DenseNet' object has no attribute 'copy'
I modified your code to train a model with my own dataset, and I am trying to load the model saved as "latest.pth" to do some tests. However, I am getting this error:
AttributeError: 'DenseNet' object has no attribute 'copy'
Hi,
I modified your code to train a model with my own dataset, and I am trying to load the model saved as "latest.pth" to do some tests. However, I am getting this error:
AttributeError: 'DenseNet' object has no attribute 'copy'
The code I use to load the model is:
net.load_state_dict(torch.load(checkpoint, map_location=lambda storage, loc: storage))
where checkpoint is the path to "latest.pth"
Any help would be appreciated.
Thanks
The text was updated successfully, but these errors were encountered: