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

EOFError: Ran out of input #13

Open
Barnonewdm opened this issue Aug 30, 2019 · 2 comments
Open

EOFError: Ran out of input #13

Barnonewdm opened this issue Aug 30, 2019 · 2 comments

Comments

@Barnonewdm
Copy link

python global_classifier.py --input_path ./examples/modified.jpg --model_path ./weights/global.pth --gpu_id 1

Traceback (most recent call last): File "global_classifier.py", line 64, in <module> model = load_classifier(args.model_path, args.gpu_id) File "global_classifier.py", line 19, in load_classifier state_dict = torch.load(model_path, map_location='cpu') File "/data/weidongming/Tools/miniconda3/envs/torch/lib/python3.6/site-packages/torch/serialization.py", line 387, in load return _load(f, map_location, pickle_module, **pickle_load_args) File "/data/weidongming/Tools/miniconda3/envs/torch/lib/python3.6/site-packages/torch/serialization.py", line 564, in _load magic_number = pickle_module.load(f, **pickle_load_args) EOFError: Ran out of input
Could help me?

@PeterWang512
Copy link
Owner

It might be that your weights/global.pth is not downloaded properly. Can you try downloading the model weights again and see if it works?

@PeterWang512
Copy link
Owner

Also, you can try to download the weights manually. Here are the links:
global.pth: https://www.dropbox.com/s/rb8zpvrbxbbutxc/global.pth?dl=0
local.pth: https://www.dropbox.com/s/pby9dhpr6cqziyl/local.pth?dl=0

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