Skip to content
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

ModuleNotFoundError: No module named 'torch.utils.serialization' #86

Open
EnricoBeltramo opened this issue Dec 11, 2019 · 2 comments
Open

Comments

@EnricoBeltramo
Copy link

I use pytorch vers 1.1.0, that look haven't more the module torch.utils.serialization:

Traceback (most recent call last):
File "test.py", line 6, in
from utils import get_config, pytorch03_to_pytorch04
File "D:\Progetti\GAN cats\MUNIT\utils.py", line 5, in
from torch.utils.serialization import load_lua
ModuleNotFoundError: No module named 'torch.utils.serialization'

There is a workaround to use pytorch 1.1.0?

@sermakarevich
Copy link

do you use Docker ? there is Dockerfile which can help you to create correct env

@dvschultz
Copy link

I uinstalled torchfile, imported it into utils.py then edited line 228 of that file to be vgglua = torchfile.load(os.path.join(model_dir, 'vgg16.t7'))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants