Commit Graph

89 Commits

Author SHA1 Message Date
hlky
4a15702fe9
License header 2022-09-26 14:02:48 +01:00
Thomas Mello
fa4e63a549
Fix css (#1303)
* fix css for highlight output info elements

* clean up css_and_js.py

* remove unused js imports
2022-09-24 22:58:50 +03:00
Thomas Mello
f8b8a1357e
fix: copy of output parameters (#1301)
refactor js invocation on txt2img and img2img pages
2022-09-24 20:57:12 +03:00
xaedes
acb051e9f5
fix broken output info in img2img to highlight parameters like in txt2img (#1289)
- change gr.Textbox to gr.Highlightedtext like in txt2img
2022-09-24 03:21:33 +03:00
Qualzz
6ae84c6c3a
better library browser (#1281)
* better library browser

* removed debug prints
2022-09-24 00:20:51 +01:00
ZeroCool940711
585c762b95 Fixed missing frontend/dist folder. 2022-09-20 21:45:16 -07:00
ZeroCool940711
8584205e11 Added implementation of the Concepts Library tab made by @Qualzz. 2022-09-20 21:06:00 -07:00
Thomas Mello
8540c8d42c fix: copy to clipboard button 2022-09-18 15:08:47 +03: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
Mark Knol
ea6b422bff
very minor spelling error (#762)
* Update frontend.py

* Update frontend.py

Co-authored-by: hlky <106811348+hlky@users.noreply.github.com>
2022-09-18 04:57:08 +01:00
JuanLagu
98adf69c7c
Calculate aspect ratio and pixel count on start (#1157) 2022-09-15 20:39:05 +03:00
ZeroCool940711
4068d804ad - Added the Home tab made by @devilismyfriend
- Added gallery tab on txt2img.
2022-09-15 06:29:41 -07:00
cobryan05
81f58d58d0
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.
2022-09-14 23:48:56 +03:00
ZeroCool940711
ede343a269 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
2022-09-13 14:09:39 -07:00
cobryan05
76de9f9b65
JobManager: Buttons skip queue (#1092)
Have JobManager buttons skip Gradio's queue, since otherwise
they aren't sending JobManager button presses.
2022-09-13 22:25:51 +03:00
cobryan05
aa38281197
JobManager: Fix typo breaking jobs close #858 close #1041 2022-09-13 19:37:09 +03:00
Joshua Kimsey
9432efc549 Fixed Sidebar CSS for 4K displays 2022-09-13 04:31:00 +01:00
Thomas Mello
c63fcb1502
fix: disable live prompt parsing 2022-09-13 00:42:53 +03:00
Thomas Mello
e6a9e5d968
fix: disable live prompt parsing, fix #676 2022-09-13 00:37:56 +03:00
endomorphosis
372ac31c20
add Gradio API endpoint settings (#1055)
* add Gradio API endpoint settings
2022-09-12 14:27:24 +03:00
ZeroCool940711
117046ccdc Removed the padding at the top of the sidebar so we can have more free space. 2022-09-11 22:50:43 -07:00
ZeroCool940711
dee13a11c6 Changed some values to be dynamic instead of a fixed value so they are more responsive. 2022-09-11 22:23:59 -07:00
ZeroCool940711
6e012fcc19 - Added changes made by @Hafiidz on the ui-improvements branch to the css for the streamli-on-hover-tabs component. 2022-09-11 20:11:35 -07:00
Hafiidz
0a3d4eea58 remove deprecated kwargs/parameter 2022-09-11 09:21:32 +08:00
ZeroCool
24ddbdc811
Merge branch 'sd-webui:dev' into dev 2022-09-10 07:42:59 -07:00
ZeroCool940711
a4745cc2fc Removed some unused lines from the css file for the streamlit version. 2022-09-10 07:34:35 -07:00
Soul-Burn
3e9cdb1dcb Better support for large batches in optimized mode 2022-09-10 15:25:13 +01: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
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
Thomas Mello
0dffc3918d fix: advanced editor (#827), close #811
refactor js_Call hook to take all gradio arguments
2022-09-08 16:09:10 +03: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
hlky
a00d827cd8
Dev merge (#819)
* #715 #699 #698 #663 #625 #617 #611 #604 (#716)

* Update README.md

* Add sampler name to metadata (#695)

Co-authored-by: EliEron <example@example.com>

* old-dev-merge

Co-authored-by: EliEron <subanimehd@gmail.com>
Co-authored-by: EliEron <example@example.com>

* img2img-fix (#717)

* Revert "img2img-fix (#717)"

This reverts commit 70d4b1ca2a.

* img2img fixes

* Revert "img2img fixes"

This reverts commit e66eddc621.

* Revert "Revert "img2img-fix (#717)""

This reverts commit bf08b617d4.

* img2img fixed

* - Removed duplicated calls to save_sample.
- Change variables and arguments to be more self-explanatory and easier to understand what they do.

* Moved streamlit files to their proper location, before they were incorrectly added to the repository root folder.

* Added retry dependency for the streamlit version.

* Added .cmd file for easy running and updating the streamlit version of the UI.

* Removed duplicated entry for streamlit on the environment.yaml file.

* Removed some unnecessary lines from the the webui_streamlit.cmd file.

* add gfpgan folder to gitignore, auto gen by imglab

* added placeholder text similar to gradio

* added auto conversion for 4 channel PNG to RGB

* fix: regex escape characters

* Update Readme links to sd-webui when appropriate (#781)

* Update link to sd-webui when appropriate

* added LDSR instruction per devilismyfriend guide

* fix: stack overflow during recursion call (#784)

* Added option to set default sampler name from config file, will be useful for those wanting to change the default sampler and  have it persist even when closing the UI and opening it again.

* Added try and except block to handle basic errors like StopException which is raised by streamlit when you hit the stop button and KeyError which happens also when stopping the generation because it tries to check the model at the end which is not loaded at that time, this can be ignored and so thats the reason for the exception.

* separate css to external file

* Added "git pull" and "git stash" to the commands run by the cmd scripts when launching the UI, this should make it so people who use it can automatically update the code from the repo and be up to date without manually using those commands everytime.

* resolve conflict with master

Co-authored-by: EliEron <subanimehd@gmail.com>
Co-authored-by: EliEron <example@example.com>
Co-authored-by: ZeroCool <ZeroCool940711@users.noreply.github.com>
Co-authored-by: ZeroCool940711 <alejandrogilelias940711@gmail.com>
Co-authored-by: Hafiidz <3688500+Hafiidz@users.noreply.github.com>
Co-authored-by: Thomas Mello <work.mello@gmail.com>
2022-09-08 11:41:04 +01: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
Hafiidz
0e30d4fdd9 separate css to external file 2022-09-08 10:10:03 +08:00
hlky
490bbbc103
Img2img dev (#736)
* #715 #699 #698 #663 #625 #617 #611 #604 (#716)

* Update README.md

* Add sampler name to metadata (#695)

Co-authored-by: EliEron <example@example.com>

* old-dev-merge

Co-authored-by: EliEron <subanimehd@gmail.com>
Co-authored-by: EliEron <example@example.com>

* img2img-fix (#717)

* Revert "img2img-fix (#717)"

This reverts commit 70d4b1ca2a.

* img2img fixes

* Revert "img2img fixes"

This reverts commit e66eddc621.

* Revert "Revert "img2img-fix (#717)""

This reverts commit bf08b617d4.

* img2img fixed

* feat: bring back Crop mode, formatting

Co-authored-by: EliEron <subanimehd@gmail.com>
Co-authored-by: EliEron <example@example.com>
Co-authored-by: Thomas Mello <work.mello@gmail.com>
2022-09-07 20:19:00 +01:00
hlky
3b490df708
img2img fixed 2022-09-07 03:08:29 +01:00
hlky
cf754f9fe6
Revert "Revert "img2img-fix (#717)""
This reverts commit bf08b617d4.
2022-09-07 02:56:27 +01:00
hlky
06df5a5697
Revert "img2img fixes"
This reverts commit e66eddc621.
2022-09-07 02:56:23 +01:00
hlky
e66eddc621
img2img fixes 2022-09-07 02:35:01 +01:00
hlky
bf08b617d4
Revert "img2img-fix (#717)"
This reverts commit 70d4b1ca2a.
2022-09-07 01:45:15 +01:00
hlky
70d4b1ca2a
img2img-fix (#717) 2022-09-07 00:48:13 +01:00
hlky
f28255466b
#715 #699 #698 #663 #625 #617 #611 #604 (#716)
* Update README.md

* Add sampler name to metadata (#695)

Co-authored-by: EliEron <example@example.com>

* old-dev-merge

Co-authored-by: EliEron <subanimehd@gmail.com>
Co-authored-by: EliEron <example@example.com>
2022-09-07 00:43:51 +01:00
hlky
e5e1663457
Revert load settings/tkinter 2022-09-04 01:46:17 +01:00
Thomas Mello
435d152c24
fix mask generation (#600) 2022-09-04 01:28:15 +01:00