s0md3v / sd-webui-roop

roop extension for StableDiffusion web-ui
GNU Affero General Public License v3.0
3.4k stars 881 forks source link

Scripts wont load: api.py, cimage.py, faceswap.py, swapper.py because of ModuleNotFoundError: No module named 'ifnude' #299

Open CrimoMX opened 8 months ago

CrimoMX commented 8 months ago

Hello there, I've already tried many solutions / methods to fix this problem, but I'm still stuck in this part; Roop Extensions isn't "starting" when I run Stable Diffusion because module ifnude cant be found, I hope you can help me, heres the full log:

venv "C:\Users\name\stable-diffusion-webui\venv\Scripts\Python.exe" Python 3.10.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:38:17) [MSC v.1929 64 bit (AMD64)] Version: v1.7.0 Commit hash: cf2772fab0af5573da775e7437e6acdca424f26e CUDA 11.8 Requirement already satisfied: insightface==0.7.3 in c:\users\name\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from -r C:\Users\nname\stable-diffusion-webui\extensions\sd-webui-roop\requirements.txt (line 1)) (0.7.3) Requirement already satisfied: onnx==1.14.0 in c:\users\name\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from -r C:\Users\nname\stable-diffusion-webui\extensions\sd-webui-roop\requirements.txt (line 2)) (1.14.0) Requirement already satisfied: onnxruntime==1.15.0 in c:\users\name\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from -r C:\Users\nname\stable-diffusion-webui\extensions\sd-webui-roop\requirements.txt (line 3)) (1.15.0) Requirement already satisfied: opencv-python==4.7.0.72 in c:\users\nname\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from -r C:\Users\nname\stable-diffusion-webui\extensions\sd-webui-roop\requirements.txt (line 4)) (4.7.0.72) Requirement already satisfied: ifnude in c:\users\nname\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from -r C:\Users\nname\stable-diffusion-webui\extensions\sd-webui-roop\requirements.txt (line 5)) (0.0.3) Requirement already satisfied: cython in c:\users\nname\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from -r C:\Users\nname\stable-diffusion-webui\extensions\sd-webui-roop\requirements.txt (line 6)) (3.0.8) Requirement already satisfied: scipy in c:\users\nname\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from insightface==0.7.3->-r C:\Users\nname\stable-diffusion-webui\extensions\sd-webui-roop\requirements.txt (line 1)) (1.12.0) Requirement already satisfied: matplotlib in c:\users\nname\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from insightface==0.7.3->-r C:\Users\nname\stable-diffusion-webui\extensions\sd-webui-roop\requirements.txt (line 1)) (3.8.3) Requirement already satisfied: scikit-image in c:\users\nname\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from insightface==0.7.3->-r C:\Users\nname\stable-diffusion-webui\extensions\sd-webui-roop\requirements.txt (line 1)) (0.22.0) Requirement already satisfied: Pillow in c:\users\nname\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from insightface==0.7.3->-r C:\Users\nname\stable-diffusion-webui\extensions\sd-webui-roop\requirements.txt (line 1)) (10.2.0) Requirement already satisfied: tqdm in c:\users\nname\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from insightface==0.7.3->-r C:\Users\nname\stable-diffusion-webui\extensions\sd-webui-roop\requirements.txt (line 1)) (4.66.2) Requirement already satisfied: easydict in c:\users\nname\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from insightface==0.7.3->-r C:\Users\nname\stable-diffusion-webui\extensions\sd-webui-roop\requirements.txt (line 1)) (1.13) Requirement already satisfied: albumentations in c:\users\nname\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from insightface==0.7.3->-r C:\Users\nname\stable-diffusion-webui\extensions\sd-webui-roop\requirements.txt (line 1)) (1.4.1) Requirement already satisfied: prettytable in c:\users\nname\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from insightface==0.7.3->-r C:\Users\nname\stable-diffusion-webui\extensions\sd-webui-roop\requirements.txt (line 1)) (3.10.0) Requirement already satisfied: requests in c:\users\nname\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from insightface==0.7.3->-r C:\Users\nname\stable-diffusion-webui\extensions\sd-webui-roop\requirements.txt (line 1)) (2.31.0) Requirement already satisfied: scikit-learn in c:\users\nname\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from insightface==0.7.3->-r C:\Users\nname\stable-diffusion-webui\extensions\sd-webui-roop\requirements.txt (line 1)) (1.4.1.post1) Requirement already satisfied: numpy in c:\users\nname\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from insightface==0.7.3->-r C:\Users\nname\stable-diffusion-webui\extensions\sd-webui-roop\requirements.txt (line 1)) (1.26.4) Requirement already satisfied: typing-extensions>=3.6.2.1 in c:\users\nname\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from onnx==1.14.0->-r C:\Users\nname\stable-diffusion-webui\extensions\sd-webui-roop\requirements.txt (line 2)) (4.10.0) Requirement already satisfied: protobuf>=3.20.2 in c:\users\nname\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from onnx==1.14.0->-r C:\Users\nname\stable-diffusion-webui\extensions\sd-webui-roop\requirements.txt (line 2)) (4.25.3) Requirement already satisfied: coloredlogs in c:\users\nname\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from onnxruntime==1.15.0->-r C:\Users\nname\stable-diffusion-webui\extensions\sd-webui-roop\requirements.txt (line 3)) (15.0.1) Requirement already satisfied: sympy in c:\users\nname\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from onnxruntime==1.15.0->-r C:\Users\nname\stable-diffusion-webui\extensions\sd-webui-roop\requirements.txt (line 3)) (1.12) Requirement already satisfied: flatbuffers in c:\users\nname\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from onnxruntime==1.15.0->-r C:\Users\nname\stable-diffusion-webui\extensions\sd-webui-roop\requirements.txt (line 3)) (23.5.26) Requirement already satisfied: packaging in c:\users\nname\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from onnxruntime==1.15.0->-r C:\Users\nname\stable-diffusion-webui\extensions\sd-webui-roop\requirements.txt (line 3)) (23.2) Requirement already satisfied: opencv-python-headless>=4.5.1.48 in c:\users\nname\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from ifnude->-r C:\Users\nname\stable-diffusion-webui\extensions\sd-webui-roop\requirements.txt (line 5)) (4.9.0.80) Requirement already satisfied: PyYAML in c:\users\nname\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from albumentations->insightface==0.7.3->-r C:\Users\nname\stable-diffusion-webui\extensions\sd-webui-roop\requirements.txt (line 1)) (6.0.1) Requirement already satisfied: tifffile>=2022.8.12 in c:\users\nname\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from scikit-image->insightface==0.7.3->-r C:\Users\nname\stable-diffusion-webui\extensions\sd-webui-roop\requirements.txt (line 1)) (2024.2.12) Requirement already satisfied: networkx>=2.8 in c:\users\nname\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from scikit-image->insightface==0.7.3->-r C:\Users\nname\stable-diffusion-webui\extensions\sd-webui-roop\requirements.txt (line 1)) (3.2.1) Requirement already satisfied: lazy_loader>=0.3 in c:\users\nname\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from scikit-image->insightface==0.7.3->-r C:\Users\nname\stable-diffusion-webui\extensions\sd-webui-roop\requirements.txt (line 1)) (0.3) Requirement already satisfied: imageio>=2.27 in c:\users\nname\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from scikit-image->insightface==0.7.3->-r C:\Users\nname\stable-diffusion-webui\extensions\sd-webui-roop\requirements.txt (line 1)) (2.34.0) Requirement already satisfied: joblib>=1.2.0 in c:\users\nname\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from scikit-learn->insightface==0.7.3->-r C:\Users\nname\stable-diffusion-webui\extensions\sd-webui-roop\requirements.txt (line 1)) (1.3.2) Requirement already satisfied: threadpoolctl>=2.0.0 in c:\users\nname\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from scikit-learn->insightface==0.7.3->-r C:\Users\nname\stable-diffusion-webui\extensions\sd-webui-roop\requirements.txt (line 1)) (3.3.0) Requirement already satisfied: humanfriendly>=9.1 in c:\users\nname\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from coloredlogs->onnxruntime==1.15.0->-r C:\Users\nname\stable-diffusion-webui\extensions\sd-webui-roop\requirements.txt (line 3)) (10.0) Requirement already satisfied: python-dateutil>=2.7 in c:\users\nname\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from matplotlib->insightface==0.7.3->-r C:\Users\nname\stable-diffusion-webui\extensions\sd-webui-roop\requirements.txt (line 1)) (2.9.0.post0) Requirement already satisfied: cycler>=0.10 in c:\users\nname\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from matplotlib->insightface==0.7.3->-r C:\Users\nname\stable-diffusion-webui\extensions\sd-webui-roop\requirements.txt (line 1)) (0.12.1) Requirement already satisfied: pyparsing>=2.3.1 in c:\users\nname\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from matplotlib->insightface==0.7.3->-r C:\Users\nname\stable-diffusion-webui\extensions\sd-webui-roop\requirements.txt (line 1)) (3.1.1) Requirement already satisfied: contourpy>=1.0.1 in c:\users\nname\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from matplotlib->insightface==0.7.3->-r C:\Users\nname\stable-diffusion-webui\extensions\sd-webui-roop\requirements.txt (line 1)) (1.2.0) Requirement already satisfied: fonttools>=4.22.0 in c:\users\nname\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from matplotlib->insightface==0.7.3->-r C:\Users\nname\stable-diffusion-webui\extensions\sd-webui-roop\requirements.txt (line 1)) (4.49.0) Requirement already satisfied: kiwisolver>=1.3.1 in c:\users\nname\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from matplotlib->insightface==0.7.3->-r C:\Users\nname\stable-diffusion-webui\extensions\sd-webui-roop\requirements.txt (line 1)) (1.4.5) Requirement already satisfied: wcwidth in c:\users\nname\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from prettytable->insightface==0.7.3->-r C:\Users\nname\stable-diffusion-webui\extensions\sd-webui-roop\requirements.txt (line 1)) (0.2.13) Requirement already satisfied: idna<4,>=2.5 in c:\users\nname\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from requests->insightface==0.7.3->-r C:\Users\nname\stable-diffusion-webui\extensions\sd-webui-roop\requirements.txt (line 1)) (3.6) Requirement already satisfied: certifi>=2017.4.17 in c:\users\nname\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from requests->insightface==0.7.3->-r C:\Users\nname\stable-diffusion-webui\extensions\sd-webui-roop\requirements.txt (line 1)) (2024.2.2) Requirement already satisfied: charset-normalizer<4,>=2 in c:\users\nname\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from requests->insightface==0.7.3->-r C:\Users\nname\stable-diffusion-webui\extensions\sd-webui-roop\requirements.txt (line 1)) (3.3.2) Requirement already satisfied: urllib3<3,>=1.21.1 in c:\users\nname\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from requests->insightface==0.7.3->-r C:\Users\nname\stable-diffusion-webui\extensions\sd-webui-roop\requirements.txt (line 1)) (2.2.1) Requirement already satisfied: mpmath>=0.19 in c:\users\nname\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from sympy->onnxruntime==1.15.0->-r C:\Users\nname\stable-diffusion-webui\extensions\sd-webui-roop\requirements.txt (line 3)) (1.3.0) Requirement already satisfied: colorama in c:\users\nname\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from tqdm->insightface==0.7.3->-r C:\Users\nname\stable-diffusion-webui\extensions\sd-webui-roop\requirements.txt (line 1)) (0.4.6) Requirement already satisfied: pyreadline3 in c:\users\nname\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from humanfriendly>=9.1->coloredlogs->onnxruntime==1.15.0->-r C:\Users\nname\stable-diffusion-webui\extensions\sd-webui-roop\requirements.txt (line 3)) (3.4.1) Requirement already satisfied: six>=1.5 in c:\users\nname\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from python-dateutil>=2.7->matplotlib->insightface==0.7.3->-r C:\Users\nname\stable-diffusion-webui\extensions\sd-webui-roop\requirements.txt (line 1)) (1.16.0) Launching Web UI with arguments: --xformers [-] ADetailer initialized. version: 24.3.0, num models: 10 ControlNet preprocessor location: C:\Users\nname\stable-diffusion-webui\extensions\sd-webui-controlnet\annotator\downloads 2024-03-04 22:00:31,426 - ControlNet - INFO - ControlNet v1.1.441 2024-03-04 22:00:31,580 - ControlNet - INFO - ControlNet v1.1.441 22:00:31 - ReActor - STATUS - Running v0.7.0-b3 on Device: CUDA *** Error loading script: api.py Traceback (most recent call last): File "C:\Users\nname\stable-diffusion-webui\modules\scripts.py", line 469, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "C:\Users\nname\stable-diffusion-webui\modules\script_loading.py", line 10, in load_module module_spec.loader.exec_module(module) File "", line 883, in exec_module File "", line 241, in _call_with_frames_removed File "C:\Users\nname\stable-diffusion-webui\extensions\sd-webui-roop\scripts\api.py", line 17, in from scripts.faceswap import get_models File "C:\Users\nname\stable-diffusion-webui\extensions\sd-webui-roop\scripts\faceswap.py", line 16, in from scripts.swapper import UpscaleOptions, swap_face, ImageResult File "C:\Users\nname\stable-diffusion-webui\extensions\sd-webui-roop\scripts\swapper.py", line 14, in from scripts.cimage import convert_to_sd File "C:\Users\nname\stable-diffusion-webui\extensions\sd-webui-roop\scripts\cimage.py", line 2, in from ifnude import detect ModuleNotFoundError: No module named 'ifnude'


