s0md3v / sd-webui-roop

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

Q&A #304

Open Lixi20 opened 5 months ago

Lixi20 commented 5 months ago

Q1:

*** Error running postprocess_image: D:\sd-webui-aki\sd-webui-aki-v4.7\extensions\sd-webui-roop\scripts\faceswap.py
    Traceback (most recent call last):
      File "D:\sd-webui-aki\sd-webui-aki-v4.7\modules\scripts.py", line 856, in postprocess_image
        script.postprocess_image(p, pp, *script_args)
      File "D:\sd-webui-aki\sd-webui-aki-v4.7\extensions\sd-webui-roop\scripts\faceswap.py", line 184, in postprocess_image
        result: ImageResult = swap_face(
      File "D:\sd-webui-aki\sd-webui-aki-v4.7\extensions\sd-webui-roop\scripts\swapper.py", line 132, in swap_face
        result = face_swapper.get(result, target_face, source_face)
    AttributeError: 'NoneType' object has no attribute 'get'

A1: wget https://github.com/facefusion/facefusion-assets/releases/download/models/inswapper_128.onnx

mv inswapper_128.onnx {sd-web-ui}\models\roop

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

A2: you need install detector.onnx and classes

wget https://huggingface.co/s0md3v/nudity-checker/blob/main/detector.onnx

wget https://huggingface.co/s0md3v/nudity-checker/blob/main/classes

mv detector.onnx C:\Users\Administrator\.ifnude

mv classes C:\Users\Administrator\.ifnude

Q3: Downloading buffalo_l.zip

A3: wget https://github.com/deepinsight/insightface/releases/download/v0.7/buffalo_l.zip

mv buffalo_l.zip C:\Users\Administrator\.insightface\models

Then you need to unzip buffalo_l.zip


Q2 and Q3,The model must be placed in the corresponding directory