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

Linux Machine with no ui, REAL-ESRGAN, ESRGAN and GFPAN does not load. #78

Closed
Neresco opened this issue Sep 5, 2022 · 2 comments
Closed

Comments

@Neresco
Copy link

Neresco commented Sep 5, 2022

Linux Machine with no ui, REAL-ESRGAN, ESRGAN and GFPAN does not load.
Before i tested on linux with Dekstop and no error occured but i want to run it without Desktop.

I will post the Errors maybe your brain can comprehent what i cannot right now.:
Error setting up GFPGAN:
Traceback (most recent call last):
File "/home/lunarbuntu/stable-diffusion/stable-diffusion/stable-diffusion-webu i/modules/gfpgan_model.py", line 58, in setup_gfpgan
from gfpgan import GFPGANer
File "/home/lunarbuntu/.local/lib/python3.10/site-packages/gfpgan/init.py" , line 2, in
from .archs import *
File "/home/lunarbuntu/.local/lib/python3.10/site-packages/gfpgan/archs/__init __.py", line 2, in
from basicsr.utils import scandir
File "/home/lunarbuntu/.local/lib/python3.10/site-packages/basicsr/init.py ", line 3, in
from .archs import *
File "/home/lunarbuntu/.local/lib/python3.10/site-packages/basicsr/archs/ini t.py", line 5, in
from basicsr.utils import get_root_logger, scandir
File "/home/lunarbuntu/.local/lib/python3.10/site-packages/basicsr/utils/ini t.py", line 4, in
from .img_process_util import USMSharp, usm_sharp
File "/home/lunarbuntu/.local/lib/python3.10/site-packages/basicsr/utils/img_p rocess_util.py", line 1, in
import cv2
ImportError: libGL.so.1: cannot open shared object file: No such file or directo ry

Error REAL-ESRGAN:

Error loading ESRGAN model: /home/lunarbuntu/stable-diffusion/stable-diffusion/s table-diffusion-webui/ESRGAN/RealESRGAN_x4plus.pth
Traceback (most recent call last):
File "/home/lunarbuntu/stable-diffusion/stable-diffusion/stable-diffusion-webu i/modules/esrgan_model.py", line 131, in load_models
modules.shared.sd_upscalers.append(UpscalerESRGAN(path, model_name))
File "/home/lunarbuntu/stable-diffusion/stable-diffusion/stable-diffusion-webu i/modules/esrgan_model.py", line 114, in init
self.model = load_model(filename)
File "/home/lunarbuntu/stable-diffusion/stable-diffusion/stable-diffusion-webu i/modules/esrgan_model.py", line 44, in load_model
crt_net['conv_first.weight'] = pretrained_net['model.0.weight']
KeyError: 'model.0.weight'

Error importing Real-ESRGAN:
Traceback (most recent call last):
File "/home/lunarbuntu/stable-diffusion/stable-diffusion/stable-diffusion-webu i/modules/realesrgan_model.py", line 33, in setup_realesrgan
from basicsr.archs.rrdbnet_arch import RRDBNet
File "/home/lunarbuntu/.local/lib/python3.10/site-packages/basicsr/init.py ", line 3, in
from .archs import *
File "/home/lunarbuntu/.local/lib/python3.10/site-packages/basicsr/archs/ini t.py", line 5, in
from basicsr.utils import get_root_logger, scandir
File "/home/lunarbuntu/.local/lib/python3.10/site-packages/basicsr/utils/ini t.py", line 4, in
from .img_process_util import USMSharp, usm_sharp
File "/home/lunarbuntu/.local/lib/python3.10/site-packages/basicsr/utils/img_p rocess_util.py", line 1, in
import cv2
File "/home/lunarbuntu/.local/lib/python3.10/site-packages/cv2/init.py", l ine 181, in
bootstrap()
File "/home/lunarbuntu/.local/lib/python3.10/site-packages/cv2/init.py", l ine 153, in bootstrap
native_module = importlib.import_module("cv2")
File "/usr/lib/python3.10/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ImportError: libGL.so.1: cannot open shared object file: No such file or directo ry

I can work with it right now but this Plugins are higly wanted.

@AbdBarho
Copy link
Contributor

AbdBarho commented Sep 5, 2022

You have missing dependencies, try

pip install --prefer-binary -U opencv-python-headless

if that does not work, you can try: (not recommended)

sudo apt install python3-opencv

also, it seems you don't have a virtual environment, which might lead to more problems.

@Neresco
Copy link
Author

Neresco commented Sep 5, 2022

shit i have not done this step with anaconda -.-.

ok time to go into bed i will make the rest tomorrow.
Thx i will update tomorrow evening (german time).

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