lllyasviel / lllyasviel/stable-diffusion-webui-forge

FaceFusion support

Open
#125 10 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement help wanted
Dominant language
Python
Stars
13k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

### Checklist

- [ ] The issue exists after disabling all extensions
- [x] The issue exists on a clean installation of webui
- [x] The issue is caused by an extension, but I believe it is caused by a bug in the webui
- [x] The issue exists in the current version of the webui
- [x] The issue has not been reported before recently
- [ ] The issue has been reported before but has not been fixed yet

### 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](https://github.com/lllyasviel/stable-diffusion-webui-forge/files/14208008/sysinfo-2024-02-08-10-48.json)

### Console logs

```Shell
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 "", line 883, in exec_module
File "", 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
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
from realesrgan import RealESRGANer
ModuleNotFoundError: No module named 'realesrgan'
```

### Additional information

_No response_

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with extensions/sd-webui-facefusion/scripts/facefusion_ui.py and facefusion/processors/frame/modules/frame_enhancer.py, then reproduce the clean-install failure shown in the console log. Check the ffmpeg and realesrgan installation status and the FaceFusion upload view; done means the extension loads without the ModuleNotFoundError and the expected view is available.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.