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
707 stars 92 forks source link

It is not working #169

Open nitinmukesh opened 5 months ago

nitinmukesh commented 5 months ago

I installed everything, no isse reported during the process but the face is nt swapped. I have Visual Studio installed and the model is also in the directory.

image
venv "C:\stable_diffusion\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Version: v1.7.0
Commit hash: cf2772fab0af5573da775e7437e6acdca424f26e
Faceswaplab : Use GPU requirements
Checking faceswaplab requirements
0.00587589992210269
Launching Web UI with arguments:
No module 'xformers'. Proceeding without it.
Style database not found: C:\stable_diffusion\stable-diffusion-webui\styles.csv
ControlNet preprocessor location: C:\stable_diffusion\stable-diffusion-webui\extensions\sd-webui-controlnet\annotator\downloads
2024-02-08 22:12:50,217 - ControlNet - INFO - ControlNet v1.1.440
2024-02-08 22:12:50,314 - ControlNet - INFO - ControlNet v1.1.440
Loading weights [ef76aa2332] from C:\stable_diffusion\stable-diffusion-webui\models\Stable-diffusion\realisticVisionV60B1_v51VAE.safetensors
2024-02-08 22:12:51,486 - ControlNet - INFO - ControlNet UI callback registered.
*Deforum ControlNet support: enabled*
Creating model from config: C:\stable_diffusion\stable-diffusion-webui\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: 17.9s (prepare environment: 6.2s, import torch: 4.2s, import gradio: 1.9s, setup paths: 1.3s, initialize shared: 0.3s, other imports: 0.6s, setup codeformer: 0.2s, load scripts: 2.2s, create ui: 0.7s, gradio launch: 0.3s).
Applying attention optimization: Doggettx... done.
Model loaded in 5.0s (load weights from disk: 0.8s, create model: 0.3s, apply weights to model: 3.5s, calculate empty prompt: 0.1s).
Reusing loaded model realisticVisionV60B1_v51VAE.safetensors [ef76aa2332] to load disneyPixarCartoon_v10.safetensors [732d0dd2cf]
Loading weights [732d0dd2cf] from C:\stable_diffusion\stable-diffusion-webui\models\Stable-diffusion\disneyPixarCartoon_v10.safetensors
Applying attention optimization: Doggettx... done.
Weights loaded in 8.5s (send model to cpu: 1.9s, load weights from disk: 0.3s, apply weights to model: 5.1s, move model to device: 1.2s).
100%|██████████████████████████████████████████████████████████████████████████████████| 50/50 [00:44<00:00,  1.11it/s]
2024-02-08 22:16:00,643 - FaceSwapLab - INFO - Try to use model : C:\stable_diffusion\stable-diffusion-webui\models\faceswaplab\inswapper_128.onnx
2024-02-08 22:16:00,665 - FaceSwapLab - INFO - Load analysis model det_size=(640, 640), det_thresh=0.5, providers = ['CPUExecutionProvider'], will take some time. (> 30s)
100%|███████████████████████████████████████████████████████████████████████| 281857/281857 [00:21<00:00, 12878.38KB/s]
Loading (640, 640) analysis model (first time is slow): 100%|█████████████████████████| 1/1 [00:26<00:00, 26.57s/model]
2024-02-08 22:16:27,231 - FaceSwapLab - INFO - ('download_path: '██████████▊| 281064/281857 [00:21<00:00, 12841.12KB/s]
 'C:\\stable_diffusion\\stable-diffusion-webui\\models\\faceswaplab\\analysers\\models\\buffalo_l\n'
 'Downloading '
 'C:\\stable_diffusion\\stable-diffusion-webui\\models\\faceswaplab\\analysers\\models\\buffalo_l.zip '
 'from '
 'https://github.com/deepinsight/insightface/releases/download/v0.7/buffalo_l.zip...\n'
 "Applied providers: ['CPUExecutionProvider'], with options: "
 "{'CPUExecutionProvider': {}}\n"
 'find model: '
 'C:\\stable_diffusion\\stable-diffusion-webui\\models\\faceswaplab\\analysers\\models\\buffalo_l\\1k3d68.onnx '
 "landmark_3d_68 ['None', 3, 192, 192] 0.0 1.0\n"
 "Applied providers: ['CPUExecutionProvider'], with options: "
 "{'CPUExecutionProvider': {}}\n"
 'find model: '
 'C:\\stable_diffusion\\stable-diffusion-webui\\models\\faceswaplab\\analysers\\models\\buffalo_l\\2d106det.onnx '
 "landmark_2d_106 ['None', 3, 192, 192] 0.0 1.0\n"
 "Applied providers: ['CPUExecutionProvider'], with options: "
 "{'CPUExecutionProvider': {}}\n"
 'find model: '
 'C:\\stable_diffusion\\stable-diffusion-webui\\models\\faceswaplab\\analysers\\models\\buffalo_l\\det_10g.onnx '
 "detection [1, 3, '?', '?'] 127.5 128.0\n"
 "Applied providers: ['CPUExecutionProvider'], with options: "
 "{'CPUExecutionProvider': {}}\n"
 'find model: '
 'C:\\stable_diffusion\\stable-diffusion-webui\\models\\faceswaplab\\analysers\\models\\buffalo_l\\genderage.onnx '
 "genderage ['None', 3, 96, 96] 0.0 1.0\n"
 "Applied providers: ['CPUExecutionProvider'], with options: "
 "{'CPUExecutionProvider': {}}\n"
 'find model: '
 'C:\\stable_diffusion\\stable-diffusion-webui\\models\\faceswaplab\\analysers\\models\\buffalo_l\\w600k_r50.onnx '
 "recognition ['None', 3, 112, 112] 127.5 127.5\n"
 'set det-size: (640, 640)\n')
