glucauze / sd-webui-faceswaplab

Extended faceswap extension for StableDiffusion web-ui with multiple faceswaps, inpainting, checkpoints, ....
https://glucauze.github.io/sd-webui-faceswaplab/
GNU Affero General Public License v3.0
706 stars 92 forks source link

Faceswaplab not working with new SDnext #137

Open tembel123456 opened 8 months ago

tembel123456 commented 8 months ago

after update SDNEXT, , im can't run sd-webui-faceswaplab, i am reinstall whole Sd from scratch and still have this error ...

And yes all folders, are on right place

Thanx you, will be nice, if you can check that

Downloading inswapper model: 529MB [00:27, 20.4MB/s] 23:31:41-462011 ERROR Module load: extensions\sd-webui-faceswaplab\scripts\faceswaplab.py: FileNotFoundError ┌──────────────────────────────────────────────────── Traceback (most recent call last) ─────────────────────────────────────────────────────┐ │ C:\SD_Next\automatic\extensions\sd-webui-faceswaplab\scripts\faceswaplab_utils\models_utils.py:78 in get_current_swap_model │ │ │ │ 77 │ │ │ logger.error("The model %s cannot be found or loaded", model) │ │ > 78 │ │ │ raise FileNotFoundError( │ │ 79 │ │ │ │ "No faceswap model found. Please add it to the faceswaplab directory. En │ └────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ FileNotFoundError: No faceswap model found. Please add it to the faceswaplab directory. Ensure the model is in the proper directory (/models/faceswaplab/inswapper_128.onnx)

During handling of the above exception, another exception occurred:

┌──────────────────────────────────────────────────── Traceback (most recent call last) ─────────────────────────────────────────────────────┐ │ C:\SD_Next\automatic\modules\script_loading.py:21 in load_module │ │ │ │ 20 │ │ │ with contextlib.redirect_stdout(io.StringIO()) as stdout: │ │ > 21 │ │ │ │ module_spec.loader.exec_module(module) │ │ 22 │ │ │ setup_logging() # reset since scripts can hijaack logging │ │ in exec_module:883 │ │ in _call_with_frames_removed:241 │ │ │ │ C:\SD_Next\automatic\extensions\sd-webui-faceswaplab\scripts\faceswaplab.py:4 in │ │ │ │ 3 │ │ > 4 check_configuration() │ │ 5 │ │ │ │ C:\SD_Next\automatic\extensions\sd-webui-faceswaplab\scripts\configure.py:55 in check_configuration │ │ │ │ 54 │ │ download(model_url, model_path) │ │ > 55 │ │ check_model() │ │ 56 │ │ │ │ C:\SD_Next\automatic\extensions\sd-webui-faceswaplab\scripts\faceswaplab_utils\models_utils.py:33 in check_model │ │ │ │ 32 def check_model() -> bool: │ │ > 33 │ model_path = get_current_swap_model() │ │ 34 │ if not is_sha1_matching( │ │ │ │ C:\SD_Next\automatic\extensions\sd-webui-faceswaplab\scripts\faceswaplab_utils\models_utils.py:82 in get_current_swap_model │ │ │ │ 81 │ except: │ │ > 82 │ │ raise FileNotFoundError( │ │ 83 │ │ │ "No faceswap model found. Please add it to the faceswaplab directory. Ensure │ └────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ FileNotFoundError: No faceswap model found. Please add it to the faceswaplab directory. Ensure the model is in the proper directory (/models/faceswaplab/inswapper_128.onnx) 23:31:41-536688 INFO Extensions time: 28.18s { Lora=0.15s sd-webui-agent-scheduler=0.09s sd-webui-controlnet=0.18s stable-diffusion-webui-images-browser=0.07s sd-webui-faceswaplab=27.54s } 23:31:41-636711 INFO Loading UI theme: name=black-teal style=Auto 23:31:43-395121 INFO Local URL: http://127.0.0.1:7860/ 23:31:43-397584 INFO Initializing middleware 23:31:43-502306 INFO [AgentScheduler] Task queue is empty 23:31:43-504601 INFO [AgentScheduler] Registering APIs 23:31:43-620675 INFO Startup time: 262.43s { samplers=232.17s extensions=28.18s onchange=0.10s ui-extra-networks=0.05s ui-txt2img=0.06s ui-img2img=0.10s ui-settings=0.10s ui-extensions=1.08s ui-defaults=0.07s launch=0.24s app-started=0.21s } 23:31:45-521467 INFO MOTD: 23:31:49-287398 INFO Browser session: client=127.0.0.1 agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36

:37:57-218861 INFO Starting SD.Next 23:37:57-222850 INFO Python 3.10.6 on Windows 23:37:57-318581 INFO Version: app=sd.next updated=2023-10-17 hash=379fe1f3 url=https://github.com/vladmandic/automatic/tree/master 23:37:57-654496 INFO Platform: arch=AMD64 cpu=Intel64 Family 6 Model 165 Stepping 5, GenuineIntel system=Windows release=Windows-10-10.0.19045-SP0 python=3.10.6 23:37:57-658492 INFO nVidia CUDA toolkit detected: nvidia-smi present

agarzon commented 8 months ago

Having the same issue , it was working ok before 😒

agarzon commented 8 months ago

I just fix it by : https://github.com/glucauze/sd-webui-faceswaplab/issues/9#issuecomment-1664530688