ChrisColeTech
4b90d7013d
Update async_worker.py
2024-08-20 20:20:58 -04:00
ChrisColeTech
3db125a206
To resolve github CodeQL warning
...
-To resolve github CodeQL warning
-more code cleanup
2024-08-20 17:27:03 -04:00
ChrisColeTech
83d0935ec8
more code cleanup
...
remove unused flags
code cleanup
2024-08-20 17:20:16 -04:00
ChrisColeTech
ad18a93c8a
Update async_worker.py
...
remove unused index
2024-08-19 20:20:37 -04:00
ChrisColeTech
ec177f2ca3
Update bulk_enhance_helpers.py
2024-08-19 18:38:18 -04:00
ChrisColeTech
2ab91c958a
Update bulk_enhance_helpers.py
2024-08-19 17:12:25 -04:00
ChrisColeTech
7a0b8eebb3
Rework Stop/Skip while bulk enhancing
...
-Rework stop/skip during bulk enhance to use "async_task.should_run" and -"async_task.should_skip" for more reliable stopping and skipping.
-Code cleanup
-Added more logging.
-Removed some emoji's
2024-08-18 13:55:46 -04:00
ChrisColeTech
9f535e8121
Change to resolve GitHub Advanced Security check
...
Change to resolve GitHub Advanced Security check
2024-08-18 09:03:35 -04:00
ChrisColeTech
ee4f4420d7
remove unused imports
...
remove unused imports
2024-08-17 20:56:46 -04:00
ChrisColeTech
f1e9a5c426
Batch File upload/ Folder upload. Bulk Enhance
...
-Immediately enhance each image generated
-Added Bulk Enhance
-Added 2 smaller resolutions: 512x512 and 704x704 for faster image generation
-Added default enhance prompts for pre-selections 'face', 'eye', 'mouth', 'hair', 'hand', 'body'
-Added more error handling
2024-08-17 20:08:43 -04:00
Manuel Schmid
14895ebb13
hotfix: yield enhance_input_image to correctly preview debug masks ( #3497 )
...
sort images starts from index <images_to_enhance_count>, which is 1 if enhance_input_image has been provided
2024-08-11 17:05:24 +02:00
Manuel Schmid
8bd9ea1dbf
fix: correctly validate default_inpaint_mask_sam_model
2024-08-08 13:15:15 +02:00
Manuel Schmid
ee12d114c1
fix: add handling for default "None" value of default_ip_image_*
2024-08-08 13:15:04 +02:00
Manuel Schmid
2f08cb4360
feat: add checkbox and config to disable updating selected styles when describing an image ( #3430 )
...
* feat: add checkbox and config to disable updating selected styles when describing an image
* i18n: add translation for checkbox label
* feat: change describe content type from Radio to CheckboxGroup, add config
* fix: cast set to list when styles contains elements
* feat: sort styles after describe
2024-08-03 14:46:31 +02:00
Sergii Dymchenko
da3d4d006f
Use weights_only for loading ( #3427 )
...
Co-authored-by: Manuel Schmid <9307310+mashb1t@users.noreply.github.com>
2024-08-03 12:33:01 +02:00
Manuel Schmid
a5040f6218
feat: count image count index from 1 ( #3383 )
...
* docs: update numbering of basic debug procedure in issue template
2024-07-27 23:07:44 +02:00
Manuel Schmid
3f25b885a7
feat: extend config settings for image input ( #3382 )
...
* docs: update numbering of basic debug procedure in issue template
* feat: add config default_image_prompt_checkbox
* feat: add config for default_image_prompt_advanced_checkbox
* feat: add config for default_inpaint_advanced_masking_checkbox
* feat: add config for default_invert_mask_checkbox
* feat: add config for default_developer_debug_mode_checkbox
* refactor: regroup checkbox configs
* feat: add config for default_uov_method
* feat: add configs for controlnet
default_controlnet_image_count, ip_images, ip_stop_ats, ip_weights and ip_types
* feat: add config for selected tab, rename desc to describe
2024-07-27 23:03:21 +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