Skip to content

Commit

Permalink
Merge branch 'main_upstream'
Browse files Browse the repository at this point in the history
# Conflicts:
#	fooocus_version.py
#	modules/config.py
#	modules/extra_utils.py
  • Loading branch information
mashb1t committed Jun 6, 2024
2 parents db36766 + ba77e7f commit 9c352b6
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 7 deletions.
2 changes: 1 addition & 1 deletion fooocus_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version = '2.4.2 (mashb1t)'
version = '2.4.3 (mashb1t)'
12 changes: 8 additions & 4 deletions modules/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -530,24 +530,28 @@ def init_temp_path(path: str | None, default_path: str) -> str:
default_black_out_nsfw = get_config_item_or_set_default(
key='default_black_out_nsfw',
default_value=False,
validator=lambda x: isinstance(x, bool)
validator=lambda x: isinstance(x, bool),
expected_type=bool
)
default_inpaint_mask_model = get_config_item_or_set_default(
key='default_inpaint_mask_model',
default_value='isnet-general-use',
validator=lambda x: x in modules.flags.inpaint_mask_models
validator=lambda x: x in modules.flags.inpaint_mask_models,
expected_type=str
)

default_inpaint_mask_cloth_category = get_config_item_or_set_default(
key='default_inpaint_mask_cloth_category',
default_value='full',
validator=lambda x: x in modules.flags.inpaint_mask_cloth_category
validator=lambda x: x in modules.flags.inpaint_mask_cloth_category,
expected_type=str
)

default_inpaint_mask_sam_model = get_config_item_or_set_default(
key='default_inpaint_mask_sam_model',
default_value='sam_vit_b_01ec64',
validator=lambda x: x in modules.flags.inpaint_mask_sam_model
validator=lambda x: x in modules.flags.inpaint_mask_sam_model,
expected_type=str
)

config_dict["default_loras"] = default_loras = default_loras[:default_max_lora_number] + [[True, 'None', 1.0] for _ in range(default_max_lora_number - len(default_loras))]
Expand Down
1 change: 0 additions & 1 deletion modules/extra_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
from ast import literal_eval



def makedirs_with_log(path):
try:
os.makedirs(path, exist_ok=True)
Expand Down
6 changes: 5 additions & 1 deletion update_log.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# [2.4.3](https://github.com/lllyasviel/Fooocus/releases/tag/v2.4.3)

* Fix alphas_cumprod setter for TCD sampler
* Add parser for env var strings to expected config value types to allow override of all non-path config keys

# [2.4.2](https://github.com/lllyasviel/Fooocus/releases/tag/v2.4.2)

* Fix some small bugs (tcd scheduler when gamma is 0, chown in Dockerfile, update cmd args in readme, translation for aspect ratios, vae default after file reload)
Expand All @@ -6,7 +11,6 @@
* Make textboxes (incl. positive prompt) resizable
* Hide intermediate images when performance of Gradio would bottleneck the generation process (Extreme Speed, Lightning, Hyper-SD)


# [2.4.1](https://github.com/lllyasviel/Fooocus/releases/tag/v2.4.1)

* Fix some small bugs (e.g. adjust clip skip default value from 1 to 2, add type check to aspect ratios js update function)
Expand Down

0 comments on commit 9c352b6

Please sign in to comment.