Github Fooocus: go to fooocus
Patcher webui.py automatic install extensions after update Fooocus.
2024.05.23 - [Prompt translate] Added other translation services (edit modules/config.json for setting!) (Note config.json)
Name | Description | Link |
---|---|---|
Prompt translate | Translate prompt positive and negative to the Englsih | Link to git |
- Install git in your system.
- Open in the your Shell (cmd, bash ...)
- Input command:
git restore --source origin/master PATH_TO_WEBUI_PY\webui.py
or
git restore PATH_TO_WEBUI_PY\webui.py
Example: git restore --source origin/master E:\Fooocus\Fooocus\webui.py
Install:
- Placed patcher_webui.py where they are run.bat, run_anime.bat, run_realistic.bat, folders Fooocus and python_embeded
- Add this line to the bat files run.bat, run_anime.bat, run_realistic.bat: Example run.bat (in my fooocus i'am used dark theme ^_^):
Example run.bat:
.\python_embeded\python.exe -s patcher_webui.py
.\python_embeded\python.exe -s Fooocus\entry_with_update.py --theme dark
pause
- Place folder modules (inside prompt_translate folder) in root Fooocus folder and replace!
- Run run.bat
Note: After applied patches to the webui.py, automatic make backup webui.py named webui_original.py