Skip to content

Commit

Permalink
2.1.802
Browse files Browse the repository at this point in the history
Default inpaint engine changed to v2.6. You can still use inpaint engine v1 in dev tools.
Fix some VRAM problems.
  • Loading branch information
lllyasviel committed Nov 13, 2023
1 parent 7e222cf commit d3d63d5
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 8 deletions.
6 changes: 2 additions & 4 deletions args_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@

fcbh_cli.args = fcbh_cli.parser.parse_args()

# (beta, enabled by default. )
# (Probably disable by default because of issues like https://github.com/lllyasviel/Fooocus/issues/724)
if fcbh_cli.args.enable_smart_memory:
fcbh_cli.args.disable_smart_memory = False
# (Disable by default because of issues like https://github.com/lllyasviel/Fooocus/issues/724)
fcbh_cli.args.disable_smart_memory = not fcbh_cli.args.enable_smart_memory

args = fcbh_cli.args
2 changes: 1 addition & 1 deletion fooocus_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version = '2.1.801'
version = '2.1.802'
Empty file added models/inpaint/put_inpaint_here
Empty file.
2 changes: 1 addition & 1 deletion modules/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ def update_all_model_names():


def downloading_inpaint_models(v):
assert v in ['v1', 'v2.5', 'v2.6']
assert v in modules.flags.inpaint_engine_versions

load_file_from_url(
url='https://huggingface.co/lllyasviel/fooocus_inpaint/resolve/main/fooocus_inpaint_head.pth',
Expand Down
3 changes: 3 additions & 0 deletions modules/flags.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,6 @@
default_parameters = {
cn_ip: (0.5, 0.6), cn_ip_face: (0.9, 0.75), cn_canny: (0.5, 1.0), cn_cpds: (0.5, 1.0)
} # stop, weight

inpaint_engine_versions = ['v1', 'v2.5', 'v2.6']
default_inpaint_engine_version = 'v2.6'
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ After you download the file, please uncompress it, and then run the "run.bat".
In the first time you launch the software, it will automatically download models:

1. It will download [default models](#models) to the folder "Fooocus\models\checkpoints" given different presets. You can download them in advance if you do not want automatic download.
2. Note that if you use inpaint, at the first time you inpaint an image, it will download [Fooocus's own inpaint control model from here](https://huggingface.co/lllyasviel/fooocus_inpaint/resolve/main/inpaint.fooocus.patch) as the file "Fooocus\models\inpaint\inpaint.fooocus.patch" (the size of this file is 1.28GB).
2. Note that if you use inpaint, at the first time you inpaint an image, it will download [Fooocus's own inpaint control model from here](https://huggingface.co/lllyasviel/fooocus_inpaint/resolve/main/inpaint_v26.fooocus.patch) as the file "Fooocus\models\inpaint\inpaint_v26.fooocus.patch" (the size of this file is 1.28GB).

After Fooocus 2.1.60, you will also have `run_anime.bat` and `run_realistic.bat`. They are different model presets (and requires different models, but thet will be automatically downloaded). [Check here for more details](https://github.com/lllyasviel/Fooocus/discussions/679).

Expand Down
5 changes: 5 additions & 0 deletions update_log.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# 2.1.802

* Default inpaint engine changed to v2.6. You can still use inpaint engine v1 in dev tools.
* Fix some VRAM problems.

# 2.1.799

* Added 'Extreme Speed' performance mode (based on LCM). The previous complicated settings are not needed now.
Expand Down
4 changes: 3 additions & 1 deletion webui.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,9 @@ def refresh_seed(r, seed_string):
minimum=-1, maximum=1.0, step=0.001, value=-1,
info='Set as negative number to disable. For developer debugging.')

inpaint_engine = gr.Dropdown(label='Inpaint Engine', value='v1', choices=['v1', 'v2.5', 'v2.6'],
inpaint_engine = gr.Dropdown(label='Inpaint Engine',
value=flags.default_inpaint_engine_version,
choices=flags.inpaint_engine_versions,
info='Version of Fooocus inpaint model')

with gr.Tab(label='Control Debug'):
Expand Down

0 comments on commit d3d63d5

Please sign in to comment.