*** Error loading script: cimage.py Traceback (most recent call last): File "C:\Users\nname\stable-diffusion-webui\modules\scripts.py", line 469, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "C:\Users\nname\stable-diffusion-webui\modules\script_loading.py", line 10, in load_module module_spec.loader.exec_module(module) File "", line 883, in exec_module File "", line 241, in _call_with_frames_removed File "C:\Users\nname\stable-diffusion-webui\extensions\sd-webui-roop\scripts\cimage.py", line 2, in from ifnude import detect ModuleNotFoundError: No module named 'ifnude'


*** Error loading script: faceswap.py Traceback (most recent call last): File "C:\Users\nname\stable-diffusion-webui\modules\scripts.py", line 469, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "C:\Users\nname\stable-diffusion-webui\modules\script_loading.py", line 10, in load_module module_spec.loader.exec_module(module) File "", line 883, in exec_module File "", line 241, in _call_with_frames_removed File "C:\Users\nname\stable-diffusion-webui\extensions\sd-webui-roop\scripts\faceswap.py", line 16, in from scripts.swapper import UpscaleOptions, swap_face, ImageResult File "C:\Users\nname\stable-diffusion-webui\extensions\sd-webui-roop\scripts\swapper.py", line 14, in from scripts.cimage import convert_to_sd File "C:\Users\nname\stable-diffusion-webui\extensions\sd-webui-roop\scripts\cimage.py", line 2, in from ifnude import detect ModuleNotFoundError: No module named 'ifnude'


