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 0d07798
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 3 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)'
24 changes: 24 additions & 0 deletions modules/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -486,11 +486,14 @@ def init_temp_path(path: str | None, default_path: str) -> str:
default_value=-1,
validator=lambda x: isinstance(x, int),
expected_type=int
<<<<<<< HEAD
)
default_overwrite_upscale = get_config_item_or_set_default(
key='default_overwrite_upscale',
default_value=-1,
validator=lambda x: isinstance(x, numbers.Number)
=======
>>>>>>> main_upstream
)
example_inpaint_prompts = get_config_item_or_set_default(
key='example_inpaint_prompts',
Expand All @@ -505,6 +508,7 @@ def init_temp_path(path: str | None, default_path: str) -> str:
default_value=False,
validator=lambda x: isinstance(x, bool),
expected_type=bool
<<<<<<< HEAD
)
default_save_metadata_to_images = get_config_item_or_set_default(
key='default_save_metadata_to_images',
Expand Down Expand Up @@ -536,6 +540,26 @@ def init_temp_path(path: str | None, default_path: str) -> str:
key='default_inpaint_mask_model',
default_value='isnet-general-use',
validator=lambda x: x in modules.flags.inpaint_mask_models
=======
)
default_save_metadata_to_images = get_config_item_or_set_default(
key='default_save_metadata_to_images',
default_value=False,
validator=lambda x: isinstance(x, bool),
expected_type=bool
)
default_metadata_scheme = get_config_item_or_set_default(
key='default_metadata_scheme',
default_value=MetadataScheme.FOOOCUS.value,
validator=lambda x: x in [y[1] for y in modules.flags.metadata_scheme if y[1] == x],
expected_type=str
)
metadata_created_by = get_config_item_or_set_default(
key='metadata_created_by',
default_value='',
validator=lambda x: isinstance(x, str),
expected_type=str
>>>>>>> main_upstream
)

default_inpaint_mask_cloth_category = get_config_item_or_set_default(
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 0d07798

Please sign in to comment.