Replies: 8 comments 6 replies
-
The error codes are the same, but it's strange that the Web UI can eventually be accessed via http://127.0.0.1:7860/. Error setting up CodeFormer: |
Beta Was this translation helpful? Give feedback.
-
there is no get_device function in basicsr.utils.misc.py anymore. I saw multiple references to it. |
Beta Was this translation helpful? Give feedback.
-
then where is get_device function? |
Beta Was this translation helpful? Give feedback.
-
(sdwebui) D:\stable-diffusion-webui>webui-user.bat Loading weights [fc2511737a] from D:\stable-diffusion-webui\models\Stable-diffusion\chilloutmix_NiPrunedFp32Fix.safetensors |
Beta Was this translation helpful? Give feedback.
-
A rude method is just copy the following code into the directory:basicsr\utils\misc.py import torch def gpu_is_available(): |
Beta Was this translation helpful? Give feedback.
-
In "retinaface.py" In "face_restoration_helper.py" |
Beta Was this translation helpful? Give feedback.
-
This is puzzling: sczhou/CodeFormer#194 I have the latest CodeFormer from the repo in Maybe some other basicsr library is loaded? |
Beta Was this translation helpful? Give feedback.
-
I solved this problem, just downloaded 3 models offline |
Beta Was this translation helpful? Give feedback.
-
root@zeyun:~/stable-diffusion-webui# python3 webui.py --api --listen --no-half-vae --xformers
Warning: k_diffusion not found at path /root/stable-diffusion-webui/repositories/k-diffusion/k_diffusion/sampling.py
/usr/lib/python3/dist-packages/pkg_resources/init.py:116: PkgResourcesDeprecationWarning: 1.1build1 is an invalid version and will not be supported in a future release
warnings.warn(
/usr/lib/python3/dist-packages/pkg_resources/init.py:116: PkgResourcesDeprecationWarning: 0.1.43ubuntu1 is an invalid version and will not be supported in a future release
warnings.warn(
Error setting up CodeFormer:
Traceback (most recent call last):
File "/root/stable-diffusion-webui/modules/codeformer_model.py", line 38, in setup_model
from facelib.utils.face_restoration_helper import FaceRestoreHelper
File "/root/stable-diffusion-webui/repositories/CodeFormer/facelib/utils/face_restoration_helper.py", line 7, in
from facelib.detection import init_detection_model
File "/root/stable-diffusion-webui/repositories/CodeFormer/facelib/detection/init.py", line 10, in
from .retinaface.retinaface import RetinaFace
File "/root/stable-diffusion-webui/repositories/CodeFormer/facelib/detection/retinaface/retinaface.py", line 14, in
from basicsr.utils.misc import get_device
ImportError: cannot import name 'get_device' from 'basicsr.utils.misc' (/usr/local/lib/python3.10/dist-packages/basicsr/utils/misc.py)
Loading weights [89d59c3dde] from /root/stable-diffusion-webui/models/Stable-diffusion/final-prune.ckpt
Creating model from config: /root/stable-diffusion-webui/configs/v1-inference.yaml
LatentDiffusion: Running in eps-prediction mode
DiffusionWrapper has 859.52 M params.
Loading VAE weights found near the checkpoint: /root/stable-diffusion-webui/models/Stable-diffusion/final-prune.vae.pt
Applying xformers cross attention optimization.
Textual inversion embeddings loaded(0):
Model loaded in 6.5s (load weights from disk: 2.5s, create model: 0.5s, apply weights to model: 0.4s, apply half(): 0.4s, load VAE: 2.1s, move model to device: 0.6s).
Running on local URL: http://0.0.0.0:7860
To create a public link, set
share=True
inlaunch()
.Please give help~~ thanks
Beta Was this translation helpful? Give feedback.
All reactions