Commit Graph

242 Commits

Author SHA1 Message Date
MindOfMatter 3be76ef8a3
feat: make lora min max weight editable in config (#2216)
* Initial commit

* Update README.md

* sync with original main Fooocus repo

* update with my gitignore setup

* add min max weight configs feature

* add max lora config feature

* Revert "add max lora config feature"

This reverts commit cfe7463fe2.

* Update README.md

* Update .gitignore

* update

* merge

* revert

---------

Co-authored-by: Manuel Schmid <manuel.schmid@odt.net>
2024-02-25 21:36:25 +01:00
MindOfMatter 18f9f7dc31
feat: make lora number editable in config (#2215)
* Initial commit

* Update README.md

* sync with original main Fooocus repo

* update with my gitignore setup

* add max lora config feature

* Revert "add max lora config feature"

This reverts commit cfe7463fe2.

* add max loras config feature

* Update README.md

* Update .gitignore

* update

* merge

* revert

* refactor: rename default_loras_max_number to default_max_lora_number, validate config for int

* fix: add missing patch_all call and imports again

---------

Co-authored-by: Manuel Schmid <manuel.schmid@odt.net>
2024-02-25 21:12:26 +01:00
MindOfMatter 468d704b29
feat: add button to enable LoRAs (#2210)
* Initial commit

* Update README.md

* sync with original main Fooocus repo

* update with my gitignore setup

* add max lora config feature

* Revert "add max lora config feature"

This reverts commit cfe7463fe2.

* add lora enabler feature

* Update README.md

* Update .gitignore

* update

* merge

* revert changes

* revert

* feat: change width of LoRA columns

* refactor: rename lora_enable to lora_enabled, optimize code

---------

Co-authored-by: Manuel Schmid <manuel.schmid@odt.net>
2024-02-25 19:59:28 +01:00
Manuel Schmid eebd7752ab
fix: allow path_outputs to be outside of root dir (#2332)
allows Gradio to serve outputs when folder has been changed in the config
2024-02-25 18:44:28 +01:00
Manuel Schmid 7cfb5e742d
feat: add advanced parameter for disable_intermediate_results (progress_gallery) (#1013)
* add advanced parameter for disable_intermediate_results

prevents gradio frontend process from clogging image output and updates in high throughput scenarios such as LCM with image number >= 4

* update disable_intermediate_results correctly

based on default and selected performance

* chore: add missing translations
2024-02-25 11:31:00 +01:00
Manuel Schmid 5b7ddf8b22
feat: advanced params refactoring + prevent users from skipping/stopping other users tasks in queue (#981)
* only make stop_button and skip_button interactive when rendering process starts

fix inconsistency in behaviour of stop_button and skip_button as it was possible to skip or stop other users processes while still being in queue

* use AsyncTask for last_stop handling instead of shared

* Revert "only make stop_button and skip_button interactive when rendering process starts"

This reverts commit d3f9156854.

* introduce state for task skipping/stopping

* fix return parameters of stop_clicked

* code cleanup, do not disable skip/stop on stop_clicked

* reset last_stop when skipping for further processing

* fix: replace fcbh with ldm_patched

* fix: use currentTask instead of ctrls after merging upstream

* feat: extract attribute disable_preview

* feat: extract attribute adm_scaler_positive

* feat: extract attribute adm_scaler_negative

* feat: extract attribute adm_scaler_end

* feat: extract attribute adaptive_cfg

* feat: extract attribute sampler_name

* feat: extract attribute scheduler_name

* feat: extract attribute generate_image_grid

* feat: extract attribute overwrite_step

* feat: extract attribute overwrite_switch

* feat: extract attribute overwrite_width

* feat: extract attribute overwrite_height

* feat: extract attribute overwrite_vary_strength

* feat: extract attribute overwrite_upscale_strength

* feat: extract attribute mixing_image_prompt_and_vary_upscale

* feat: extract attribute mixing_image_prompt_and_inpaint

* feat: extract attribute debugging_cn_preprocessor

* feat: extract attribute skipping_cn_preprocessor

* feat: extract attribute canny_low_threshold

* feat: extract attribute canny_high_threshold

* feat: extract attribute refiner_swap_method

* feat: extract freeu_ctrls attributes

freeu_enabled, freeu_b1, freeu_b2, freeu_s1, freeu_s2

* feat: extract inpaint_ctrls attributes

debugging_inpaint_preprocessor, inpaint_disable_initial_latent, inpaint_engine, inpaint_strength, inpaint_respective_field, inpaint_mask_upload_checkbox, invert_mask_checkbox, inpaint_erode_or_dilate

* wip: add TODOs

* chore: cleanup code

* feat: extract attribute controlnet_softness

* feat: extract remaining attributes, do not use globals in patch

* fix: resolve circular import, patch_all now in async_worker

* chore: cleanup pid code
2024-02-24 19:01:06 +01:00
Manuel Schmid b7715b0a0c
fix: prevents outdated history log link after midnight (#1979)
* feat: update history link date after each generation

prevents outdated date in link after midnight

* delay importing of modules.config (#2195)

* fix: disable queue for initial queue loading

---------

Co-authored-by: rsl8 <138326583+rsl8@users.noreply.github.com>
2024-02-10 18:33:28 +01:00
Roman Schmitz ac10e51364
add auth to --listen and readme (#2127)
* Update webui.py

* Update readme.md

* Update webui.py

Only enable AuthN for --listen and --share

Co-authored-by: Manuel Schmid <9307310+mashb1t@users.noreply.github.com>

* docs: rephrase documentation changes for auth

---------

Co-authored-by: Manuel Schmid <9307310+mashb1t@users.noreply.github.com>
Co-authored-by: Manuel Schmid <manuel.schmid@odt.net>
2024-02-10 18:15:51 +01:00
rsl8 f6d67d7655
Make the private log url path relative (#1948) 2024-01-20 22:04:44 -08:00
lllyasviel e5af760db8 mask upload 2024-01-02 08:21:50 -08:00
xhoxye b5163e057f
Fooocus mask enhance, mask upload and invert.蒙版增强功能,上传蒙版、反转手涂蒙版 (#1645)
* Update webui.py

Added a mask upload interface.添加蒙版上传界面。

* Add mask upload feature

Add mask upload feature.添加蒙版上传功能。

* Add mask upload feature

Add mask upload feature.添加蒙版上传功能。

* Try to fix the problem when drawing mates with external enrichment.

Swap the judgment criteria and try to fix the problem when drawing mates with external enrichment.
调换判断条件,尝试修复和外部扩充绘制配合时出现的问题

* 修改注释

* 修改注释

* Update readme.md

更新日志

* Add mask upload check box,

Add check box, default does not show mask upload box, check it and then show it.
添加复选框,默认不显示蒙版上传框,勾选后再显示。

* back to normal

还原

* Try adding a mask inversion feature

Try adding a mask inversion feature.
尝试添加蒙版反转功能。
增加一个复选框来决定是否将蒙版反转。

* Try adding a mask inversion feature

Try adding a mask inversion feature.
尝试添加蒙版反转功能。
增加一个复选框来决定是否将蒙版反转。

* Fixed word errors

* Fix the words of the description
2024-01-02 07:17:02 -08:00
lllyasviel eb0b4d51ef
fix #1608 (#1635) 2023-12-28 08:22:50 -08:00
lllyasviel 2f6ebbf876 some fix for previous PRs 2023-12-28 08:07:43 -08:00
Manuel Schmid 48b1324a26
add default_max_image_number to config, use as maximum in default_image_number (#1616) 2023-12-28 07:48:30 -08:00
Manuel Schmid 986ab451cf
add workaround for changing prompt while generating (#1578) 2023-12-28 07:46:19 -08:00
lllyasviel 81107298a8
minor fix (#1532) 2023-12-20 19:58:53 -08:00
lllyasviel f7bb578a14
2.1.854
* Add a button to copy parameters to clipboard in log.
* Allow users to load parameters directly by pasting parameters to prompt.
2023-12-20 19:52:38 -08:00
lllyasviel c175afb394 fix default 2023-12-12 20:43:14 -08:00
lllyasviel ee06e87a58 reduce artifacts by also setting styles 2023-12-12 20:40:29 -08:00
lllyasviel 2e3e90e282 doc link 2023-12-12 19:35:50 -08:00
lllyasviel f8e651a483 [2.1.831] Fooocus Describe 2023-12-12 19:34:18 -08:00
lllyasviel 8f52b6d5f3
Revert "analytics via argument (#1315)" (#1359)
This reverts commit 7b72d894c5.
2023-12-12 13:27:42 -08:00
Manuel Schmid 7b72d894c5
analytics via argument (#1315) 2023-12-12 13:26:01 -08:00
lllyasviel 48ca305332 fix args 2023-12-12 11:46:49 -08:00
lllyasviel de9950187f fix speed ui 2023-12-12 11:38:22 -08:00
lllyasviel e8d88d3e25 2.1.826 2023-12-12 11:38:05 -08:00
lllyasviel dececbd060
[2.1.822] New Inpaint System
See related documents for more details.
2023-11-19 17:37:22 -08:00
lllyasviel 675805960a
2.1.821
* New UI for LoRAs.
* Improved preset system: normalized preset keys and file names.
* Improved session system: now multiple users can use one Fooocus at the same time without seeing others' results.
* Improved some computation related to model precision.
* Improved config loading system with user-friendly prints.
2023-11-17 11:25:39 -08:00
lllyasviel 3b97e49dd8 --disable-image-log 2023-11-15 13:23:27 -08:00
lllyasviel 943098f8da Allow disabling preview in dev tools. 2023-11-15 11:23:43 -08:00
lllyasviel 608fe3962c some js for lora UI 2023-11-15 07:30:16 -08:00
lllyasviel 3a9c3c07d1 multiple loras in preset 2023-11-15 02:41:49 -08:00
lllyasviel 8c49bb1cba Add previously removed preset 2023-11-15 02:19:20 -08:00
lllyasviel 8f23e2e969 Allow preset to set default inpaint engine. 2023-11-15 01:55:02 -08:00
lllyasviel cbe66fd5e0 2.1.812 2023-11-15 01:49:01 -08:00
lllyasviel 861c8d38df 810 2023-11-15 01:22:37 -08:00
lllyasviel cec0c2a8df
2.1.808
* Aspect ratios now show aspect ratios.
* Added style search.
* Added style sorting/ordering/favorites.
2023-11-14 14:06:12 -08:00
lllyasviel 5158463216 js 2023-11-13 23:44:15 -08:00
lllyasviel 6c812b68db add preprocessor skip 2023-11-13 14:35:23 -08:00
lllyasviel ed70c578fa js 2023-11-13 10:57:22 -08:00
lllyasviel 7157c1a3ed better js 2023-11-13 10:49:01 -08:00
lllyasviel d3d63d5bf6 2.1.802
Default inpaint engine changed to v2.6. You can still use inpaint engine v1 in dev tools.
Fix some VRAM problems.
2023-11-13 04:37:25 -08:00
lllyasviel 649f45a6df 'Extreme Speed' performance mode 2023-11-12 07:55:44 -08:00
lllyasviel ffd5eabe08 less verbose 2023-11-12 03:03:43 -08:00
lllyasviel fa86cf4d54 Update webui.py 2023-11-12 02:36:46 -08:00
lllyasviel 33bf502b47 fix 2023-11-12 01:59:40 -08:00
lllyasviel 7e0c6d3421 add some javascripts
add some javascripts
2023-11-12 01:52:37 -08:00
lllyasviel 3d180e9eb6 inpaint engine v2.6 2023-11-11 09:47:54 -08:00
lllyasviel 4fe08161a5 2.1.782
2.1.782
2023-11-11 01:43:01 -08:00
lllyasviel 933da40735 also launch from launch.py 2023-11-06 00:01:04 -08:00
lllyasviel 2165114876 disable image grid
disable image grid by default because many users reports performance issues. like #829 and so on.
2023-11-05 19:09:20 -08:00
lllyasviel 1babf969af remove buggy gradio forwarding 2023-11-05 18:04:31 -08:00
lllyasviel 87de9edb1a Support Ctrl+Up/Down Arrow 2023-11-05 04:51:46 -08:00
lllyasviel ce2c53f121 less verbose 2023-10-29 22:36:22 -07:00
lllyasviel 6364bb37cf another fix to #815 2023-10-29 22:26:49 -07:00
lllyasviel 769bfc7b6d hint 2023-10-29 12:38:06 -07:00
Manuel Schmid 49b94fa26e
use state instead of global for default_image (#812)
* use state instead of global for default_image

solves issue https://github.com/lllyasviel/Fooocus/issues/716

* fix

---------

Co-authored-by: lllyasviel <lyuminzhang@outlook.com>
2023-10-29 09:31:14 -07:00
lllyasviel 48bcc7a5fc fix error at 0 2023-10-28 18:31:50 -07:00
lllyasviel fa3f1709cf ui 2023-10-28 17:07:20 -07:00
lllyasviel 76120e045e update model list
Note that this only influence new users with new downloads
Previous users will not be forced to download new files, because this is not friendly and should be avoided.
delete user_path_config.txt to receive this new list
2023-10-28 16:20:11 -07:00
lllyasviel f07f7693d3 fix refiner 2023-10-26 19:42:50 -07:00
lllyasviel 5cbefa821f minor fix 2023-10-26 18:06:25 -07:00
lllyasviel 4607316c2f get each image during generating
get each image during generating
2023-10-26 17:17:05 -07:00
lllyasviel 01b1e98d37 Update Styles
Update Styles
2023-10-25 14:29:46 -07:00
lllyasviel 38e70cebcc Update Backend
Update Backend
2023-10-25 09:40:13 -07:00
MoonRide303 19a03f1d0a Blocked remote access to auth.json 2023-10-24 21:55:29 +02:00
MoonRide303 fbbaf86232 Added support for authentication in --share mode (via auth.json) 2023-10-24 18:29:37 +02:00
MoonRide303 523aa190db Refactored handling max random seed 2023-10-24 12:15:43 +02:00
lllyasviel 60cb91c406 allow ar config 2023-10-23 19:42:23 -07:00
lllyasviel ee2fe66811 fix 2023-10-23 14:26:14 -07:00
MoonRide303 81650a4305 Increased allowed random seed range 2023-10-23 12:27:12 +02:00
lllyasviel 4479fbaaef Added language/en.json to make translation easier.
Added language/en.json to make translation easier.
2023-10-20 16:19:48 -07:00
lllyasviel df93f738de finally solve wide image inpaint UI problem, curse gradio 2023-10-20 10:44:02 -07:00
MoonRide303 59b32e9dec Allowed changing default values of advanced checkbox and image number 2023-10-19 23:04:10 +02:00
lllyasviel 7ced4e26a7 Curse Gradio 2023-10-19 07:17:29 -07:00
lllyasviel 7d003c1cd4 Reland Gradio Preparation 2023-10-19 05:53:26 -07:00
lllyasviel bb6addee70
Revert "Updated requirements (Gradio, Pillow)" (#736) 2023-10-19 03:46:54 -07:00
MoonRide303 bb4c7db621 Updated requirements (Gradio, Pillow) 2023-10-19 11:14:59 +02:00
lllyasviel 906dfa1331 ling
ling
2023-10-18 23:54:40 -07:00
lvmin bb5779196a height 2023-10-16 18:52:14 -07:00
lvmin 034367ab48 daily maintain 2023-10-16 17:55:59 -07:00
MoonRide303 4e1441c07e Simplified stopping generate forever 2023-10-16 12:12:49 +02:00
MoonRide303 20b13b6a8b Merged some MRE features (generate hotkey, generate forever, notification sound) 2023-10-16 11:10:02 +02:00
lvmin 19a345e38a add hints 2023-10-15 18:21:48 -07:00
lvmin 76861de84f title 2023-10-14 03:05:07 -07:00
lvmin 63820ff362 config 2023-10-13 05:28:42 -07:00
lvmin a252f75549 log 2023-10-13 05:02:20 -07:00
lllyasviel e61aac34ca
sync (#658) 2023-10-12 04:23:10 -07:00
lllyasviel 132afcc2a2
rework refiner
rework refiner
2023-10-11 23:44:40 -07:00
lllyasviel bbdf4bd120
rework refiner for some potential new features (#642)
* sync

* sync

* sync

* sync

* sync

* sync

* sync

* sync

* sync

* sync

* sync

* sync

* sync

* sync

* sync

* sync

* sync

* sync

* sync

* sync

* sync

* sync

* sync

* sync
2023-10-11 03:07:43 -07:00
lllyasviel f55b15ab41
another way to use backend (#638)
* another way to use backend

* another way to use backend
2023-10-10 18:59:04 -07:00
lllyasviel a0bc991e38
Revert "another way to use backend (#636)" (#637)
This reverts commit df34b640a8.
2023-10-10 18:55:32 -07:00
lllyasviel df34b640a8
another way to use backend (#636) 2023-10-10 18:54:31 -07:00
lllyasviel 5e8f2f96e9
history (#635) 2023-10-10 16:27:50 -07:00
lllyasviel db945c8a27
history (#634)
* history

* history
2023-10-10 16:22:29 -07:00
lllyasviel c24be3f886
inpaint 2.5 (#631) 2023-10-10 14:44:02 -07:00
lllyasviel f92b8038b4
add config (#619)
* add config

* add config

* add config

* add config

* add config

* add config

* add config

* add config
2023-10-10 00:23:39 -07:00
lllyasviel c275434c59
add skip button (#616) 2023-10-09 20:02:03 -07:00
lllyasviel 0723c2fa52
add new Fooocus Inpaint Model V2 (#614) 2023-10-09 18:42:10 -07:00
lllyasviel 0a2c1c4cbf
amd support (#607)
* amd support

* amd support
2023-10-09 15:47:46 -07:00