Skip to content

AlekPet/Fooocus_Extensions_AlekPet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fooocus extensions by AlekPet

Github Fooocus: go to fooocus

Patcher webui.py automatic install extensions after update Fooocus.

Changelog:

2024.05.23 - [Prompt translate] Added other translation services (edit modules/config.json for setting!) (Note config.json)

List extensions:

Name Description Link
Prompt translate Translate prompt positive and negative to the Englsih Link to git

Patcher webui.py

Reset last original webui.py

  1. Install git in your system.
  2. Open in the your Shell (cmd, bash ...)
  3. 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:

  1. Placed patcher_webui.py where they are run.bat, run_anime.bat, run_realistic.bat, folders Fooocus and python_embeded
  2. 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
  1. Place folder modules (inside prompt_translate folder) in root Fooocus folder and replace!
  2. Run run.bat

Note: After applied patches to the webui.py, automatic make backup webui.py named webui_original.py