-
Notifications
You must be signed in to change notification settings - Fork 26.7k
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 'basicsr.losses.losses' #383
Comments
Exactly the same for me after latest pull. |
The instructions now state to run 'webui-user.bat' instead. Not sure if that made a difference, but it did actually download/update GFPGAN and basicsr when I closed the terminal and ran that instead, with no errors this time. |
Changed |
Tried 1.3.5 and 1.4.2. Getting this error with both as of my latest pull. Launching with webui-user.bat |
When starting webui-user.bat I get the same error message with the latest master branch pull:
|
I confirm i have the same situation , even after multiple restarts
|
We recently got a downgrade commit for basicsr to v1.3.5 here. But it shouldn't be solved with this, because gfpgan and realesrgan seem to need basicsr >= v1.4.2.
Please fix this bug, because GFPGAN is not working in this repo right now. At least for some people. |
Ok I did a deep dive. This broke it: TencentARC/GFPGAN@7d657f2 TL;DR: Hotfix this by opening .\venv\Lib\site-packages\gfpgan\models\gfpgan_model.py |
Under Windows if you use the web-user.bat to start you can remove or rename the venv folder, set these versions in the requirements_versions.txt:
Then call web-user.bat. This will create the local venv with compatible versions without the mentioned bug if you didn't define any VENV_DIR in the web-user.bat. Not setting the explcit gfpgan version also worked for me after removing the venv directory. |
Add "None" option to extra networks dropdowns
Controlnet batch support
Describe the bug
After updating the repo and running the webui,bat i got an error while setting up gfpgan.
ModuleNotFoundError: No module named 'basicsr.losses.losses'
Running it again though then worked. I nevertheless thought it is worth a report. Maybe you want to have a look at the code there.
The text was updated successfully, but these errors were encountered: