-
-
Notifications
You must be signed in to change notification settings - Fork 573
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
Run out of input error #110
Comments
What was your innitial commmand? |
i got the same error: |
same error +1. python3.9.7 windows. |
Same error. I'm using Windows, Python version 3.9.
|
It seems this error appears when torch tries to open an empty model. The program is loading u2net.pth which for some reason is empty, I suppose there is some problem with the automatic installation of u2net. I downloaded the hopefully correct file from https://github.com/xuebinqin/U-2-Net?tab=readme-ov-file and it works now. |
there's something with the default u2net model I think, and I just set model as "-m u2netp" to use it. model loading is fine this way.....but still have problems excuting a real cli [backgroundremover -i "aninput.mp4" -m "u2netp" -tg -o "anoutput.gif"] |
So your saying it's not downloading the u2net model? What version of python? |
I'm using Windows OS and python version 3.8.10
FRAME RATE DETECTED: 25/1 (if this looks wrong, override the frame rate)
FRAME RATE: 25 TOTAL FRAMES: 523
WORKER 0 ONLINE
WORKER FRAMERIPPER ONLINE
Process Process-3:
Traceback (most recent call last):
File "D:\lib\multiprocessing\process.py", line 315, in _bootstrap
self.run()
File "D:\lib\multiprocessing\process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "D:\lib\site-packages\backgroundremover\utilities.py", line 29, in worker
net = Net(model_name)
File "D:\lib\site-packages\backgroundremover\bg.py", line 88, in init
net.load_state_dict(torch.load(path, map_location=torch.device(DEVICE)))
File "D:\lib\site-packages\torch\serialization.py", line 815, in load
return _legacy_load(opened_file, map_location, pickle_module, **pickle_load_args)
File "D:\lib\site-packages\torch\serialization.py", line 1033, in _legacy_load
magic_number = pickle_module.load(f, **pickle_load_args)
EOFError: Ran out of input
The text was updated successfully, but these errors were encountered: