Manuel Schmid
8cc246a51d
feat: count image from 1, making config keys more user friendly
2024-07-27 23:04:54 +02:00
Manuel Schmid
4a5f691b9e
feat: add config for selected tab, rename desc to describe
2024-07-27 21:34:07 +02:00
Manuel Schmid
0b1fe42971
feat: add configs for controlnet
...
default_controlnet_image_count, ip_images, ip_stop_ats, ip_weights and ip_types
2024-07-27 21:15:51 +02:00
Manuel Schmid
f5906f27a0
feat: add config for default_uov_method
2024-07-27 20:42:54 +02:00
Manuel Schmid
30c0d8f282
refactor: regroup checkbox configs
2024-07-27 20:38:58 +02:00
Manuel Schmid
c247f114d7
feat: add config for default_developer_debug_mode_checkbox
2024-07-27 20:36:11 +02:00
Manuel Schmid
f826bc16f7
feat: add config for default_invert_mask_checkbox
2024-07-27 20:28:35 +02:00
Manuel Schmid
017587a2fb
feat: add config for default_inpaint_advanced_masking_checkbox
2024-07-27 20:28:15 +02:00
Manuel Schmid
fa548f049d
feat: add config for default_image_prompt_advanced_checkbox
2024-07-27 20:25:44 +02:00
Manuel Schmid
8575c149da
feat: add config default_image_prompt_checkbox
2024-07-27 20:24:07 +02:00
Manuel Schmid
1be3c504ed
fix: add positive prompt if styles don't have a prompt placeholder ( #3372 )
...
fixes https://github.com/lllyasviel/Fooocus/issues/3367
2024-07-27 12:35:55 +02:00
Manuel Schmid
a9248c8e46
feat: sort enhance images (mashb1t#62)
...
* feat: add checkbox, config and handling for saving only the final enhanced image
* feat: sort output of enhance feature
(cherry picked from commit 9d45c0e6ca )
2024-07-25 15:21:56 +02:00
Manuel Schmid
37360e95fe
feat: add checkbox, config and handling for saving only the final enhanced image (mashb1t#61)
...
(cherry picked from commit 829a6dc046 )
2024-07-25 15:21:37 +02:00
Manuel Schmid
2e8cff296e
fix: correctly debug preprocessor again ( #3332 )
...
fixes https://github.com/lllyasviel/Fooocus/issues/3327
as discussed in https://github.com/lllyasviel/Fooocus/discussions/3323
add missing inheritance for EarlyReturnException from BaseException to correctly throw and catch
2024-07-21 11:49:28 +02:00
Manuel Schmid
f597bf1ab6
fix: allow reading of metadata from jpeg, jpg and webp again ( #3301 )
...
also massively improves metadata read speed by switching from filepath (tempfile) to pil, which allows direct processing
2024-07-17 23:30:51 +02:00
Manuel Schmid
97a8475a62
feat: revert disabling persistent style sorting, code cleanup
2024-07-17 12:04:34 +02:00
Manuel Schmid
9f93cf6110
fix: resolve circular dependency for sha256, update files and init cache after initial model download
...
fixes https://github.com/lllyasviel/Fooocus/issues/2372
(cherry picked from commit 5c43a4bece )
2024-07-17 10:51:50 +02:00
Manuel Schmid
d46e47ab3d
feat: revert adding translate feature #2
2024-07-16 14:48:54 +02:00
Manuel Schmid
ee02643020
feat: revert adding detailed steps for each performance
2024-07-14 21:06:59 +02:00
Manuel Schmid
e1f4b65fc9
feat: revert adding translate feature
2024-07-14 20:35:39 +02:00
Manuel Schmid
f2a21900c6
Sync branch 'mashb1t_main' with develop_upstream
2024-07-14 20:28:38 +02:00
licyk
34f67c01a8
feat: add restart sampler ( #3219 )
2024-07-01 14:24:21 +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
7c1a101c0f
hotfix: add missing method in performance enum ( #3154 )
2024-06-16 18:53:20 +02:00
Manuel Schmid
9d41c9521b
fix: add workaround for same value in Steps IntEnum ( #3153 )
2024-06-16 18:44:16 +02:00
Manuel Schmid
3e453501f7
fix: correctly identify and remove performance LoRA ( #3150 )
2024-06-16 16:52:58 +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
04d764820e
fix: correctly set alphas_cumprod ( #3106 )
2024-06-06 13:42:26 +02:00
Manuel Schmid
2d55a5f257
feat: add support for playground v2.5 ( #3073 )
...
* feat: add support for playground v2.5
* feat: add preset for playground v2.5
* feat: change URL to mashb1t
* feat: optimize playground v2.5 preset
2024-06-04 20:15:49 +02:00
Manuel Schmid
cb24c686b0
Merge branch 'main_upstream' into develop_upstream
2024-06-04 20:11:42 +02:00
Manuel Schmid
7899261755
fix: turbo scheduler loading issue ( #3065 )
...
* fix: correctly load ModelPatcher
* feat: do not load model at all, not needed
2024-05-31 22:24:19 +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
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
Manuel Schmid
989a1ad52b
Revert "feat: add clip skip handling ( #2999 )" ( #3008 )
...
This reverts commit cc58fe5270 .
2024-05-26 22:07:44 +02:00
Manuel Schmid
cc58fe5270
feat: add clip skip handling ( #2999 )
2024-05-26 14:18:19 +02:00
Alexdnk
d850bca09f
feat: read value 'CFG Mimicking from TSNR' (adaptive_cfg) from presets ( #2990 )
2024-05-24 22:05:28 +02:00
Manuel Schmid
04f64ab0bc
feat: add translation for image size describe ( #2992 )
2024-05-24 21:58:17 +02:00
xhoxye
302bfdf855
feat: read size and ratio of an image and provide the recommended size ( #2971 )
...
* Add the information about the size and ratio of the read image
* feat: use available aspect ratios from config, move function to util, change default visibility of label
* refactor: extract sdxl aspect ratios to flags, use in describe
as discussed in
https://github.com/lllyasviel/Fooocus/pull/2971#discussion_r1608493765
https://github.com/lllyasviel/Fooocus/pull/2971#issuecomment-2123620595
---------
Co-authored-by: Manuel Schmid <dev@mash1t.de>
Co-authored-by: Manuel Schmid <9307310+mashb1t@users.noreply.github.com>
2024-05-22 20:47:44 +02:00
Manuel Schmid
7537612bcc
feat: only use valid inline loras, add subfolder support ( #2968 )
2024-05-20 19:21:41 +02:00
Manuel Schmid
65a8b25129
feat: inline lora optimisations ( #2967 )
...
* feat: add performance loras to the end of the loras array
* fix: resolve circular dependency for unit tests
* feat: allow multiple matches for each token, optimize and extract method cleanup_prompt
* fix: update unit tests
* feat: ignore custom wildcards
2024-05-20 17:31:51 +02:00
Manuel Schmid
c995511705
feat: progress bar improvements ( #2962 )
...
* feat: align progress bar vertically
* feat: use fixed width for status text, remove ordinals
* refactor: align progress to actions
2024-05-19 20:43:11 +02:00
Manuel Schmid
35b74dfa64
feat: optimize model management of image censoring ( #2960 )
...
now follows general Fooocus model management principles + includes code optimisations for reusability
2024-05-19 18:36:47 +02:00
Manuel Schmid
dad228907e
fix: remove leftover code from hyper-sd8 testing ( #2959 )
2024-05-19 17:42:46 +02:00
Manuel Schmid
13599edb9b
feat: add performance hyper-sd based on 4step LoRA ( #2812 )
...
* feat: add performance hyper-sd based on 4step LoRA
* feat: use LoRA weight 0.8, sampler dpmpp_sde_gpu and scheduler_name karras
suggested in https://github.com/lllyasviel/Fooocus/discussions/2813#discussioncomment-9245251
results see https://github.com/lllyasviel/Fooocus/discussions/2813#discussioncomment-9275251
* feat: change ByteDance huggingface profile with mashb1t
* wip: add hyper-sd 8 step cfg lora with negative prompt support
* feat: remove hyper-sd8 performance
still waiting for the release of hyper-sd 4step CFG LoRA, not yet satisfied with any of the CFG LoRAs compared to non-cfg ones.
see https://huggingface.co/ByteDance/Hyper-SD
2024-05-19 13:23:08 +02:00
Manuel Schmid
2e2e8f851a
feat: add tcd sampler and discrete distilled tcd scheduler based on sgm_uniform (same as lcm) ( #2907 )
2024-05-19 13:08:33 +02:00
cantor-set
3bae73e23e
feat: add support for lora inline prompt references ( #2323 )
...
* Adding support to inline prompt references
* Added unittests
* Added an initial documentation for development guidelines
* Added a negative number
* renamed parameter
* removed wrongly committed file
* Code fixes
* Fixed circular reference
* Fixed typo. Added TODO
* Fixed merge
* Code cleanup
* Added missing refernce function
* Removed function from util.py... again...
* Update modules/async_worker.py
Implemented suggested change
Co-authored-by: Manuel Schmid <9307310+mashb1t@users.noreply.github.com>
* Removed another circular reference
* Renamed module
* Addressed PR comments
* Added return type to function
* refactor: move apply_wildcards to module util
* refactor: code cleanup, unify usage of tuples in lora list
* docs: add instructions for running unittests on embedded python, code cleanup
* refactor: code cleanup, move makedirs_with_log back to util
---------
Co-authored-by: cantor-set <cantor-set@no-email.net>
Co-authored-by: Manuel Schmid <9307310+mashb1t@users.noreply.github.com>
Co-authored-by: Manuel Schmid <dev@mash1t.de>
2024-05-18 17:19:46 +02:00
Manuel Schmid
3a55e7e391
feat: add AlignYourStepsScheduler ( #2905 )
2024-05-18 15:53:34 +02:00
Manuel Schmid
00d3d1b4b3
feat: add nsfw image censoring via config and checkbox ( #958 )
...
* add nsfw image censoring
activatable via config, uses CompVis/stable-diffusion-safety-checker
* fix progressbar call for nsfw output
* use config to set cache dir for safety checker
* add checkbox black_out_nsfw
makes both enabling via config and checkbox possible, where config overrides the checkbox value
* fix: add missing diffusers package
* feat: extract safety checker, remove dependency to diffusers
* feat: make code compatible again after merge with main
* feat: move censor to extras, optimize safety checker file handling
* refactor: rename folder safety_checker_models to safety_checker
2024-05-18 15:50:28 +02:00
e52fa787
5e594685e1
fix: do not close meta tag in HTML header ( #2740 )
...
* fixed typo in HTML (extra </meta> tag)
* refactor: remove closing slash for meta tag
as of specification in https://html.com/tags/meta/ , meta tagas are null elements:
This element must not contain any content, and does not need a closing tag.
---------
Co-authored-by: Manuel Schmid <9307310+mashb1t@users.noreply.github.com>
2024-05-17 17:25:56 +02:00
docppp
bdd6b1a9b0
feat: add full raw prompt to history log ( #1920 )
...
* Update async_worker.py
* Update private_logger.py
* refactor: only show full prompt details in logs, exclude from image metadata
---------
Co-authored-by: Manuel Schmid <9307310+mashb1t@users.noreply.github.com>
Co-authored-by: Manuel Schmid <dev@mash1t.de>
2024-05-09 20:25:43 +02:00