Commit Graph

872 Commits

Author SHA1 Message Date
hlky
ba84d28da2
txt2vid fix enumerate(... max_frames)) -> enumerate(... num_steps)) 2022-09-20 14:00:08 +01:00
hlky
6009b03752
#1238 from moandcompany/dependency_audit_docker
Audit dependencies and revise Docker environment specification
2022-09-20 10:55:29 +01:00
Andrew Mo
95a94a8748 Audit dependencies and revise Docker environment specification 2022-09-20 00:21:54 -07:00
ZeroCool
1638063039
Merge pull request #1235 from JoshuaKimsey/linux-script-updates
Updated `webui.sh` for StreamLit + Enhancements
2022-09-19 22:05:13 -07:00
Joshua Kimsey
48d5f35ff5 Updated webui.sh for StreamLit + Enhancements
Added: Automatic downloads for upscaler models
Added: Prompt to ensure users have placed their SD models in the right spot, with automatic handling for placing them.

Changed: Significantly cleaned up `webui.sh` to have a consistent formatting, as well as follow proper Bash conventions.
Changed: Compartmentalised the code to be easier to add or change features or functions down the road.

Fixed: Potential issue with conda activation from the script, which was solved by using the `#!/bin/bash -i` shebang.
2022-09-20 01:01:44 -04:00
Thomas Mello
c6b13a418f
move scale multiplication (#1232) 2022-09-20 02:10:46 +03:00
Thomas Mello
3705f296c6
fix: division by zero, inefficient preview check (#1230) 2022-09-19 21:05:18 +03:00
hlky
17748cbc9c
Merge pull request #1216 from codedealer/docs
chore: move documentation back to the repo
2022-09-19 17:00:29 +01:00
hlky
68118fe0f4
Merge pull request #1216 from codedealer/docs
chore: move documentation back to the repo
2022-09-19 16:59:47 +01:00
hlky
c6bf0d2ecb
Update diffusers_textual_inversion_2.py 2022-09-19 14:49:00 +01:00
hlky
91c0d0f20b
Create diffusers_textual_inversion_2.py 2022-09-19 13:09:45 +01:00
ZeroCool
65ccec5a6e
Merge pull request #1223 from ZeroCool940711/dev
Improved memory usage for both txt2img and txt2vid.
2022-09-19 00:07:52 -07:00
ZeroCool940711
56ae22eb53 - Improved optimized mode for txt2img, it should be able to generate high resolution images using less VRAM than before.
- Improved txt2vid so its now possible to generate high resolution images with less VRAM than before.
- Added condition to ensure that the pipe model from txt2vid is removed from memory when switching from the txt2vid tab to txt2img and viceversa.
2022-09-19 00:02:21 -07:00
ZeroCool940711
1d9ef57802 Fixed the filename of the video generated at the end of a txt2vid generation, it was saved as test.mp before but now its saved as seed_prompt.mp4 with the seed and prompt form the generation. 2022-09-18 18:29:19 -07:00
ZeroCool
0cdc2f31b1
Merge pull request #1219 from ZeroCool940711/dev
GFPGAN can now be used on the txt2vid tab.
2022-09-18 15:21:59 -07:00
ZeroCool940711
a7d7955721 GFPGAN can now be used on the txt2vid tab. 2022-09-18 15:17:02 -07:00
Thomas Mello
2d2ef0cf45 dark theme 2022-09-19 01:05:46 +03:00
Thomas Mello
c0bb98f62e heck go back 2022-09-19 01:05:46 +03:00
Thomas Mello
87ad700861 add info about docs and contributing 2022-09-19 01:05:46 +03:00
Thomas Mello
4e78572bc1 dark theme 2022-09-19 01:05:46 +03:00
Thomas Mello
83db780d8e add contribution guide 2022-09-19 01:05:46 +03:00
Thomas Mello
490437d9e5 add new --help output 2022-09-19 01:05:46 +03:00
Thomas Mello
85290c229e update major links 2022-09-19 01:05:46 +03:00
Thomas Mello
247ba25fe1 Update _config.yml 2022-09-19 01:05:46 +03:00
Thomas Mello
1d256c87ce add theme 2022-09-19 01:05:46 +03:00
Thomas Mello
13a78a28bd add jekyll config 2022-09-19 01:05:46 +03:00
Thomas Mello
f4693ef9f4 move docs from wiki to repo 2022-09-19 01:05:46 +03:00
ZeroCool
300e6865d6
Merge pull request #1217 from ZeroCool940711/dev
Fixed typo on the sd-concepts-library path.
2022-09-18 14:21:09 -07:00
ZeroCool940711
db0eb80728 Fixed typo on the sd-concepts-library path. 2022-09-18 14:20:13 -07:00
ZeroCool
e2d6e22023
Merge pull request #1215 from ZeroCool940711/dev
Every slider min, max and step values as well as its default value is now configurable through the config file.
2022-09-18 11:14:30 -07:00
ZeroCool940711
f1a513ef90 Merge remote-tracking branch 'origin/dev' into dev 2022-09-18 11:13:08 -07:00
ZeroCool940711
1b1f784a76 Every slider min, max and step values as well as its default value is now configurable through the config file. 2022-09-18 11:11:23 -07:00
ZeroCool
4c183091fc
Merge pull request #1214 from ZeroCool940711/dev
Added missing sd_concept_library.py file.
2022-09-18 09:17:06 -07:00
ZeroCool940711
fdd0c38ac2 Added missing sd_concept_library.py file. 2022-09-18 09:15:05 -07:00
hlky
ab0c942560
Merge pull request #1212 from sd-webui/master
Changes from master that are not in dev
2022-09-18 14:19:02 +01:00
hlky
b703f49b27
Merge pull request #1211 from sd-webui/dev
Missed fixes from original merge pr
2022-09-18 14:17:07 +01:00
hlky
f4493efe11
Merge pull request #1210 from codedealer/the-merge
The merge
2022-09-18 14:15:24 +01:00
hlky
165893bc36
Revert "The Merge (#1201)" (#1208)
This reverts commit a797312183.
2022-09-18 14:08:43 +01:00
Thomas Mello
3a08703b0d
fix: copy to clipboard button 2022-09-18 14:06:40 +01:00
hlky
2146f1dd68
slider_steps and slider_bounds in defaults config
slider_steps and slider_bounds in defaults config
2022-09-18 14:06:40 +01:00
hlky
54e7f8f235
default img2img denoising strength increased 2022-09-18 14:06:39 +01:00
Thomas Mello
a797312183
The Merge (#1201)
* resolve conflict with master

* - Added option to select custom models instead of just using the default one, if you want to use a custom model just place your .ckpt file in "models/custom" and the UI will detect it and let you switch between stable diffusion and your custom model, make sure to give the filename a proper name that is easy to distinguish from other models because that name will be used on the UI.
- Implemented basic Text To Video tab, will continue to improve it as it is really basic right now.
- Improved the model loading, you now should see less frequently errors about it not been loaded correctly.

* fix: advanced editor (#827), close #811

refactor js_Call hook to take all gradio arguments

* Added num_inference_steps to config file and fixed incorrectly calls to the config file from the txt2vid tab calling txt2img instead.

* update readme as per installation step & format

* proposed streamlit code organization changes

I want people of all skill levels to be able to contribute
This is one way the code could be split up with the aim of making it easy to understand and contribute especially for people on the lower end of the skill spectrum
All i've done is split things, I think renaming and reorganising is still needed

* Fixed missing diffusers dependency  for Streamlit

* Streamlit: Allow user defaults to be specified in a userconfig_streamlit.yaml file.

* Changed Streamit yaml default configs

Changed `update_preview_frequency` from every 1 step to every 5 steps. This results in a massive gain in performance (roughly going from 2-3 times slower to only 10-15% slower) while still showing good image generation output.

Changed default GFPGAN and realESRGAN settings to be off by default. That way, users can decide if they want to use them on, and what images they wish to do so.

* Made sure img2txt and img2img checkboxes respect YAML defaults

* Move location of user file to configs/webui folder

* Fixed the path in webui_streamlit.py

* Display Info and Stats when render is complete, similar to what Gradio shows.

* Add info and stats to img2img

* chore: update maintenance scripts and docs  (#891)

* automate conda_env_name as per name in yaml

* Embed installation links directly in README.md

Include links to Windows, Linux, and Google Colab installations.

* Fix conda update in webui.sh for pip bug

* Add info about new PRs

Co-authored-by: Hafiidz <3688500+Hafiidz@users.noreply.github.com>
Co-authored-by: Tom Pham <54967380+TomPham97@users.noreply.github.com>
Co-authored-by: GRMrGecko <grmrgecko@gmail.com>

* Improvements to the txt2vid tab.

* Urgent Fix to PR:860

* Update attention.py

* Update FUNDING.yml

* when in outcrop mode, mask added regions and fill in with voroni noise for better outpainting

* frontend: display current device info (#889)

Displays the current device info at the bottom of the page.

For users who run multiple instances of `sd-webui` on the same system (for multiple GPUs), it helps to know which of the active `CUDA_VISIBLE_DEVICES` is being used.

* Fixed aspect ratio box not being updated on txt2img tab, for issue 219 from old repo (#812)

* Metadata cleanup - Maintain metadata within UI (#845)

* Metadata cleanup - Maintain metadata within UI

This commit, when combined with Gradio 3.2.1b1+, maintains image
metadata as an image is passed throughout the UI. For example,
if you generate an image, send it to Image Lab, upscale it, fix faces,
and then drag the resulting image back in to Image Lab, it will still
remember the image generation parameters.

When the image is saved, the metadata will be stripped from it if
save-metadata is not enabled. If the image is saved by *dragging*
out of the UI on to the filesystem it may maintain its metadata.

Note: I have ran into UI responsiveness issues with upgrading Gradio.
Seems there may be some Gradio queue management issues. *Without* the
gradio update this commit will maintain current functionality, but
will not keep meetadata when dragging an image between UI components.

* Move ImageMetadata into its own file

Cleans up webui, enables webui_streamlit et al to use it as well.

* Fix typo

* Add filename formatting argument (#908)

* Update webui.py

Filename formatting argument

* Update scripts/webui.py

Co-authored-by: Thomas Mello <work.mello@gmail.com>

* Tiling parameter (#911)

* tiling

* default to False

* fix: filename format parameter (#923)

* For issue :884, ensure webui.cmd before init src

* Remove embeddings file path

* Add mask_restore to restore images based on mask, fixing #665 (#898)

* Add mask_restore option to give users the option to restore images based on mask, fixing #665.

Before commit c73fdd78  (Implement masking during sampling to improve blending, #308)
image mask was applied after sampling, resulting in masked parts that are not regenerated
to actually stay the same.
Since c73fdd78 the masked img2img will change the whole image, even in masked areas.
It gives better looking results at first glance, but will result in image degredation when
applied a few times. See issue #665.

In the workflow of using repeated masked img2img, users may want to use this options to keep the parts
of image they actually want to keep without image degradation. A final masked img2img or whole image img2img with mask_restore disabled
will give the better blending of "Implement masking during sampling".

* revert changes of a7be43ba in change_image_editor_mode

* fix ui_functions.change_image_editor_mode by adding gr.update to the end of the list it returns

* revert inserted newlines and whitespaces to match format of previous code

* improve caption of new option mask_restore

"Only modify regenerated parts of image"

* fix ui_functions.change_image_editor_mode by adding gr.update to the end of the list it returns

an old copy of the function exists in webui.py, this superflous function mistakenly was changed by the earlier commit b6a9e16b

* remove unused functions that are near duplicates of functions in ui_functions.py

* Added CSS to center the image in the txt2img interface

* add img2img option for color correction. (#936)

color correction is already used for loopback to prevent color drift with the first image as correction target.
the option allows to use the color correction even without loopback mode.
it helps keeping the colors similar to the input image.

* Image transparency is used as mask for inpainting

* fix: lost imports from #921

* Changed StreamIt to `k_euler` 30 steps  as default

* Fixed an issue with the txt2vid model.

* Removed old files from a split test we deed that are not needed anymore, we plan to do the split differently.

* Changed the scheduler for the txt2vid tab back to LMS, for now we can only use that.

* Better support for large batches in optimized mode

* Removed some unused lines from the css file for the streamlit version.

* Changed the diffusers version to be 0.2.4 or lower as a new version breaks the txt2vid generation.

* Added the models/custom folder to gitignore to ignore custom models.

* Added two new scripts that will be used for the new implementation of the txt2vid tab which uses the latest version of the diffusers library.

* - Improved the progress bar for the txt2vid tab, it now shows more information during generation.
- Changed the guidance_scale variable to be cfg_scale.

* Perform masked image restoration for GFPGAN, RealESRGAN, fixing #947

* Perform masked image restoration when using GFPGAN or RealESRGAN, fixing #947.
Also fixes bug in image display when using masked image restoration with RealESRGAN.

When the image is upscaled using RealESRGAN the image restoration can not use the
original image because it has wrong resolution. In this case the image restoration
will restore the non-regenerated parts of the image with an RealESRGAN upscaled
version of the original input image.

Modifications from GFPGAN or color correction in (un)masked parts are also restored
to the original image by mask blending.

* Update scripts/webui.py

Co-authored-by: Thomas Mello <work.mello@gmail.com>

* fix: sampler name in GoBig #988

* add sampler_name defaults to img2img

* add metadata to other file output file types

* remove deprecated kwargs/parameter

* refactor: sort out dependencies

Co-Authored-By: oc013 <101832295+oc013@users.noreply.github.com>
Co-Authored-By: Aarni Koskela <akx@iki.fi>
Co-Authored-By: oc013 <101832295+oc013@users.noreply.github.com>
Co-Authored-By: Aarni Koskela <akx@iki.fi>

* webui: detect scoped-down GPU environment (#993)

* webui: detect scoped-down GPU environment

check if we're using a scoped-down GPU environment (pynvml does not listen to CUDA_VISIBLE_DEVICES) so that we can measure memory on the correct GPU

* remove unnecessary import

* Added piexif dependency.

* Changed the minimum value for the Sampling Steps and Inference Steps to 10 and added step with a value of 10 to make it easier to move the slider as it will require a higher maximum value than in other tabs for good results on the text2vid tab.

* Commented an import that is not used for now but will be used soon.

* write same metadata to file and yaml

* include piexif in environment needed for exif labelling of non-png files

* fix individual image file format saves

* introduces a general config setting save_format similar to grid_format for individual file saves

* Add NSFW filter to avoid unexpected (#955)

* Add NSFW filter to avoid unexpected

* Fix img2img configuration numbering

* Added some basic layout for the Model Manager tab and added there the models that most people use to make it easy to download instead of having to go do the wiki or searching through discord for links, it also shows the path where you are supposed to put those models for them to work.

* webui: display the GPU in use during startup (#994)

* webui: display the GPU in use during startup

tell the user which GPU the code is actually going to use before spending lots of time loading everything onto the GPU

* typo

* add some info messages

* evaluate current GPU properly

* add debug flag gating

not everyone wants or needs to see debug messages :)

* add in stray debug msg

* Docker updates - Add LDSR, streamlit, other updates for new repository

* Update util.py

* Docker - Set PYTHONPATH to parent directory to avoid `No module named frontend` error

* Add missing comma for nsfw toggle in img2img (#1028)

* Multiple improvements to the txt2vid tab.
- Improved txt2vid speed by 2 times.
- Added DDIM scheduler.
- Added sliders for beta_start and beta_end to have more control over these parameters on the scheduler.
- Added option to select the scheduler type from scaled_linear or linear.
- Added option to save info files for the txt2vid tab and improved the information saved to include most of the parameters used to run the generation.
- You can now download any model from the huggingface website to use on the txt2vid tab, just add the name to the custom_models_list on the config file.

* webui: add prompt output to console (#1031)

* webui: add prompt output to console

show the user what prompt is currently being rendered

* fix prompt print location

* support negative prompts separated by ###

e.g. "shopping mall ### people" will try to generate an image of a mall
without people in it.

* Docker validate model files if not a symlink in case user has VALIDATE_MODELS=false set (#1038)

* - Added changes made by @Hafiidz on the ui-improvements branch to the css for the streamli-on-hover-tabs component.

* Added streamlit-on-Hover-tabs and streamlit-option-menu dependencies to the environment.yaml file.

* Changed some values to be dynamic instead of a fixed value so they are more responsive.

* Changed the cmd script to use the dark theme by default when launching the streamlit UI.

* Removed the padding at the top of the sidebar so we can have more free space.

* - Added code for @Hafiidz's changes made on the css.

* Fixed an error with the metadata not able to be saved because of the seed was not converted to a string before so it had no attribute encode on it.

* add masking to streamlit img2img, find_noise_for_image, matched_noise

* Use the webui script directories as PWD (#946)

* add Gradio API endpoint settings (#1055)

* add Gradio API endpoint settings

* Add comments crediting code authors. (probably not enough, but better than none)

* Renamed the save_grid option for txt2vid on the config file to be save_video, this will be used to determine if the user wants to save a video at the end of the generation or not, similar to the save_grid that is used on txt2img and img2img but for video.

* -Added the Update Image Preview option to be part of the current tab options under Preview Settings.
- Added Dynamic Preview Frequency option for the txt2vid tab which tries to find the lowest value for update_preview_frequency at which we can update the preview image during generation while at the same time minimizing the impact it has in performance.
- Added option to save a video file on the outputs/txt2vid-samples folder after the generation is complete similar to how the save_grid option works on other tabs.
- Added a video preview which shows a video on the txt2vid tab when the generation is completed.
- Formated some lines of code to make it use less space and fit on the a single screen.
- Added a script called Settings.py to the script folder in which Settings for the Setting page will be placed. Empty for now.

* Commented some print statements that were used for debugging and forgot to remove previously.

* fix: disable live prompt parsing

* Fix issue where loopback was using batch mode

* Fix indentation error that prevents mask_restore from working unless ESRGAN is turned on

* Fixed Sidebar CSS for 4K displays

* img2img mask fixes and fix image2noise normalization

* Made it so the sampling_steps is added to num_inference_steps, otherwise it would not match the value you set for it on the slider.

* Changed the loading of the model on the txt2vid tab so the half models are only loaded if the no_half option on the config file is set to False.

* fix: launcher batch file fix #920, fix #605

- Allow reading environment.yaml file in either LF or CRLF
- Only update environment if environment.yaml changes
- Remove custom_conda_path to discourage changing source file
- Fix unable to launch webui due to frontend module missing (#605)

* Update README.md (#1075)

fix typo

* half precision streamlit txt2vid

`RuntimeError: expected scalar type Half but found Float` with both `torch_dtype=torch.float16` and `revision="fp16"`

* Add mask restore feature to streamlit, prevent color correction from modifying initial image when mask_restore is turned on

* Add mask_restore to streamlit config

* JobManager: Fix typo breaking jobs close #858 close #1041

* JobManager: Buttons skip queue (#1092)

Have JobManager buttons skip Gradio's queue, since otherwise
they aren't sending JobManager button presses.

* The webui_streamlit.py file has been split into multiple modules containing their own code making it easier to work with than a single big file.
The list of modules is as follow:
- webuit_streamlit.py: contains the main layout as well as the functions that load the css which is needed by the layout.
- webui_streamlit_old.py: contains the code for the previous version of the WebUI. Will be removed once the new UI code starts to get used and if everything works as it should.
- txt2img.py: contains the code for the txt2img tab.
- img2img.py: contains the code for the img2img tab.
- txt2vid.py: contains the code for the txt2vid tab.
- sd_utils.py: contains utility functions used by more than one module, any function that meets such condition should be placed here.
- ModelManager.py: contains the code for the Model Manager page on the sidebar menu.
- Settings.py: contains the code for the Settings page on the sidebar menu.
- home.py: contains the code for the Home tab, history and gallery implemented by @devilismyfriend.
- imglab.py: contains the code for the Image Lab tab implemented by @devilismyfriend

* fix: patch docker conda install pip requirements (#1094)

(cherry picked from commit fab5765fe4)

Co-authored-by: Sérgio <smaisidoro@gmail.com>

* Using the Optimization from Dogettx  (#974)

* Update attention.py

* change to dogettx

Co-authored-by: hlky <106811348+hlky@users.noreply.github.com>

* Update Dockerfile (#1101)

add expose for streamlit port

* Publish Streamlit ports (#1102)

(cherry picked from commit 833a91047d)

Co-authored-by: Charlie <outlookhazy@users.noreply.github.com>

* Forgot to call the layout() for the Model Manager tab after the import so it was not been used and the tab was shown as empty.

* Removed the "find_noise_for_image.py" and "matched_noise.py" scripts as their content is now part of "sd_utils.py"

* - Added the functions to load the optimized models, this "should" make it so optimized and turbo mode work now but needs to be tested more.
- Added function to load LDSR.

* Fixed some imports.

* Fixed the info message on the txt2img tab not showing the info but just showing the text "Done"

* Made the defaults settings from the config file be stored inside st.session_state to avoid loading it multiple times when calling the "sd_utils.py" file from other modules.

* Moved defaults to the webui_streamlit.py file and fixed some imports.

* Removed condition to check if the defaults are in the st.session_state dictionary, this is not needed and would cause issues with it not being reloaded when the user changes something on it.

* Modified the way the defaults settings are loaded from the config file so we only load them on the webui_strealit.py file and use st.session_state to access them from anywhere else, this makes it so the config can be modified externally like before the code split and the changes will be updated on next rerun of the UI.

* fix: [streamlit] optimization mode

* temp disable nvml support for multiple gpus

* Fixed defaults not being loaded correctly or missing in some places.

* Add a separate update script instead of git pull on startup (#1106)

* - Fixed max_frame not being properly used and instead sampling_steps was the variable being use.
- Fixed several issues with wrong variable being used on multiple places.
- Addd option to toggle some extra option from the config file for when the model is loading on the txt2vid tab.

* Re-merge #611 - View/Cancel in-progress diffusions (#796)

* JobManager: Re-merge #611

PR #611 seems to have got lost in the shuffle after
the transition to 'dev'.

This commit re-merges the feature branch. This adds
support for viewing preview images as the image
generates, as well as cancelling in-progress images
and a couple fixes and clean-ups.

* JobManager: Clear jobs that fail to start

Sometimes if a job fails to start it will get stuck in the active job
list. This commit ensures that jobs that raise exceptions are cleared,
and also adds a start timer to clear out jobs that fail to start
within a reasonable amount of time.

* chore: add breaks to cmds for readability (#1134)

* Added custom models list to the txt2img tab.

* Small fix to the custom model list.

* Corrected breaking issues introduced in #1136 to txt2img and
made state variables consistent with img2img.

Fixed a bug where switching models after running would not reload
the used model.

* Formatted tabs as spaces

* Fixed update_preview_frequency and update_preview using defaults from
webui_streamlit.yaml instead of state variables from UI.

* Prompt user if they want to restore changes (#1137)

- After stashing any changes and pulling updates, ask user if they wish to pop changes
- If user declines the restore, drop the stash to prevent the case of an ever growing stash pile

* Added streamlit_nested_layout component as dependency and imported on the webui_streamli.py file to allow us to use nested columns and expanders.

* - Added the Home tab made by @devilismyfriend
- Added gallery tab on txt2img.

* Added case insensitivity to restore prompt (#1152)

* Calculate aspect ratio and pixel count on start (#1157)

* Fix errors rendering galleries when there are not enough images to render

* Fix the gallery back/next buttons and add a refresh button

* Fix invalid invocation of find_noise_for_image

* Removed the Home tab until the gallery is fixed.

* Fixed a missing import on the ModelManager script.

* Added discord server link to the Readme.md

* - Increased the max value for the width and height sliders on the txt2img tab.
- Fixed a leftover line from removing the home tab.

* Update conda environment on startup always (#1171)

* Update environment on startup always

* Message to explicitly state no environment.yaml update required

Co-authored-by: hlky <106811348+hlky@users.noreply.github.com>

* environment update from .cmd

* Update .gitignore

* Enable negative prompts on streamlit

* - Bumped the version of diffusers used on the txt2vid tab to be now v0.3.0.
- Added initial file for the textual inversion tab.

* add missing argument to GoBig sample function, fixes #1183 (#1184)

* cherry-pick @Any-Winter-4079's https://github.com/lstein/stable-diffusion/pull/540. this is a collaboration incorporating a lot of people's contributions -- including for example @Doggettx and the original code from @neonsecret on which the Doggetx optimizations were based (see https://github.com/lstein/stable-diffusion/issues/431, https://github.com/sd-webui/stable-diffusion-webui/pull/771\#issuecomment-1239716055). Takes exactly the same amount of time to run 8 steps as original CompVis code does (10.4 secs, ~1.25s/it). (#1177)

Co-authored-by: Alex Birch <birch-san@users.noreply.github.com>

* allow webp uploads to img2img tab #991

* Don't attempt mask restoration when there is no mask given (#1186)

* When running a batch with preview turned on, produce a grid of preview images

* When early terminating, generation_callback gets invoked but st.session_state is empty. When this happens, just bail.

* Collect images for final display

This is a collection of several changes to enhance image display:

* When using GFPGAN or RealESRGAN, only the final output will be
  displayed.
* In batch>1 mode, each final image will be collected into an image grid
  for display
* The image is constrained to a reasonable size to ensure that batch
  grids of RealESRGAN'd images don't end up spitting out a massive image
  that the browser then has to handle.
* Additionally, the progress bar indicator is updated as each image is
  post-processed.

* Display the final image before running postprocessing, and don't preview when i=0

* Added a config option to use embeddings from the huggingface stable diffusion concept library.

* Added option to enable enable_attention_slicing and enable_minimal_memory_usage, this for now only works on txt2vid which uses diffusers.

* Basic implementation for the Concept Library tab made by cloning the Home tab.

* Temporarily hide sd_concept_library due to missing layout()

* st.session_state["defaults"] fix

* Used loaded_model state variable in .yaml generation (#1196)

Used loaded_model state variable in .yaml generation

* Streamlit txt2img page settings now follow defaults (#1195)

* Some options on the Streamlit txt2img page now follow the defaults from the relevant config files.

* Fixed a copy-paste gone wrong in my previous commit.

* st.session_state["defaults"] fix

Co-authored-by: hlky <106811348+hlky@users.noreply.github.com>

* default img2img denoising strength increased

* slider_steps and slider_bounds in defaults config

slider_steps and slider_bounds in defaults config

* fix: copy to clipboard button

Co-authored-by: ZeroCool940711 <alejandrogilelias940711@gmail.com>
Co-authored-by: ZeroCool <ZeroCool940711@users.noreply.github.com>
Co-authored-by: Hafiidz <3688500+Hafiidz@users.noreply.github.com>
Co-authored-by: hlky <106811348+hlky@users.noreply.github.com>
Co-authored-by: Joshua Kimsey <jkimsey95@gmail.com>
Co-authored-by: Tony Beeman <beeman@gmail.com>
Co-authored-by: Tom Pham <54967380+TomPham97@users.noreply.github.com>
Co-authored-by: GRMrGecko <grmrgecko@gmail.com>
Co-authored-by: TingTingin <36141041+TingTingin@users.noreply.github.com>
Co-authored-by: Logan zoellner <nagolinc@gmail.com>
Co-authored-by: M <mchaker@users.noreply.github.com>
Co-authored-by: James Pound <jamespoundiv@gmail.com>
Co-authored-by: cobryan05 <13701027+cobryan05@users.noreply.github.com>
Co-authored-by: Michoko <michoko@hotmail.com>
Co-authored-by: VulumeCode <2590984+VulumeCode@users.noreply.github.com>
Co-authored-by: xaedes <xaedes@googlemail.com>
Co-authored-by: Michael Hearn <git@mikehearn.net>
Co-authored-by: Soul-Burn <sugoibaka@gmail.com>
Co-authored-by: JJ <jjisnow@gmail.com>
Co-authored-by: oc013 <101832295+oc013@users.noreply.github.com>
Co-authored-by: Aarni Koskela <akx@iki.fi>
Co-authored-by: osi1880vr <87379616+osi1880vr@users.noreply.github.com>
Co-authored-by: Rae Fu <rraefu@gmail.com>
Co-authored-by: Brian Semrau <brian.semrau@gmail.com>
Co-authored-by: Matt Soucy <git@msoucy.me>
Co-authored-by: endomorphosis <endomorphosis@users.noreply.github.com>
Co-authored-by: unnamedplugins <79282950+unnamedplugins@users.noreply.github.com>
Co-authored-by: Syahmi Azhar <prsyahmi@gmail.com>
Co-authored-by: Ahmad Abdullah <83442967+ahmad1284@users.noreply.github.com>
Co-authored-by: Sérgio <smaisidoro@gmail.com>
Co-authored-by: Charlie <outlookhazy@users.noreply.github.com>
Co-authored-by: protoplm <protoplmz@gmail.com>
Co-authored-by: Ascended <dspradau@gmail.com>
Co-authored-by: JuanLagu <32816584+JuanLagu@users.noreply.github.com>
Co-authored-by: Chris Heald <cheald@gmail.com>
Co-authored-by: Charles Galant <cgalant@gmail.com>
Co-authored-by: Alex Birch <birch-san@users.noreply.github.com>
Co-authored-by: protoplm <57930981+protoplm@users.noreply.github.com>
Co-authored-by: Dekker3D <dekker3d@gmail.com>
2022-09-18 14:00:47 +01:00
Thomas Mello
8540c8d42c fix: copy to clipboard button 2022-09-18 15:08:47 +03:00
hlky
6f4a1d8a41
slider_steps and slider_bounds in defaults config
slider_steps and slider_bounds in defaults config
2022-09-18 12:23:51 +01:00
hlky
74fd533077
default img2img denoising strength increased 2022-09-18 11:54:17 +01:00
Thomas Mello
afe954d4e9 Merge remote-tracking branch 'upstream/dev' into the-merge 2022-09-18 13:03:19 +03:00
Dekker3D
56b91b8bdc
Streamlit txt2img page settings now follow defaults (#1195)
* Some options on the Streamlit txt2img page now follow the defaults from the relevant config files.

* Fixed a copy-paste gone wrong in my previous commit.

* st.session_state["defaults"] fix

Co-authored-by: hlky <106811348+hlky@users.noreply.github.com>
2022-09-18 10:39:30 +01:00
protoplm
e4d82f4e84
Used loaded_model state variable in .yaml generation (#1196)
Used loaded_model state variable in .yaml generation
2022-09-18 10:34:37 +01:00
Thomas Mello
148c41826b Merge branch 'dev' into the-merge
# Conflicts:
#	.gitignore
#	README.md
#	configs/webui/webui_streamlit.yaml
#	environment.yaml
#	frontend/css/streamlit.main.css
#	frontend/frontend.py
#	scripts/webui_streamlit.py
2022-09-18 12:31:17 +03:00
hlky
4680975ae1
st.session_state["defaults"] fix 2022-09-18 09:57:33 +01:00