stable-diffusion-webui/scripts
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
..
webui Made sure img2txt and img2img checkboxes respect YAML defaults 2022-09-08 23:50:33 -07:00
perlin.py when in outcrop mode, mask added regions and fill in with voroni noise for better outpainting 2022-09-09 10:13:38 -04:00
relauncher.py Repo merge (#712) 2022-09-06 23:50:14 +01:00
webui_streamlit.py Merge remote-tracking branch 'origin/dev' into dev 2022-09-09 03:44:25 -07:00
webui.py Metadata cleanup - Maintain metadata within UI (#845) 2022-09-09 19:27:21 +03:00