Commit Graph
184 Commits
Author SHA1 Message Date
Manuel Schmid 829a6dc046 feat: add checkbox, config and handling for saving only the final enhanced image (#61) 2024-07-23 18:12:54 +02:00
Manuel Schmid 5c43a4bece fix: resolve circular dependency for sha256, update files and init cache after initial model download
fixes https://github.com/lllyasviel/Fooocus/issues/2372
2024-07-17 10:49:55 +02:00
Manuel Schmid 89cb354e8b Merge branch 'feature/persistent-hashing' into develop 2024-07-08 15:13:50 +02:00
Manuel Schmid edd886cea4 feat: make hash generation multi-threaded, change --rebuild-hash-cache from bool to int
keep in mind that most likely the drive is going to be the bottleneck now
2024-07-08 15:08:32 +02:00
Manuel Schmid e75ef84378 Merge branch 'feature/add-pony-support-and-preset' into develop
# Conflicts:
#	webui.py
2024-07-01 23:10:37 +02:00
Manuel Schmid 33c22929e4 feat: add preset option for default_inpaint_engine_version, revert previous overwrite_step changes
add handling with state to allow overrides with inpaint_mode preset setting (currently disabled)
2024-07-01 22:08:52 +02:00
Manuel Schmid 49d898f6c7 wip: set default_overwrite_switch for pony preset
synthetic refiner introduces artifacts, overriding refiner switch disables all refiners (never switches to them)
discussion in https://github.com/lllyasviel/Fooocus/discussions/3217#discussioncomment-9928035
2024-07-01 19:59:22 +02:00
Manuel Schmid f3a44b21d8 feat: allow default_overwrite_switch in preset 2024-07-01 19:50:34 +02:00
Manuel Schmid fbb64533b9 Merge branch 'feature/persistent-hashing' into develop 2024-07-01 18:00:23 +02:00
Manuel Schmid df2dd194cc feat: only use hash cache logs for exceptions 2024-07-01 17:59:05 +02:00
Manuel Schmid b19ecf410b feat: add attribute --rebuild-hash-cache, add handling 2024-07-01 17:50:15 +02:00
Manuel Schmid 33b1c5cb87 feat: add hash_cache 2024-07-01 17:20:20 +02:00
Manuel Schmid 9a578b2ebf Merge branch 'feature/add-pony-support-and-preset' into develop 2024-07-01 13:39:41 +02:00
Manuel Schmid c44f331cee fix: add missing key vae_downloads to possible_preset_keys 2024-07-01 13:39:26 +02:00
Manuel Schmid dbbe42ed30 Merge branch 'feature/add-pony-support-and-preset' into develop
# Conflicts:
#	webui.py
2024-06-30 20:51:39 +02:00
Manuel Schmid 333cc6db50 feat: add config default_inpaint_method, reload on start and preset change 2024-06-30 20:19:18 +02:00
Manuel Schmid 37fe0465b7 Merge branch 'feature/add-pony-support-and-preset' into develop
# Conflicts:
#	launch.py
2024-06-30 19:34:56 +02:00
Manuel Schmid bbf90a97b7 feat: add pony preset and vae downloads
uses default SDXL VAE, but the model doesn't include it
2024-06-30 15:44:35 +02:00
Manuel Schmid 6f4d73b349 refactor: code cleanup 2024-06-25 22:06:07 +02:00
Manuel Schmid a245b67531 feat: add config for enhance upv checkbox and method, prefix with default_ 2024-06-24 21:43:38 +02:00
Manuel Schmid 85121a03cb feat: change default selection for enhancement uov prompt type 2024-06-24 21:26:14 +02:00
Manuel Schmid 00a27e7400 feat: add config and option for uov prompt type 2024-06-24 21:21:11 +02:00
Manuel Schmid 1ef6367635 feat: add option to process uov either before or after enhance 2024-06-23 17:41:21 +02:00
Manuel Schmid e0ed94aa6a Merge branch 'main' into feature/multi-step-rendering 2024-06-21 20:26:23 +02:00
Manuel Schmid 0b876eec20 Merge branch 'main_upstream' 2024-06-21 20:25:50 +02:00
Manuel Schmid 9178aa8ebb feat: add vae to possible preset keys (#3177)
set default_vae in any preset to use it
2024-06-21 20:24:11 +02:00
Manuel Schmid 22e1b08e4f feat: add detection prompt dataset for quick selection 2024-06-19 00:58:55 +02:00
Manuel Schmid 3b55e64990 fix: remove unused path_adetailer from config 2024-06-19 00:45:50 +02:00
Manuel Schmid 229ff81738 refactor: rename max_num_boxes to max_detections 2024-06-18 21:07:27 +02:00
Manuel Schmid ef9fd293ff wip: rename stage2 to enhance 2024-06-16 12:45:18 +02:00
Manuel Schmid 8b21303542 wip: refactor UI for stage2 2024-06-15 01:38:22 +02:00
Manuel Schmid dbc844804b feat: add handling for stage2_mask_sam_max_num_boxes and config 2024-06-12 22:16:02 +02:00
Manuel Schmid 9998b52dd2 feat: add gradio elements for input 2024-06-12 21:52:48 +02:00
Manuel Schmid b8578a080a fix: remove already declared config option 2024-06-10 20:46:25 +02:00
Manuel Schmid 3873892b0a feat: change default_inpaint_mask_sam_model to match sam model registry 2024-06-10 20:45:56 +02:00
Manuel Schmid ce1fb74270 feat: add download for sam models to config 2024-06-10 20:33:49 +02:00
Manuel Schmid df70294a3e wip: add adetailer 2024-06-08 23:30:45 +02:00
Manuel Schmid 9c352b6eb7 Merge branch 'main_upstream'
# Conflicts:
#	fooocus_version.py
#	modules/config.py
#	modules/extra_utils.py
2024-06-06 19:50:15 +02:00
Manuel Schmid db36766f34 Merge branch 'fix/try-parse-env-var-strings-as-boolean'
# Conflicts:
#	modules/config.py
2024-06-06 19:40:14 +02:00
Manuel Schmid 5abae220c5 feat: parse env var strings to expected config value types (#3107)
* fix: add try_parse_bool for env var strings to enable config overrides of boolean values

* fix: fallback to given value if not parseable

* feat: extend eval to all valid types

* fix: remove return type

* fix: prevent strange type conversions by providing expected type

* feat: add tests
2024-06-06 19:29:08 +02:00
Manuel Schmid 09be2c972c fix: prevent strange type conversions by providing expected type 2024-06-06 19:13:17 +02:00
Manuel Schmid bef79e3cb4 feat: extend eval to all valid types 2024-06-06 18:37:00 +02:00
Manuel Schmid beab2b9d48 fix: fallback to given value if not parseable 2024-06-06 18:20:14 +02:00
Manuel Schmid c4faf2ae6c fix: add try_parse_bool for env var strings to enable config overrides of boolean values 2024-06-06 18:05:55 +02:00
Manuel Schmid 4e658bb63a feat: optimize performance lora filtering in metadata (#3048)
* feat: add remove_performance_lora method

* feat: use class PerformanceLoRA instead of strings in config

* refactor: cleanup flags, use __member__ to check if enums contains key

* feat: only filter lora of selected performance instead of all performance LoRAs

* fix: disable intermediate results for all restricted performances

too fast for Gradio, which becomes a bottleneck

* refactor: rename parse_json to to_json, rename parse_string to to_string

* feat: use speed steps as default instead of hardcoded 30

* feat: add method to_steps to Performance

* refactor: remove method ordinal_suffix, not needed anymore

* feat: only filter lora of selected performance instead of all performance LoRAs

both metadata and history log

* feat: do not filter LoRAs in metadata parser but rather in metadata load action
2024-05-30 16:14:28 +02:00
Manuel Schmid 5768330142 Merge branch 'feature/optimize-performance-lora-filtering-in-metadata'
# Conflicts:
#	modules/flags.py
#	modules/util.py
#	webui.py
2024-05-30 15:21:04 +02:00
Manuel Schmid 91281e5561 feat: only filter lora of selected performance instead of all performance LoRAs
both metadata and history log
2024-05-30 00:22:31 +02:00
Manuel Schmid 9564341fbd feat: use class PerformanceLoRA instead of strings in config 2024-05-30 00:13:14 +02:00
Manuel Schmid 4361e7e629 Merge remote-tracking branch 'upstream/main' 2024-05-27 00:30:53 +02:00
Manuel Schmid dfff9b7dcf fix: adjust clip skip default value from 1 to 2 (#3011)
* Revert "Revert "feat: add clip skip handling (#2999)" (#3008)"

This reverts commit 989a1ad52b.

* feat: use clip skip 2 as default
2024-05-27 00:28:22 +02:00