Closed rsokl closed 3 years ago
Hi! Can you please indicate what version of dill
is in each environment?
Sure! Both versions are using
dill 0.3.2 pypi_0 pypi
Sorry forgot to follow up on this! Can you also post your torch version on the 3.7 environment? Is it the same?
It is the same - 1.6.0
Both environments have the same library versions. Only the Python version is different
Ok looks like this is a known issue with dill
(https://github.com/uqfoundation/dill/issues/357), but it was patched in the latest version. If you have both 3.7 and 3.8 on your machine, you can fix this yourself by doing:
import torch, dill
x = torch.load("cifar_l2_1_0.pt", pickle_module=dill)
torch.save(x, "cifar_l2_1_0.pt", pickle_module=dill)
Meanwhile, we will do this for all the links we have above so that the public versions are also cross-compatible.
Great, I will give that a shot. Thank you for your help!
Closing this assuming that the above route will work without a hitch :)
Hello @andrewilyas and @rsokl
I got the same issue when loading model l2 0.25 and 1.0. But loading model l2 0.5 and l_inf_8 has no problem. I followed your recommendation to downgrade dill 0.3.4 to 0.3.2, but it did not work. I am using python 3.8. Please do me a favor!
Thanks
PyTorch version info:
The following code works in an environment with Python 3.7, but does not work for an equivalent environment using Python 3.8