DID-MDN
DID-MDN copied to clipboard
ModuleNotFoundError: No module named 'torch.utils.serialization'
how to handle this issue?
this was removed in pytorch 1.0.
首先命令行运行pip install torchfile安装torchfile,
from torch.utils.serialization import load_lua --》import torchfile,
首先命令行运行pip install torchfile安装torchfile,
from torch.utils.serialization import load_lua --》import torchfile,
您好,我按照您说的,pip install torchfile,然后将from torch.utils.serialization import load_lua替换为import torchfile,然后将代码中load_lua改为torchfile.load,最后还是遇到了错误,TypeError:‘NoneType’ object is not callable,请问您是没有遇到么,怎么解决的啊
首先命令行运行pip install torchfile安装torchfile, from torch.utils.serialization import load_lua --》import torchfile,
您好,我按照您说的,pip install torchfile,然后将from torch.utils.serialization import load_lua替换为import torchfile,然后将代码中load_lua改为torchfile.load,最后还是遇到了错误,TypeError:‘NoneType’ object is not callable,请问您是没有遇到么,怎么解决的啊
你可以登陆这个网站看一下https://blog.csdn.net/kent_xyli/article/details/89187558
首先命令行运行pip install torchfile安装torchfile, from torch.utils.serialization import load_lua --》import torchfile,
您好,我按照您说的,pip install torchfile,然后将from torch.utils.serialization import load_lua替换为import torchfile,然后将代码中load_lua改为torchfile.load,最后还是遇到了错误,TypeError:‘NoneType’ object is not callable,请问您是没有遇到么,怎么解决的啊
请问你解决了吗?
修改完了torchfile 还是有错误 struct.error: unpack requires a buffer of 4 bytes 有人解决了吗? thanks a lot
修改完了torchfile 还是有错误 struct.error: unpack requires a buffer of 4 bytes 有人解决了吗? thanks a lot
这个是你模型没下好,重新下一下就好了