Commit Graph

69 Commits

Author SHA1 Message Date
Manuel Schmid
4a44be36fd
feat: add preset selection to Gradio UI (session based) (#1570)
* add preset selection

uses meta parsing to set presets in user session (UI elements only)

* add LoRA handling

* use default config as fallback value

* add preset refresh on "Refresh All Files" click

* add special handling for default_styles and default_aspect_ratio

* sort styles after preset change

* code cleanup

* download missing models from preset

* set default refiner to "None" in preset realistic

* use state_is_generating for preset selection change

* DRY output parameter handling

* feat: add argument --disable-preset-selection

useful for cloud provisioning to prevent model switches and keep models loaded

* feat: keep prompt when not set in preset, use more robust syntax

* fix: add default return values when preset download is disabled

https://github.com/mashb1t/Fooocus/issues/20

* feat: add translation for preset label

* refactor: unify preset loading methods in config

* refactor: code cleanup
2024-03-15 22:04:27 +01:00
Manuel Schmid
f7f0b51bab
Merge branch 'main_upstream' into develop 2024-03-13 00:31:41 +01:00
Manuel Schmid
6da0441cc7
fix: update xformers to 0.0.23 (#2517)
WARNING[XFORMERS]: xFormers can't load C++/CUDA extensions. xFormers was built for:
    PyTorch 2.0.1+cu118 with CUDA 1108 (you have 2.1.0+cu121)
    Python  3.10.11 (you have 3.10.9)
2024-03-12 23:13:38 +01:00
Manuel Schmid
400471f7af
feat: add config for temp path and temp path cleanup on launch (#1992)
* Added options to set the Gradio cache path and clear cache on launch.

* Renamed cache to temp

* clear temp

* feat: do not delete temp folder but only clean content

also use fallback to system temp dir
see 6683ab2589/gradio/utils.py (L1151)

* refactor: code cleanup

* feat: unify arg --temp-path and new temp_path config value

* feat: change default temp dir from gradio to fooocus

* refactor: move temp path method definition and configs

* feat: rename get_temp_path to init_temp_path

---------

Co-authored-by: Magee <koshms3@gmail.com>
Co-authored-by: steveyourcreativepeople <steve@yourcreativepeople.com>
Co-authored-by: Manuel Schmid <manuel.schmid@odt.net>
2024-03-10 21:11:41 +01:00
Manuel Schmid
5409bfdb26
Revert "feat: add config for temp path and temp path cleanup on launch (#1992)" (#2502)
This reverts commit 85e8aa8ce2.
2024-03-10 21:08:55 +01:00
Magee
85e8aa8ce2
feat: add config for temp path and temp path cleanup on launch (#1992)
* Added options to set the Gradio cache path and  clear cache on launch.

* Renamed cache to temp

* clear temp

* feat: do not delete temp folder but only clean content

also use fallback to system temp dir
see 6683ab2589/gradio/utils.py (L1151)

* refactor: code cleanup

* feat: unify arg --temp-path and new temp_path config value

* feat: change default temp dir from gradio to fooocus

* refactor: move temp path method definition and configs

* feat: rename get_temp_path to init_temp_path

---------

Co-authored-by: steveyourcreativepeople <steve@yourcreativepeople.com>
Co-authored-by: Manuel Schmid <manuel.schmid@odt.net>
2024-03-10 21:06:08 +01:00
dooglewoogle
ef1999c52c
feat: add ability to load checkpoints and loras from multiple locations (#1256)
* Add ability to load checkpoints and loras from multiple locations

* Found another location a default path is required

* feat: use array as default

---------

Co-authored-by: Manuel Schmid <manuel.schmid@odt.net>
2024-02-25 12:47:14 +01:00
rsl8
e4929a9ed7
fix: do not overwrite $GRADIO_SERVER_PORT if it is already set (#1921) 2024-02-10 18:44:20 +01:00
rsl8
95f93a1f4b
delay importing of modules.config (#2195) 2024-02-10 17:51:38 +01:00
lllyasviel
69ad1b3c24 advanced preset load
new model list

i

new candidates

add model fallback

allow disable preset download

Update anime.json

Update anime.json

Update config.py

Update anime.json

Update readme.md

Update default.json
2024-01-27 08:06:31 -08:00
lllyasviel
5f3a87d871 try fix ssl 2023-12-12 12:59:58 -08:00
lllyasviel
e8d88d3e25 2.1.826 2023-12-12 11:38:05 -08:00
lllyasviel
0d878b0282 try fix some mps problems 2023-12-11 19:16:46 -08:00
lllyasviel
7e0c6d3421 add some javascripts
add some javascripts
2023-11-12 01:52:37 -08:00
lllyasviel
4fe08161a5 2.1.782
2.1.782
2023-11-11 01:43:01 -08:00
lllyasviel
2342761fa1 allow set device 2023-11-06 00:44:38 -08:00
lllyasviel
10574f1cc2 print argv 2023-11-06 00:05:10 -08:00
lllyasviel
933da40735 also launch from launch.py 2023-11-06 00:01:04 -08:00
lllyasviel
f010dc6994
preset system (beta)
preset system
2023-10-13 17:37:49 -07:00
lvmin
9efa4ecd27 allow embeddings download 2023-10-13 14:21:43 -07:00
lvmin
b3c6624e82 ini build launcher 2023-10-13 13:25:19 -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
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
8afdd7c7b0
update version (#613) 2023-10-09 16:07:52 -07:00
lllyasviel
0a2c1c4cbf
amd support (#607)
* amd support

* amd support
2023-10-09 15:47:46 -07:00
lllyasviel
76708ce286
Try use cu121 (#591)
* Try use cu121

* Try use cu121

* Try use cu121
2023-10-08 23:13:43 -07:00
lllyasviel
f170e1c08e
some fix (#560)
* download upscaler only when user use it

* use better method
2023-10-08 00:28:03 -07:00
lllyasviel
6faaac333b
i (#559) 2023-10-07 22:54:04 -07:00
lllyasviel
7fb0996461
begin to maintain the performance of 24GB machines (#540) 2023-10-04 14:41:01 -07:00
lllyasviel
046c93c0f2
see if pygit2 is fixed by changing a commit (#538) 2023-10-04 13:21:30 -07:00
lllyasviel
bbae307ef2
2.0.80 (#520)
* Rework many patches and some UI details.
* Speed up processing.
* Move Colab to independent branch.
* Implemented CFG Scale and TSNR correction when CFG is bigger than 10.
* Implemented Developer Mode with more options to debug.
2023-10-03 10:36:42 -07:00
lllyasviel
7e031b1b03
Update launch.py (#459) 2023-09-20 20:40:54 -07:00
lllyasviel
32719e3ad1
fix vram problems (#437) 2023-09-19 12:11:41 -07:00
ttio2tech
71e99185cb
add support for AMD GPU on Linux. Skip the xformers installation if detecting AMD GPU. also add a section in readme. (#397)
Co-authored-by: tio2 <pema@syr.edu>
2023-09-16 14:09:04 -07:00
lllyasviel
8ef31d33af
[Fooocus 2.0.50] Variation/Upscale (Midjourney Toolbar) (#389) 2023-09-16 03:29:41 -07:00
lllyasviel
8ef00d87b4
minor revise (#382)
* minor revise

* minor revise
2023-09-15 03:40:06 -07:00
lllyasviel
e32f04da34
move expansion to managed device (#364)
* move expansion to managed device

* move expansion to managed device

* move expansion to managed device

* move expansion to managed device

* move expansion to managed device

* move expansion to managed device
2023-09-13 12:48:27 -07:00
lllyasviel
496766edd7
Fooocus Prompt Expansion (#329)
* add vae approx download

* files

* files

* files

* i

* i

* i

* i

* i

* i

* i

* i

* i

* i
2023-09-09 17:22:32 -07:00
lvmin
f3b96ef9f2 handle args 2023-08-30 06:46:28 -07:00
lllyasviel
dcc4463a24
Remove buggy malloc (#302)
Remove buggy malloc
2023-08-30 06:12:28 -07:00
lvmin
63545b224e fix colab 2023-08-19 17:23:55 -07:00
lllyasviel
084f1dfb72
update dep, sampler (#217) 2023-08-19 14:35:25 -07:00
lllyasviel
7900480360
1.0.25 (#67)
support sys.argv --listen --share --port
2023-08-14 06:56:23 -07:00
lllyasviel
983909b3fe
1.0.17 (#25)
### 1.0.17

* Change default model to SDXL-1.0-vae-0.9. (This means the models will be downloaded again, but we should do it as early as possible so that all new users only need to download once. Really sorry for day-0 users. But frankly this is not too late considering that the project is just publicly available in less than 24 hours - if it has been a week then we will prefer more lightweight tricks to update.)
2023-08-12 11:46:56 -07:00
lvmin
e1d0b73850 i 2023-08-11 09:55:14 -07:00
lvmin
d9e797cc51 i 2023-08-11 09:39:10 -07:00