Commit Graph

199 Commits

Author SHA1 Message Date
ZeroCool940711
35ec438682 Daisi app fix 4
Added option on the settings page to add your huggingface token.
Daisi app fix 3
Daisi app fix 2
Daisi app fix
2022-09-26 06:08:13 -07:00
ZeroCool940711
61e4839a1b Merge remote-tracking branch 'origin/dev' into dev 2022-09-26 05:00:34 -07:00
ZeroCool940711
d940c491a7 - Improved the layout of the UI.
- Moved relevant options to the top and group them together for easy access.
2022-09-26 04:53:34 -07:00
ZeroCool940711
e5e4954aeb Implemented daisi app base loader for the streamlit UI. 2022-09-26 04:39:40 -07:00
ZeroCool940711
2c8ea3d103 Updated the links on the model manager to comply with HuggingFace's TOS. 2022-09-26 04:17:06 -07:00
ZeroCool940711
0d9f3f4947 Added support for running the webui on daisi.io 2022-09-26 02:36:21 -07:00
ZeroCool940711
0b6d0d3b23 The default streamlit theme can now be customized from the UI as well as the UI config file. 2022-09-26 01:24:14 -07:00
ZeroCool940711
3b4b435768 Added option to enable or disable the streamlit data usage gathering or telemetry. 2022-09-26 01:24:14 -07:00
ZeroCool940711
eb9145000a The default streamlit theme can now be customized from the UI as well as the UI config file. 2022-09-26 01:20:31 -07:00
ZeroCool940711
c37a92c39f Added option to enable or disable the streamlit data usage gathering or telemetry. 2022-09-26 01:12:06 -07:00
ZeroCool
1fd28eed1e
Made sure GFPGAN and RealESRGAN are on server_state. (#1319) 2022-09-25 21:23:32 -07:00
ZeroCool940711
e6529b22ec Made sure GFPGAN and RealESRGAN are on server_state. 2022-09-25 21:07:06 -07:00
Qualzz
5d1558f2b4
Concept library improvements (#1314)
* corrupted pngs handling

* hide search label

* clear cache button
2022-09-25 20:23:19 +01:00
Chris Heald
c7e126f6f8
Updates for the v2 trainer
* Restore --config. This will be useful when you have an init config
  that you don't want overwritten.
* Cache the individual transformed images in TextualInversionDataset.
  This gains speed by avoiding reading and reprocessing the image each
  time it's used for training.
* Turn on no_grad for inference and clean up tensors during
  checkpointing. This reduces memory usage slightly.
* Set the sample output size to 384x384. We just need them large enough
  for manual evaluation, and this gains us a decent chunk of speed.
* (breaking change) Custom templates are now semicolon-delineated.
  Additionally, custom templates are properly passed through to
  TextualInversionDataset to generate input_ids for your images. Using
  custom templates which accurately describe your input images seems to
  improve training fidelity.
* Cache autoencoding of image pixel data. This substantially increases
  the speed of training, upwards of 40% for me.
* Clean up a little bit of cruft.
2022-09-25 13:21:24 +01:00
hlky
0d79243e45
fix diffusers_textual_inversion_2.py conflicts step 1 2022-09-25 13:20:17 +01:00
ZeroCool940711
a1fff59a73 Fixed "device" not being on server_state. 2022-09-25 03:55:16 -07:00
ZeroCool940711
47df4681ee Reduced the folder name a bit more to help with long paths on windows. 2022-09-25 01:44:34 -07:00
ZeroCool940711
4e34a987e1 Added customizable value for the concepts per page option on the concepts library tab. 2022-09-25 01:17:14 -07:00
ZeroCool940711
7084e94bdf Moved the model to server_state instead of session_state so it can be shared between multiple sessions, tabs and users as long as the streamlit server is running. 2022-09-25 00:03:05 -07:00
ZeroCool940711
86505f16ed Moved the pipe model to server_state instead of session_state so it can be shared between multiple sessions, tabs and users as long as the streamlit server is running. 2022-09-24 23:28:02 -07:00
ZeroCool940711
7c24e6f620 Moved the models as well as other static parameters to the server_state instead of session_state. 2022-09-24 23:23:55 -07:00
ZeroCool
a64f9a22b0
Merge branch 'dev' into img2img-esrgan-fix 2022-09-24 18:26:54 -07:00
ZeroCool940711
d7d0ad97c3 Changed some PIL stuff to use resampling to avoid some warnings on the console 2022-09-24 18:06:24 -07:00
ZeroCool940711
9c12a6a322 Changed the search bar text_input widget to have a label as its not allowed to be empty on streamlit 1.13.0 and will give a warning and possible an error later. 2022-09-24 18:05:08 -07:00
ZeroCool940711
b8b9df717a Removed some unused functions and code so we can upgrade streamlit to version 1.13.0. 2022-09-24 18:04:21 -07:00
Seacant
bb029225d6 Fixed Streamlit bug where RealESRGAN seemed broke
There was a safety check where RealESRGAN and loopback
were not allowed to be on at the same time to prevent
rapidly growing images (I think, at least) which was
causing confusion in the UI since there was no indication
this wasn't allowed. Using ESRGAN just on the final iteration
should be safe, so this commit enables that.
2022-09-25 01:01:25 +00:00
ZeroCool940711
23070de38d Added info text to let the user now that the other setting pages are still under construction. 2022-09-24 17:18:29 -07:00
ZeroCool940711
3816b28d2c Fixed error with CustomModel_available not being in session_state after the Settings page change. 2022-09-24 15:27:09 -07:00
ZeroCool940711
0f9f7c382b First implementation of the Settings page. 2022-09-24 05:30:16 -07:00
ZeroCool940711
37b2090844 Added message to tell user that the textual inversion page is under construction instead of having it empty. 2022-09-24 05:28:54 -07:00
ZeroCool940711
d584fa28eb Added condition to make sure the userconfig_streamlit.yaml file is created if it doesnt exist. 2022-09-24 05:19:13 -07:00
ZeroCool940711
6a7de2066f Removed script from before the code split that is no longer needed. 2022-09-24 05:15:18 -07:00
ZeroCool940711
9b73f463cf - Added function to convert bytes to a human readable string.
- Added basic implementation of "enable_minimal_memory_usage".
2022-09-24 05:11:33 -07:00
ZeroCool940711
1c459bce53 - Added individual titles on the browser tab for each page.
- Added basic url for each page to the address bar for browser history.
2022-09-23 22:07:50 -07:00
ZeroCool940711
8cf8d3f03a Added simple function to allows to change the title of the app dynamically instead of only doing it once per app, this could be useful for setting the title on specific pages and making it appear on the browser history. 2022-09-23 21:19:50 -07:00
xaedes
70acb61c21
remove wrong arguments from save_sample call (#1290)
fixes #1258
2022-09-24 01:29:12 +01:00
Qualzz
6ae84c6c3a
better library browser (#1281)
* better library browser

* removed debug prints
2022-09-24 00:20:51 +01:00
hlky
f6215a5bb1
remove unused scripts 2022-09-23 15:31:07 +01:00
hlky
8b4464a706
Add periodic checkpointing
Update diffusers_textual_inversion_2.py
2022-09-23 15:29:08 +01:00
Colton
f0be43d7df
Send the image grid to the front end if generated for a prompt matrix (#1200) 2022-09-23 14:32:36 +03:00
Qualzz
75eac9c5c0
moved pagination logic before the rendering of the component (#1268) 2022-09-22 23:09:42 +03:00
ZeroCool940711
e49699a65e Basic code for the streamlit textual inversion page. 2022-09-22 01:44:35 -07:00
ZeroCool940711
889256d26e Improved the script that downloads the concepts library from huggingface in case someone wants to use it. 2022-09-22 00:02:44 -07:00
ZeroCool940711
3cd91bde82 The denoising_strength slider on img2img is now customizable using the config file. 2022-09-21 14:58:49 -07:00
ZeroCool940711
2c7b22a540 The Find Noise Steps slider om img2img can now be customizable from the config file. 2022-09-21 00:39:27 -07:00
ZeroCool940711
e874a2d6a7 Added condition to check if the concepts library folder exist and if not tell the user where to download the concepts from. 2022-09-20 22:15:49 -07:00
ZeroCool940711
8584205e11 Added implementation of the Concepts Library tab made by @Qualzz. 2022-09-20 21:06:00 -07:00
ZeroCool940711
f99657241d Fixed the image not been decoded in txt2vid if the Update Image Preview options was not checked. 2022-09-20 17:07:38 -07:00
hlky
ba84d28da2
txt2vid fix enumerate(... max_frames)) -> enumerate(... num_steps)) 2022-09-20 14:00:08 +01:00
Thomas Mello
3705f296c6
fix: division by zero, inefficient preview check (#1230) 2022-09-19 21:05:18 +03:00