Commit Graph

505 Commits

Author SHA1 Message Date
ZeroCool940711
249e2dd74f Fixed an issue with the txt2vid model. 2022-09-09 19:43:51 -07:00
ZeroCool
ec38e45fd7
Merge pull request #873 from JoshuaKimsey/fix-streamit-yaml
Changed Streamit yaml default configs
2022-09-09 17:54:59 -07:00
Thomas Mello
f8a6a4eba8
fix: lost imports from #921 2022-09-10 01:54:19 +03:00
Thomas Mello
de0bf059e9
Merge pull request #921 from mike-hearn/master
Image transparency can be used as mask for inpainting
2022-09-10 01:32:47 +03:00
Michael Hearn
002dca063d Image transparency is used as mask for inpainting 2022-09-09 18:28:40 -04:00
xaedes
07062941c7
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.
2022-09-10 00:44:30 +03:00
James Pound
32a3c05af7 Added CSS to center the image in the txt2img interface 2022-09-09 22:36:53 +01:00
xaedes
f6aa2c64eb
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
2022-09-10 00:07:14 +03:00
hlky
d054ebe60c
Remove embeddings file path 2022-09-09 22:03:20 +01:00
Hafiidz
c7d6855bae For issue :884, ensure webui.cmd before init src 2022-09-09 21:54:30 +01:00
Thomas Mello
16d2941619
fix: filename format parameter (#923) 2022-09-09 22:11:57 +03:00
VulumeCode
1422b35ac6
Tiling parameter (#911)
* tiling

* default to False
2022-09-09 20:33:04 +03:00
Michoko
4d76d6742c
Add filename formatting argument (#908)
* Update webui.py

Filename formatting argument

* Update scripts/webui.py

Co-authored-by: Thomas Mello <work.mello@gmail.com>
2022-09-09 20:20:59 +03:00
cobryan05
9d95449624
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
2022-09-09 19:27:21 +03:00
James Pound
c37de9f04e
Fixed aspect ratio box not being updated on txt2img tab, for issue 219 from old repo (#812) 2022-09-09 17:58:59 +03:00
Thomas Mello
da9dab22a7
Merge pull request #872 from nagolinc/voroni-outcrop
Improve outpainting with Perlin noise
2022-09-09 17:39:12 +03:00
M
70db27fa6a
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.
2022-09-09 17:16:39 +03:00
Logan zoellner
754e530d70 when in outcrop mode, mask added regions and fill in with voroni noise for better outpainting 2022-09-09 10:13:38 -04:00
hlky
8d5977e15b Update FUNDING.yml 2022-09-09 10:13:38 -04:00
TingTingin
c459bfaacc Update attention.py 2022-09-09 14:21:53 +01:00
ZeroCool
90a922c320
Merge pull request #895 from Hafiidz/dev
Urgent Fix to PR:860
2022-09-09 04:29:44 -07:00
Hafiidz
11af1d9338 Urgent Fix to PR:860 2022-09-09 19:07:35 +08:00
ZeroCool
bd0e3655c1
Merge pull request #893 from ZeroCool940711/dev
Improvements to the txt2vid tab.
2022-09-09 03:45:22 -07:00
ZeroCool940711
61b3ca7014 Merge remote-tracking branch 'origin/dev' into dev 2022-09-09 03:44:25 -07:00
ZeroCool940711
22b84afc87 Improvements to the txt2vid tab. 2022-09-09 03:30:43 -07:00
Thomas Mello
606aea2866
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>
2022-09-09 13:09:13 +03:00
ZeroCool
3781f97b0f
Merge pull request #885 from TinyBeeman/outputStats
Output stats
2022-09-09 01:51:51 -07:00
Tony Beeman
7d987cc922 Add info and stats to img2img 2022-09-09 01:33:28 -07:00
Tony Beeman
28d8827331 Display Info and Stats when render is complete, similar to what Gradio shows. 2022-09-09 01:33:28 -07:00
ZeroCool
2be3c2ad37
Merge pull request #881 from TinyBeeman/streamdev
Fixed the user config path in webui_streamlit.py
2022-09-09 01:08:20 -07:00
Tony Beeman
771a68e3e5 Fixed the path in webui_streamlit.py 2022-09-09 01:03:34 -07:00
ZeroCool
775942b5c6
Merge pull request #876 from TinyBeeman/streamdev
Streamlit: Fix loading of YAML defaults and allow user defaults to be specified in a userconfig_stream…
2022-09-09 01:02:50 -07:00
Tony Beeman
4171882007 Move location of user file to configs/webui folder 2022-09-09 00:44:35 -07:00
Tony Beeman
ca8ee265cd Made sure img2txt and img2img checkboxes respect YAML defaults 2022-09-08 23:50:33 -07:00
Joshua Kimsey
ab42e64d40 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.
2022-09-09 01:59:23 -04:00
Tony Beeman
5ea27f3d0c Streamlit: Allow user defaults to be specified in a userconfig_streamlit.yaml file. 2022-09-08 22:58:25 -07:00
Joshua Kimsey
3d953ad156 Fixed missing diffusers dependency for Streamlit 2022-09-08 23:01:30 +01:00
hlky
5a10bdbd47
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
2022-09-08 17:57:38 +01:00
Hafiidz
d957d6ca1d update readme as per installation step & format 2022-09-08 18:32:35 +03:00
ZeroCool
c668ef930b
Merge pull request #828 from ZeroCool940711/dev
Added "num_inference_steps" to config file and fixed some small bugs.
2022-09-08 05:52:38 -07:00
ZeroCool
3336bfce20
Merge branch 'sd-webui:dev' into dev 2022-09-08 05:51:41 -07:00
ZeroCool940711
e6027fe306 Added num_inference_steps to config file and fixed incorrectly calls to the config file from the txt2vid tab calling txt2img instead. 2022-09-08 05:51:22 -07:00
Thomas Mello
ffb2d7ae9c
fix: advanced editor (#827), close #811
refactor js_Call hook to take all gradio arguments
2022-09-08 15:43:08 +03:00
ZeroCool
648dc020a8
Merge pull request #826 from ZeroCool940711/dev
Added option to support custom models and implemented basic Text To Video tab.
2022-09-08 05:38:33 -07:00
ZeroCool940711
afaff01253 Merge remote-tracking branch 'origin/dev' into dev 2022-09-08 05:34:20 -07:00
ZeroCool940711
ed84e1f1d8 - 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.
2022-09-08 05:33:45 -07:00
Thomas Mello
67b6196b1e
Merge branch 'master' into dev 2022-09-08 13:28:50 +03:00
Thomas Mello
a8e15c85f3 resolve conflict with master 2022-09-08 13:27:21 +03:00
ZeroCool
a796db7748
Merge pull request #813 from Hafiidz/css
(Streamlit) Feature: separate css to external file
2022-09-07 19:27:55 -07:00
ZeroCool
32a9999441
Merge pull request #814 from ZeroCool940711/dev
Added "git pull" and "git stash" to the cmd scripts so the repo is checked on each launch for updates.
2022-09-07 19:25:15 -07:00