-
Notifications
You must be signed in to change notification settings - Fork 431
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 'core' #143
Comments
I change another method to convert Pytorch2Caffe by onnx. But when I run torch.onnx.export(model, args, f [, ...]), I got the below error: |
https://github.com/xxradon/PytorchToCaffe from core.models.CornerNet_Saccade import model def load_model(model, pretrained_model): def forward(self, *xs, **kwargs): net = DummyModule(model()) name = 'CornerNet_Lite' input = torch.zeros([1, 3, 383, 383]) |
Hi, how did you solve this problem? I met the same question. |
Hi,
I want to get Pytorch2caffe by MMdnn. so I try to save the model with archietecture not only weights, but when I load it, I got the below error:
import torch
path = "../../cornernet_lite-model.pth"
model = torch.load(path)
Traceback (most recent call last):
File "", line 1, in
File "
/install/[email protected]/lib/python3.7/site-packages/torch/serialization.py", line 367, in load/install/[email protected]/lib/python3.7/site-packages/torch/serialization.py", line 538, in _loadreturn _load(f, map_location, pickle_module)
File "
result = unpickler.load()
ModuleNotFoundError: No module named 'core'
Thanks.
The text was updated successfully, but these errors were encountered: