lllyasviel / stable-diffusion-webui-forge

GNU Affero General Public License v3.0
8.58k stars 845 forks source link

FaceFusion support #125

Open GOATGAMER07 opened 9 months ago

GOATGAMER07 commented 9 months ago

Checklist

What happened?

facefusion not correctly installing

ffmpeg and also realesrgan downlaoded still showing the not installed

Steps to reproduce the problem

facefusion not correctly installing

ffmpeg and also realesrgan downlaoded still showing the not installed

What should have happened?

facefusion uploading views on forge ui

What browsers do you use to access the UI ?

No response

Sysinfo

sysinfo-2024-02-08-10-48.json

Console logs

Using pytorch cross attention
ControlNet preprocessor location: D:\Personal\webui_forge_cu121_torch21\webui\models\ControlNetPreprocessor
*** Error loading script: facefusion_ui.py
    Traceback (most recent call last):
      File "D:\Personal\webui_forge_cu121_torch21\webui\modules\scripts.py", line 541, in load_scripts
        script_module = script_loading.load_module(scriptfile.path)
      File "D:\Personal\webui_forge_cu121_torch21\webui\modules\script_loading.py", line 10, in load_module
        module_spec.loader.exec_module(module)
      File "<frozen importlib._bootstrap_external>", line 883, in exec_module
      File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
      File "D:\Personal\webui_forge_cu121_torch21\webui\extensions\sd-webui-facefusion\scripts\facefusion_ui.py", line 7, in <module>
        from facefusion.processors.frame.modules import face_enhancer, face_swapper, frame_enhancer
      File "D:\Personal\webui_forge_cu121_torch21\webui\extensions\sd-webui-facefusion\facefusion\processors\frame\modules\frame_enhancer.py", line 6, in <module>
        from realesrgan import RealESRGANer
    ModuleNotFoundError: No module named 'realesrgan'

Additional information

No response

LucianoDaluz commented 8 months ago

This doesnt work at all

westNeighbor commented 7 months ago

Go to the forge system/python folder to install the missing realesrgan package in a terminal (cmd or powershell), see below the command >>> PS D:\webui_forge_cu121_torch21\system\python> .\python.exe -m pip install realesrgan

Although no errors, but I don't see the gpu provider which means no GPU get used? image

westNeighbor commented 7 months ago

Aha, just install the onnxruntime-gpu package to use GPU, as above, go the the forge system/python folder, use the inside python to install, the packages should be installed in system\python\Lib\site-packages, now facefusion works like in A1111 PS D:\webui_forge_cu121_torch21\system\python> .\python.exe -m pip install onnxruntime-gpu --user image

fgtm2023 commented 6 months ago

any fix yet???? i 'm using forge with ubuntu + AMD gpu via ROCm, and i have the same problem.

LucianoDaluz commented 6 months ago

any fix yet???? i 'm using forge with ubuntu + AMD gpu via ROCm, and i have the same problem.

Did you try Roop Unleashed?

fgtm2023 commented 6 months ago

any fix yet???? i 'm using forge with ubuntu + AMD gpu via ROCm, and i have the same problem.

Did you try Roop Unleashed?

thanks, but did it work with forge? cause i searched and didn't find automatic1111 or forge extension, just standalone only :(

LucianoDaluz commented 6 months ago

any fix yet???? i 'm using forge with ubuntu + AMD gpu via ROCm, and i have the same problem.

Did you try Roop Unleashed?

thanks, but did it work with forge? cause i searched and didn't find automatic1111 or forge extension, just standalone only :(

Well people at Discord told me Facefusion doesnt work at SD (Stable Diffusion) at all, so I tried the Roop Unleashed stand alone, and it works like charm. Dont know any of this that work with SD, only FaceswapLab and Reactor but both are more for images, but you can use on frame to frame.

fgtm2023 commented 6 months ago

any fix yet???? i 'm using forge with ubuntu + AMD gpu via ROCm, and i have the same problem.

Did you try Roop Unleashed?

thanks, but did it work with forge? cause i searched and didn't find automatic1111 or forge extension, just standalone only :(

Well people at Discord told me Facefusion doesnt work at SD (Stable Diffusion) at all, so I tried the Roop Unleashed stand alone, and it works like charm. Dont know any of this that work with SD, only FaceswapLab and Reactor but both are more for images, but you can use on frame to frame.

thanks a lot, just wanted it to work with forge / automatic1111 so all of the stuff is in one place.

dongxiat commented 5 months ago

any fix yet???? i 'm using forge with ubuntu + AMD gpu via ROCm, and i have the same problem.

Did you try Roop Unleashed?

thanks, but did it work with forge? cause i searched and didn't find automatic1111 or forge extension, just standalone only :(

Well people at Discord told me Facefusion doesnt work at SD (Stable Diffusion) at all, so I tried the Roop Unleashed stand alone, and it works like charm. Dont know any of this that work with SD, only FaceswapLab and Reactor but both are more for images, but you can use on frame to frame.

thanks a lot, just wanted it to work with forge / automatic1111 so all of the stuff is in one place.

use this fork https://github.com/sebaxakerhtc/sd-webui-facefusion it work like a charm

jswag245 commented 2 weeks ago

@GOATGAMER07 if the fork or fixes in the responses solves your issue, please close it.