2024-03-04 22:00:31,997 - roop - INFO - roop v0.0.2 *** Error loading script: swapper.py Traceback (most recent call last): File "C:\Users\nname\stable-diffusion-webui\modules\scripts.py", line 469, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "C:\Users\nname\stable-diffusion-webui\modules\script_loading.py", line 10, in load_module module_spec.loader.exec_module(module) File "", line 883, in exec_module File "", line 241, in _call_with_frames_removed File "C:\Users\nname\stable-diffusion-webui\extensions\sd-webui-roop\scripts\swapper.py", line 14, in from scripts.cimage import convert_to_sd File "C:\Users\nname\stable-diffusion-webui\extensions\sd-webui-roop\scripts\cimage.py", line 2, in from ifnude import detect ModuleNotFoundError: No module named 'ifnude'


Loading weights [00a14cdeaa] from C:\Users\nname\stable-diffusion-webui\models\Stable-diffusion\starlightXLAnimated_v3.safetensors 2024-03-04 22:00:32,573 - ControlNet - INFO - ControlNet UI callback registered.

To create a public link, set share=True in launch(). Creating model from config: C:\Users\xxx\stable-diffusion-webui\repositories\generative-models\configs\inference\sd_xl_base.yaml Startup time: 18.3s (prepare environment: 6.5s, import torch: 3.2s, import gradio: 1.1s, setup paths: 0.9s, initialize shared: 0.2s, other imports: 0.7s, setup codeformer: 0.1s, load scripts: 3.5s, create ui: 1.0s, gradio launch: 1.0s). Applying attention optimization: xformers... done. Model loaded in 7.4s (load weights from disk: 1.9s, create model: 0.8s, apply weights to model: 4.1s, move model to device: 0.1s, load textual inversion embeddings: 0.1s, calculate empty prompt: 0.3s).

Zergland commented 8 months ago

I also have this error

`remote: Enumerating objects: 4, done. remote: Counting objects: 100% (4/4), done. remote: Compressing objects: 100% (2/2), done. remote: Total 4 (delta 2), reused 3 (delta 2), pack-reused 0 Unpacking objects: 100% (4/4), 1.82 KiB | 13.00 KiB/s, done. From https://github.com/AUTOMATIC1111/stable-diffusion-webui 7d1368c5..d318f1b5 dev -> origin/dev Already up to date. venv "G:\stable-diffusion-automatic1111\venv\Scripts\Python.exe" Python 3.10.7 (tags/v3.10.7:6cc6b13, Sep 5 2022, 14:08:36) [MSC v.1933 64 bit (AMD64)] Version: v1.8.0 Commit hash: bef51aed032c0aaa5cfd80445bc4cf0d85b408b5 CUDA 12.1 Requirement already satisfied: insightface==0.7.3 in c:\users\zerg\appdata\local\programs\python\python310\lib\site-packages (from -r G:\stable-diffusion-automatic1111\extensions\sd-webui-roop\requirements.txt (line 1)) (0.7.3) Requirement already satisfied: onnx==1.14.0 in c:\users\zerg\appdata\local\programs\python\python310\lib\site-packages (from -r G:\stable-diffusion-automatic1111\extensions\sd-webui-roop\requirements.txt (line 2)) (1.14.0) Requirement already satisfied: onnxruntime==1.15.0 in c:\users\zerg\appdata\local\programs\python\python310\lib\site-packages (from -r G:\stable-diffusion-automatic1111\extensions\sd-webui-roop\requirements.txt (line 3)) (1.15.0) Requirement already satisfied: opencv-python==4.7.0.72 in c:\users\zerg\appdata\local\programs\python\python310\lib\site-packages (from -r G:\stable-diffusion-automatic1111\extensions\sd-webui-roop\requirements.txt (line 4)) (4.7.0.72) Requirement already satisfied: ifnude in c:\users\zerg\appdata\local\programs\python\python310\lib\site-packages (from -r G:\stable-diffusion-automatic1111\extensions\sd-webui-roop\requirements.txt (line 5)) (0.0.3) Requirement already satisfied: cython in c:\users\zerg\appdata\local\programs\python\python310\lib\site-packages (from -r G:\stable-diffusion-automatic1111\extensions\sd-webui-roop\requirements.txt (line 6)) (3.0.9) Requirement already satisfied: easydict in c:\users\zerg\appdata\local\programs\python\python310\lib\site-packages (from insightface==0.7.3->-r G:\stable-diffusion-automatic1111\extensions\sd-webui-roop\requirements.txt (line 1)) (1.13) Requirement already satisfied: tqdm in c:\users\zerg\appdata\local\programs\python\python310\lib\site-packages (from insightface==0.7.3->-r G:\stable-diffusion-automatic1111\extensions\sd-webui-roop\requirements.txt (line 1)) (4.66.2) Requirement already satisfied: numpy in c:\users\zerg\appdata\local\programs\python\python310\lib\site-packages (from insightface==0.7.3->-r G:\stable-diffusion-automatic1111\extensions\sd-webui-roop\requirements.txt (line 1)) (1.26.4) Requirement already satisfied: scikit-image in c:\users\zerg\appdata\local\programs\python\python310\lib\site-packages (from insightface==0.7.3->-r G:\stable-diffusion-automatic1111\extensions\sd-webui-roop\requirements.txt (line 1)) (0.22.0) Requirement already satisfied: scipy in c:\users\zerg\appdata\local\programs\python\python310\lib\site-packages (from insightface==0.7.3->-r G:\stable-diffusion-automatic1111\extensions\sd-webui-roop\requirements.txt (line 1)) (1.12.0) Requirement already satisfied: matplotlib in c:\users\zerg\appdata\local\programs\python\python310\lib\site-packages (from insightface==0.7.3->-r G:\stable-diffusion-automatic1111\extensions\sd-webui-roop\requirements.txt (line 1)) (3.8.3) Requirement already satisfied: Pillow in c:\users\zerg\appdata\local\programs\python\python310\lib\site-packages (from insightface==0.7.3->-r G:\stable-diffusion-automatic1111\extensions\sd-webui-roop\requirements.txt (line 1)) (9.4.0) Requirement already satisfied: albumentations in c:\users\zerg\appdata\local\programs\python\python310\lib\site-packages (from insightface==0.7.3->-r G:\stable-diffusion-automatic1111\extensions\sd-webui-roop\requirements.txt (line 1)) (1.4.1) Requirement already satisfied: requests in c:\users\zerg\appdata\local\programs\python\python310\lib\site-packages (from insightface==0.7.3->-r G:\stable-diffusion-automatic1111\extensions\sd-webui-roop\requirements.txt (line 1)) (2.28.2) Requirement already satisfied: prettytable in c:\users\zerg\appdata\local\programs\python\python310\lib\site-packages (from insightface==0.7.3->-r G:\stable-diffusion-automatic1111\extensions\sd-webui-roop\requirements.txt (line 1)) (3.10.0) Requirement already satisfied: scikit-learn in c:\users\zerg\appdata\local\programs\python\python310\lib\site-packages (from insightface==0.7.3->-r G:\stable-diffusion-automatic1111\extensions\sd-webui-roop\requirements.txt (line 1)) (1.4.1.post1) Requirement already satisfied: protobuf>=3.20.2 in c:\users\zerg\appdata\local\programs\python\python310\lib\site-packages (from onnx==1.14.0->-r G:\stable-diffusion-automatic1111\extensions\sd-webui-roop\requirements.txt (line 2)) (4.25.3) Requirement already satisfied: typing-extensions>=3.6.2.1 in c:\users\zerg\appdata\local\programs\python\python310\lib\site-packages (from onnx==1.14.0->-r G:\stable-diffusion-automatic1111\extensions\sd-webui-roop\requirements.txt (line 2)) (4.10.0) Requirement already satisfied: sympy in c:\users\zerg\appdata\local\programs\python\python310\lib\site-packages (from onnxruntime==1.15.0->-r G:\stable-diffusion-automatic1111\extensions\sd-webui-roop\requirements.txt (line 3)) (1.12) Requirement already satisfied: flatbuffers in c:\users\zerg\appdata\local\programs\python\python310\lib\site-packages (from onnxruntime==1.15.0->-r G:\stable-diffusion-automatic1111\extensions\sd-webui-roop\requirements.txt (line 3)) (24.3.7) Requirement already satisfied: coloredlogs in c:\users\zerg\appdata\local\programs\python\python310\lib\site-packages (from onnxruntime==1.15.0->-r G:\stable-diffusion-automatic1111\extensions\sd-webui-roop\requirements.txt (line 3)) (15.0.1) Requirement already satisfied: packaging in c:\users\zerg\appdata\local\programs\python\python310\lib\site-packages (from onnxruntime==1.15.0->-r G:\stable-diffusion-automatic1111\extensions\sd-webui-roop\requirements.txt (line 3)) (23.2) Requirement already satisfied: opencv-python-headless>=4.5.1.48 in c:\users\zerg\appdata\local\programs\python\python310\lib\site-packages (from ifnude->-r G:\stable-diffusion-automatic1111\extensions\sd-webui-roop\requirements.txt (line 5)) (4.9.0.80) Requirement already satisfied: PyYAML in c:\users\zerg\appdata\local\programs\python\python310\lib\site-packages (from albumentations->insightface==0.7.3->-r G:\stable-diffusion-automatic1111\extensions\sd-webui-roop\requirements.txt (line 1)) (6.0.1) Requirement already satisfied: lazy_loader>=0.3 in c:\users\zerg\appdata\local\programs\python\python310\lib\site-packages (from scikit-image->insightface==0.7.3->-r G:\stable-diffusion-automatic1111\extensions\sd-webui-roop\requirements.txt (line 1)) (0.3) Requirement already satisfied: imageio>=2.27 in c:\users\zerg\appdata\local\programs\python\python310\lib\site-packages (from scikit-image->insightface==0.7.3->-r G:\stable-diffusion-automatic1111\extensions\sd-webui-roop\requirements.txt (line 1)) (2.34.0) Requirement already satisfied: networkx>=2.8 in c:\users\zerg\appdata\local\programs\python\python310\lib\site-packages (from scikit-image->insightface==0.7.3->-r G:\stable-diffusion-automatic1111\extensions\sd-webui-roop\requirements.txt (line 1)) (3.2.1) Requirement already satisfied: tifffile>=2022.8.12 in c:\users\zerg\appdata\local\programs\python\python310\lib\site-packages (from scikit-image->insightface==0.7.3->-r G:\stable-diffusion-automatic1111\extensions\sd-webui-roop\requirements.txt (line 1)) (2024.2.12) Requirement already satisfied: threadpoolctl>=2.0.0 in c:\users\zerg\appdata\local\programs\python\python310\lib\site-packages (from scikit-learn->insightface==0.7.3->-r G:\stable-diffusion-automatic1111\extensions\sd-webui-roop\requirements.txt (line 1)) (3.3.0) Requirement already satisfied: joblib>=1.2.0 in c:\users\zerg\appdata\local\programs\python\python310\lib\site-packages (from scikit-learn->insightface==0.7.3->-r G:\stable-diffusion-automatic1111\extensions\sd-webui-roop\requirements.txt (line 1)) (1.3.2) Requirement already satisfied: humanfriendly>=9.1 in c:\users\zerg\appdata\local\programs\python\python310\lib\site-packages (from coloredlogs->onnxruntime==1.15.0->-r G:\stable-diffusion-automatic1111\extensions\sd-webui-roop\requirements.txt (line 3)) (10.0) Requirement already satisfied: fonttools>=4.22.0 in c:\users\zerg\appdata\local\programs\python\python310\lib\site-packages (from matplotlib->insightface==0.7.3->-r G:\stable-diffusion-automatic1111\extensions\sd-webui-roop\requirements.txt (line 1)) (4.49.0) Requirement already satisfied: kiwisolver>=1.3.1 in c:\users\zerg\appdata\local\programs\python\python310\lib\site-packages (from matplotlib->insightface==0.7.3->-r G:\stable-diffusion-automatic1111\extensions\sd-webui-roop\requirements.txt (line 1)) (1.4.5) Requirement already satisfied: cycler>=0.10 in c:\users\zerg\appdata\local\programs\python\python310\lib\site-packages (from matplotlib->insightface==0.7.3->-r G:\stable-diffusion-automatic1111\extensions\sd-webui-roop\requirements.txt (line 1)) (0.12.1) Requirement already satisfied: contourpy>=1.0.1 in c:\users\zerg\appdata\local\programs\python\python310\lib\site-packages (from matplotlib->insightface==0.7.3->-r G:\stable-diffusion-automatic1111\extensions\sd-webui-roop\requirements.txt (line 1)) (1.2.0) Requirement already satisfied: pyparsing>=2.3.1 in c:\users\zerg\appdata\local\programs\python\python310\lib\site-packages (from matplotlib->insightface==0.7.3->-r G:\stable-diffusion-automatic1111\extensions\sd-webui-roop\requirements.txt (line 1)) (3.1.2) Requirement already satisfied: python-dateutil>=2.7 in c:\users\zerg\appdata\local\programs\python\python310\lib\site-packages (from matplotlib->insightface==0.7.3->-r G:\stable-diffusion-automatic1111\extensions\sd-webui-roop\requirements.txt (line 1)) (2.8.2) Requirement already satisfied: wcwidth in c:\users\zerg\appdata\local\programs\python\python310\lib\site-packages (from prettytable->insightface==0.7.3->-r G:\stable-diffusion-automatic1111\extensions\sd-webui-roop\requirements.txt (line 1)) (0.2.13) Requirement already satisfied: certifi>=2017.4.17 in c:\users\zerg\appdata\local\programs\python\python310\lib\site-packages (from requests->insightface==0.7.3->-r G:\stable-diffusion-automatic1111\extensions\sd-webui-roop\requirements.txt (line 1)) (2022.12.7) Requirement already satisfied: idna<4,>=2.5 in c:\users\zerg\appdata\local\programs\python\python310\lib\site-packages (from requests->insightface==0.7.3->-r G:\stable-diffusion-automatic1111\extensions\sd-webui-roop\requirements.txt (line 1)) (3.4) Requirement already satisfied: charset-normalizer<4,>=2 in c:\users\zerg\appdata\local\programs\python\python310\lib\site-packages (from requests->insightface==0.7.3->-r G:\stable-diffusion-automatic1111\extensions\sd-webui-roop\requirements.txt (line 1)) (3.1.0) Requirement already satisfied: urllib3<1.27,>=1.21.1 in c:\users\zerg\appdata\local\programs\python\python310\lib\site-packages (from requests->insightface==0.7.3->-r G:\stable-diffusion-automatic1111\extensions\sd-webui-roop\requirements.txt (line 1)) (1.26.15) Requirement already satisfied: mpmath>=0.19 in c:\users\zerg\appdata\local\programs\python\python310\lib\site-packages (from sympy->onnxruntime==1.15.0->-r G:\stable-diffusion-automatic1111\extensions\sd-webui-roop\requirements.txt (line 3)) (1.3.0) Requirement already satisfied: colorama in c:\users\zerg\appdata\local\programs\python\python310\lib\site-packages (from tqdm->insightface==0.7.3->-r G:\stable-diffusion-automatic1111\extensions\sd-webui-roop\requirements.txt (line 1)) (0.4.6) Requirement already satisfied: pyreadline3 in c:\users\zerg\appdata\local\programs\python\python310\lib\site-packages (from humanfriendly>=9.1->coloredlogs->onnxruntime==1.15.0->-r G:\stable-diffusion-automatic1111\extensions\sd-webui-roop\requirements.txt (line 3)) (3.4.1) Requirement already satisfied: six>=1.5 in c:\users\zerg\appdata\local\programs\python\python310\lib\site-packages (from python-dateutil>=2.7->matplotlib->insightface==0.7.3->-r G:\stable-diffusion-automatic1111\extensions\sd-webui-roop\requirements.txt (line 1)) (1.16.0) Launching Web UI with arguments: --api --autolaunch --theme=dark no module 'xformers'. Processing without... no module 'xformers'. Processing without... No module 'xformers'. Proceeding without it. [-] ADetailer initialized. version: 24.3.0, num models: 10 ControlNet preprocessor location: G:\stable-diffusion-automatic1111\extensions\sd-webui-controlnet\annotator\downloads 2024-03-08 22:08:53,413 - ControlNet - INFO - ControlNet v1.1.441 2024-03-08 22:08:53,589 - ControlNet - INFO - ControlNet v1.1.441 22:08:53 - ReActor - STATUS - Running v0.7.0-b5 on Device: CUDA *** Error loading script: api.py Traceback (most recent call last): File "G:\stable-diffusion-automatic1111\modules\scripts.py", line 527, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "G:\stable-diffusion-automatic1111\modules\script_loading.py", line 10, in load_module module_spec.loader.exec_module(module) File "", line 883, in exec_module File "", line 241, in _call_with_frames_removed File "G:\stable-diffusion-automatic1111\extensions\sd-webui-roop\scripts\api.py", line 17, in from scripts.faceswap import get_models File "G:\stable-diffusion-automatic1111\extensions\sd-webui-roop\scripts\faceswap.py", line 16, in from scripts.swapper import UpscaleOptions, swap_face, ImageResult File "G:\stable-diffusion-automatic1111\extensions\sd-webui-roop\scripts\swapper.py", line 14, in from scripts.cimage import convert_to_sd File "G:\stable-diffusion-automatic1111\extensions\sd-webui-roop\scripts\cimage.py", line 2, in from ifnude import detect ModuleNotFoundError: No module named 'ifnude'


*** Error loading script: cimage.py Traceback (most recent call last): File "G:\stable-diffusion-automatic1111\modules\scripts.py", line 527, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "G:\stable-diffusion-automatic1111\modules\script_loading.py", line 10, in load_module module_spec.loader.exec_module(module) File "", line 883, in exec_module File "", line 241, in _call_with_frames_removed File "G:\stable-diffusion-automatic1111\extensions\sd-webui-roop\scripts\cimage.py", line 2, in from ifnude import detect ModuleNotFoundError: No module named 'ifnude'


*** Error loading script: faceswap.py Traceback (most recent call last): File "G:\stable-diffusion-automatic1111\modules\scripts.py", line 527, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "G:\stable-diffusion-automatic1111\modules\script_loading.py", line 10, in load_module module_spec.loader.exec_module(module) File "", line 883, in exec_module File "", line 241, in _call_with_frames_removed File "G:\stable-diffusion-automatic1111\extensions\sd-webui-roop\scripts\faceswap.py", line 16, in from scripts.swapper import UpscaleOptions, swap_face, ImageResult File "G:\stable-diffusion-automatic1111\extensions\sd-webui-roop\scripts\swapper.py", line 14, in from scripts.cimage import convert_to_sd File "G:\stable-diffusion-automatic1111\extensions\sd-webui-roop\scripts\cimage.py", line 2, in from ifnude import detect ModuleNotFoundError: No module named 'ifnude'


2024-03-08 22:08:54,017 - roop - INFO - roop v0.0.2 *** Error loading script: swapper.py Traceback (most recent call last): File "G:\stable-diffusion-automatic1111\modules\scripts.py", line 527, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "G:\stable-diffusion-automatic1111\modules\script_loading.py", line 10, in load_module module_spec.loader.exec_module(module) File "", line 883, in exec_module File "", line 241, in _call_with_frames_removed File "G:\stable-diffusion-automatic1111\extensions\sd-webui-roop\scripts\swapper.py", line 14, in from scripts.cimage import convert_to_sd File "G:\stable-diffusion-automatic1111\extensions\sd-webui-roop\scripts\cimage.py", line 2, in from ifnude import detect ModuleNotFoundError: No module named 'ifnude'


Loading weights [ca42a7a009] from G:\stable-diffusion-automatic1111\models\Stable-diffusion\pfg_111Safetensors.safetensors 2024-03-08 22:08:54,567 - ControlNet - INFO - ControlNet UI callback registered. Creating model from config: G:\stable-diffusion-automatic1111\configs\v1-inference.yaml Running on local URL: http://127.0.0.1:7860

To create a public link, set share=True in launch(). Startup time: 111.8s (prepare environment: 16.2s, import torch: 5.5s, import gradio: 1.3s, setup paths: 1.2s, initialize shared: 0.2s, other imports: 1.0s, load scripts: 83.9s, create ui: 1.1s, gradio launch: 0.4s, add APIs: 0.9s). Applying attention optimization: Doggettx... done. Model loaded in 6.9s (load weights from disk: 0.5s, create model: 1.2s, apply weights to model: 4.4s, load textual inversion embeddings: 0.3s, calculate empty prompt: 0.2s). `

Zergland commented 8 months ago

I tried to install the 'ifnude' module myself pip install ifnude --upgrade The errors have disappeared

liuchangzong commented 8 months ago

I had the same question at first. And I tried to pip install the ifnude module in the path sdwebui/vnev/script , the conda venv path and python lib path. But I got the the same answer from cmd: Requirements already satisfied. I have tried and tried again. At last, my cmd show these sentences: Downloading the detection model to C:\Users\18473\.ifnude/detector.onnx Downloading: 139MB [10:17, 236kB/s] Downloading the classes list to C:\Users\18473\.ifnude/classes Downloading: 16.0kB [00:01, 10.8kB/s] Then it just works! You can go to this link to download the model and the class files manually. https://github.com/s0md3v/sd-webui-roop/issues/98

CrimoMX commented 8 months ago

pip install ifnude --upgrade

Hello friend, I have tried it before, in the venv folder, but didnt fix it; or what folder do i have to run the command at?

UPDATE: I Tried it again, updated and It works now, thank you very much friend.

CrimoMX commented 8 months ago

I had the same question at first. And I tried to pip install the ifnude module in the path sdwebui/vnev/script , the conda venv path and python lib path. But I got the the same answer from cmd: Requirements already satisfied. I have tried and tried again. At last, my cmd show these sentences: Downloading the detection model to C:\Users\18473\.ifnude/detector.onnx Downloading: 139MB [10:17, 236kB/s] Downloading the classes list to C:\Users\18473\.ifnude/classes Downloading: 16.0kB [00:01, 10.8kB/s] Then it just works! You can go to this link to download the model and the class files manually. https://github.com/s0md3v/sd-webui-roop/issues/98

Hello friend, what folder should I put the "detector.onnx" model and classes? UPDATED, worked with pip install ifnude --upgrade @ venv/scripts/ folder, thank you so much

lyt-Top commented 7 months ago

提示:ModuleNotFoundError: No module named 'ifnude'

一、issues/299:ModuleNotFoundError: No module named 'ifnude'

路径 cmd 中也可以看到,路径可能有点不一样,但是后面的路径应该都是一样的,如:/AppData\Local\Programs\Python\Python310\Lib\site-packages

因为之前我单独安装了 Python310,所以我使用命令 pip install ifnude --upgrade 时,ifnudeifnude-0.0.3.dist-info 文件夹并不会出现在 sd 整合包中的 D:\sd-webui-aki\sd-webui-aki-v4.7\python\Lib\site-packages 路径下,所以手动复制一下到 sd 整合包 D:\sd-webui-aki\sd-webui-aki-v4.7\python\Lib\site-packages 目录下。

提示:Downloading the detection model to /home/rdteam/.ifnude/detector.onnx

二、issues/107:Downloading the detection model to /home/rdteam/.ifnude/detector.onnx