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

Encounter segfault when running inference.py #15

Closed
HollyDQWang opened this issue Jun 8, 2021 · 2 comments
Closed

Encounter segfault when running inference.py #15

HollyDQWang opened this issue Jun 8, 2021 · 2 comments

Comments

@HollyDQWang
Copy link

Running inference.py on Ubuntu and encountered segfault on line
117 state_dict = torch.load(args.resume)
Would you mind suggesting any possible cause that this might be happening?

@HollyDQWang
Copy link
Author

Okay this is resolved by specifying torch.load(args.resume, map_location=torch.device('cuda')) and commenting out line 115 for some reason. Referenced this post here https://discuss.pytorch.org/t/segmentation-fault-when-loading-weight/1381

@HowieMa
Copy link
Owner

HowieMa commented Jun 8, 2021

Sorry for the inconvenience. The model I uploaded has the device CUDA, and you may directly load it on the CPU. I will update the version of the model later and make it feasible for the CPU.

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

2 participants