CSDNet-CSDGAN icon indicating copy to clipboard operation
CSDNet-CSDGAN copied to clipboard

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

Open singhkavinder opened this issue 3 years ago • 1 comments

I am using pytorch version 0.4.1 and torchvision 0.2.0 on my device with cuda 9.2.

I ran code to generate results and it was working fine previously. Now, suddenly it is showing error: ModuleNotFoundError: No module named 'torch.utils.serialization'.

Traceback (most recent call last): File "test.py", line 12, in from models.test_model import TestModel File "/home/ppp/Desktop/PYTORCH-LOW-LIGHT/CSDNet-CSDGAN-master/models/test_model.py", line 8, in from . import networks as networks File "/home/ppp/Desktop/PYTORCH-LOW-LIGHT/CSDNet-CSDGAN-master/models/networks.py", line 10, in from torch.utils.serialization import load_lua ModuleNotFoundError: No module named 'torch.utils.serialization'

singhkavinder avatar Aug 05 '22 03:08 singhkavinder

you can refer https://blog.csdn.net/weixin_54186372/article/details/115391432 to fit your code

9bxlue avatar Dec 19 '23 02:12 9bxlue