Downloading the detection model to C:\Users\nitin\.ifnude/detector.onnx
Downloading: 139MB [00:12, 12.0MB/s]
Downloading the classes list to C:\Users\nitin\.ifnude/classes
Downloading: 16.0kB [00:00, 23.8kB/s]
2024-02-08 22:16:42,756 - FaceSwapLab - INFO - Finished processing image, return 1 images
2024-02-08 22:16:42,756 - FaceSwapLab - INFO - 1 images swapped
2024-02-08 22:16:42,757 - FaceSwapLab - INFO - Restore face with CodeFormer
2024-02-08 22:16:47,102 - FaceSwapLab - INFO - Add swp image to processed
Total progress: 100%|██████████████████████████████████████████████████████████████████| 50/50 [01:29<00:00,  1.79s/it]
100%|██████████████████████████████████████████████████████████████████████████████████| 38/38 [00:32<00:00,  1.17it/s]
2024-02-08 22:19:44,686 - FaceSwapLab - INFO - Try to use model : C:\stable_diffusion\stable-diffusion-webui\models\faceswaplab\inswapper_128.onnx
2024-02-08 22:19:49,784 - FaceSwapLab - INFO - Finished processing image, return 1 images
2024-02-08 22:19:49,785 - FaceSwapLab - INFO - 1 images swapped
2024-02-08 22:19:49,786 - FaceSwapLab - INFO - Restore face with CodeFormer
2024-02-08 22:19:50,835 - FaceSwapLab - INFO - Add swp image to processed
Total progress: 100%|██████████████████████████████████████████████████████████████████| 38/38 [00:38<00:00,  1.00s/it]
Total progress: 100%|██████████████████████████████████████████████████████████████████| 38/38 [00:38<00:00,  1.22it/s]
tounsicorp commented 5 months ago

Same here, not working in ANY way at all. I even popped in a Lora to test to see if my face model was not working, it worked fine as a LORA. This extension doesn't seem to function anymore.

Benjamin1973 commented 4 months ago

A partially unclothed man may trigger the NSFW block. Go to Settings, find FaceSwapLab, and make sure that the NSFW slider is set all the way up to 1-- so you can swap every image even if it shows some skin or even nudity.

Benjamin1973 commented 4 months ago

No, it has nothing to do with inpaint models. I promise you.