sygil-webui/scripts
xaedes a88cf2a22c
Add metadata to scn2img intermediate image output (#1386)
# Description

Intermediate image saving in scn2img tries to save metadata which is not
set. This results in warning thrown in console: "Couldn't find metadata
on image", originally reported by @codedealer in
https://github.com/sd-webui/stable-diffusion-webui/pull/1179#pullrequestreview-1120015859

Metadata for intermediate images is added to fix the warning.

Following metadata is written:
- "prompt" contains the representation of the SceneObject corresponding
to the intermediate image
- "seed" contains the seed at the start of the function that generated
this intermediate image
- "width" and "height" contain the size of the image.

To get the seed at the start of the render function without using it, a
class SeedGenerator is added and used instead of the python generator
functions.

Fixes warning thrown in console: "> Couldn't find metadata on image",
originally reported by @codedealer in
https://github.com/sd-webui/stable-diffusion-webui/pull/1179#pullrequestreview-1120015859

# 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
2022-10-02 20:56:49 +01:00
..
pipelines/stable_diffusion Add periodic checkpointing 2022-09-23 15:29:08 +01:00
__init__.py Added config.toml file again. 2022-09-26 06:53:14 -07:00
bridgeData_template.py Stable Horde bridge (#1204) 2022-10-02 18:22:27 +01:00
clip_interrogator.py Img2txt dependencies and necessary files. (#1354) 2022-09-28 12:37:15 -07:00
diffusers_textual_inversion_2.py Fix --config args 2022-09-26 23:58:41 -04:00
home.py License header 2022-09-26 14:02:48 +01:00
img2img.py Changed the default output folder to be shorter. 2022-10-02 09:46:30 -07:00
img2txt.py Merge remote-tracking branch 'origin/dev' into dev 2022-10-01 19:19:04 -07:00
imglab.py Changed the default streamlit import for hydralit as we will be using hydralit as replacement for the default streamlit library, hydralit provides better control over css as well as having a lot more options. (#1352) 2022-09-28 09:33:54 -07:00
logger.py Stable Horde bridge (#1204) 2022-10-02 18:22:27 +01:00
merge.py Added implementation of the Concepts Library tab made by @Qualzz. 2022-09-20 21:06:00 -07:00
modeldownload.py License header 2022-09-26 14:02:48 +01:00
ModelManager.py Updated the model manager with the new locations and models links. 2022-10-02 10:59:20 -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 Allows passing args to webui.sh and webui.cmd (#1385) 2022-10-02 19:24:23 +01:00
scn2img.py Add metadata to scn2img intermediate image output (#1386) 2022-10-02 20:56:49 +01:00
sd_concept_library.py gallery_v1 2022-10-01 20:14:32 +02:00
sd_concepts_library_downloader.py License header 2022-09-26 14:02:48 +01:00
sd_utils.py Changed the default output folder to be shorter. 2022-10-02 09:46:30 -07:00
Settings.py Improved the Settings page layout and code structure. 2022-10-02 06:59:29 -07:00
stable_diffusion_pipeline.py Moved the model to server_state instead of session_state so it can be shared between multiple sessions, tabs and users as long as the streamlit server is running. 2022-09-25 00:03:05 -07:00
textual_inversion.py Changed the default streamlit import for hydralit as we will be using hydralit as replacement for the default streamlit library, hydralit provides better control over css as well as having a lot more options. (#1352) 2022-09-28 09:33:54 -07:00
txt2img.py Changed the default output folder to be shorter. 2022-10-02 09:46:30 -07:00
txt2vid.py Added LDSR to the UI. 2022-10-01 20:18:09 -07:00
webui_streamlit.py Removed some left over comments on webui_streamlit.py 2022-09-30 02:05:16 -07:00
webui.py Scene-to-Image Prompt Layering System (#1179) 2022-10-02 18:23:37 +01:00