Commit Graph

107 Commits

Author SHA1 Message Date
ZeroCool940711
8adf6a65d0 feat: Added new documentation site using docusaurus which should make easier for users to browse and search the documentation site. 2022-11-07 20:27:41 -08:00
ZeroCool940711
a47d143ecc More fixes to the layout and padding issues which was causing the UI to jump sometimes. 2022-11-01 10:23:56 -07:00
ZeroCool940711
f82a91333a Increased the padding right distance by 5px which fixes the issue of the UI jumping sometimes because the image full screen icon was overlapping the scrollbar. 2022-10-31 13:34:23 -07:00
ZeroCool940711
cb501565c2 More renaming and changed to links related to the organization, docs and repo names. 2022-10-23 18:54:10 -07:00
ZeroCool940711
97eb1b169b More renaming and changes to links related to the organization, docs an repo names. 2022-10-23 17:17:50 -07:00
ZeroCool940711
2f9cef38c5 Fixed the page/layout being pushed up when expanders or other item expanded and then collapsed. 2022-10-20 15:48:25 -07:00
ZeroCool940711
26c992bf1e Changed the id for the text area field on the css, again. 2022-10-20 13:20:03 -07:00
ZeroCool940711
19e880297a Fixed the text area widget height being broken due to changes on the css id used to set the height for it. 2022-10-20 08:34:42 -07:00
ZeroCool940711
6979584cc5 Fixed spacing issue with the full screen button for the result image on img2img when the space on the right was smaller than the button size. 2022-10-20 08:34:42 -07:00
ZeroCool940711
64fba3e002 Fixed the image preview not been centered. 2022-10-19 13:48:08 -07:00
ZeroCool940711
ec390a5537 More empty spaces removed from the layout. 2022-10-19 12:43:31 -07:00
ZeroCool940711
082ce79074 Improved the layout by removing some empty spaces. 2022-10-19 11:16:01 -07:00
Thomas Mello
d9a163b1b0
chore: bump Gradio to 3.4.1 (#1520)
* update gradio
* fix some glaring styling issues

Note: the server message has changed and now the address `0.0.0.0:7680`
is shown by default which might not work in browsers. The server is
still accessible through `localhost`/real ip address
2022-10-14 14:54:35 +03:00
ZeroCool940711
84479d88b8 Changed the prompt text_input for a text_area and made it similar in size to the text input. 2022-10-09 03:21:06 -07:00
xaedes
33b896d0cb
Scene-to-Image Prompt Layering System (#1179)
# Summary of the change

- new Scene-to-Image tab
- new scn2img function
- functions for loading and running monocular_depth_estimation with
tensorflow

# Description

(relevant motivation, which issue is fixed)

Related to discussion #925

> Would it be possible to have a layers system where we could do have
foreground, mid, and background objects which relate to one another and
share the style? So we could say generate a landscape, one another layer
generate a castle, and on another layer generate a crowd of people.

To make this work I made a prompt-based layering system in a new
"Scene-to-Image" tab.
You write a a multi-line prompt that looks like markdown, where each
section declares one layer.
It is hierarchical, so each layer can have their own child layers.

Examples: https://imgur.com/a/eUxd5qn
![](https://i.imgur.com/L61w00Q.png)

In the frontend you can find a brief documentation for the syntax,
examples and reference for the various arguments.

Here a short summary:

Sections with "prompt" and child layers are img2img, without child
layers they are txt2img.
Without "prompt" they are just images, useful for mask selection, image
composition, etc.
Images can be initialized with "color", resized with "resize" and their
position specified with "pos".
Rotation and rotation center are "rotation" and "center". 

Mask can automatically be selected by color or by estimated depth based
on https://huggingface.co/spaces/atsantiago/Monocular_Depth_Filter.

![](https://i.imgur.com/8rMHWmZ.png)

# Additional dependencies that are required for this change

For mask selection by monocular depth estimation tensorflow is required
and the model must be cloned to ./src/monocular_depth_estimation/
Changes in environment.yaml:
- einops>=0.3.0
- tensorflow>=2.10.0 

Einops must be allowed to be newer for tensorflow to work.

# Checklist:

- [x] I have changed the base branch to `dev`
- [x] I have performed a self-review of my own code
- [x] I have commented my code in hard-to-understand areas
- [x] I have made corresponding changes to the documentation

Co-authored-by: hlky <106811348+hlky@users.noreply.github.com>
2022-10-02 18:23:37 +01:00
Thomas Mello
302bdf0e09
fix: gradio js (#1375) 2022-10-01 23:39:56 +03:00
Qualzz20m
65a89c4aeb gallery_v1 2022-10-01 20:14:32 +02:00
ZeroCool940711
8652603368 Hide anchor links buttons on titles. 2022-09-28 22:43:41 -07:00
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