https://github.com/alekpet/fooocus_extensions_alekpet
Extensions for Fooocus
https://github.com/alekpet/fooocus_extensions_alekpet
automatic1111 comfyui fooocus image-generation stable-diffusion-webui stablediffusion
Last synced: 7 months ago
JSON representation
Extensions for Fooocus
- Host: GitHub
- URL: https://github.com/alekpet/fooocus_extensions_alekpet
- Owner: AlekPet
- License: gpl-3.0
- Created: 2023-11-30T17:23:01.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-28T07:33:48.000Z (over 1 year ago)
- Last Synced: 2024-07-28T08:53:25.427Z (over 1 year ago)
- Topics: automatic1111, comfyui, fooocus, image-generation, stable-diffusion-webui, stablediffusion
- Language: Python
- Homepage:
- Size: 293 KB
- Stars: 13
- Watchers: 4
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Fooocus extensions by AlekPet
> Github Fooocus: [go to fooocus](https://github.com/lllyasviel/Fooocus)
**[Patcher webui.py](#patcher-webuipy)** 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](https://github.com/AlekPet/Fooocus_Extensions_AlekPet/tree/main/prompt_translate#note-settings))
## List extensions:
| Name | Description | Link |
| :----------------- | :---------------------------------------------------: | ----------------------------------------------------------------------------------------------: |
| _Prompt translate_ | Translate prompt positive and negative to the Englsih | [Link to git](https://github.com/AlekPet/Fooocus_Extensions_AlekPet/tree/main/prompt_translate) |
## 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:
```bash
git restore --source origin/master PATH_TO_WEBUI_PY\webui.py
```
or
```bash
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:
```cmd
.\python_embeded\python.exe -s patcher_webui.py
.\python_embeded\python.exe -s Fooocus\entry_with_update.py --theme dark
pause
```
3. Place folder **modules** (inside prompt_translate folder) in root Fooocus folder and replace!
4. Run run.bat
> Note: After applied patches to the webui.py, automatic make backup webui.py named webui_original.py