Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
S
stable-diffusion-webui
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
stable-diffusion-webui
Commits
4d66bf2c
Commit
4d66bf2c
authored
Jan 04, 2023
by
AUTOMATIC
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add infotext to "-before-highres-fix" images
parent
1cfd8aec
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
processing.py
modules/processing.py
+5
-1
No files found.
modules/processing.py
View file @
4d66bf2c
...
@@ -136,6 +136,7 @@ class StableDiffusionProcessing():
...
@@ -136,6 +136,7 @@ class StableDiffusionProcessing():
self
.
all_negative_prompts
=
None
self
.
all_negative_prompts
=
None
self
.
all_seeds
=
None
self
.
all_seeds
=
None
self
.
all_subseeds
=
None
self
.
all_subseeds
=
None
self
.
iteration
=
0
def
txt2img_image_conditioning
(
self
,
x
,
width
=
None
,
height
=
None
):
def
txt2img_image_conditioning
(
self
,
x
,
width
=
None
,
height
=
None
):
if
self
.
sampler
.
conditioning_key
not
in
{
'hybrid'
,
'concat'
}:
if
self
.
sampler
.
conditioning_key
not
in
{
'hybrid'
,
'concat'
}:
...
@@ -544,6 +545,8 @@ def process_images_inner(p: StableDiffusionProcessing) -> Processed:
...
@@ -544,6 +545,8 @@ def process_images_inner(p: StableDiffusionProcessing) -> Processed:
state
.
job_count
=
p
.
n_iter
state
.
job_count
=
p
.
n_iter
for
n
in
range
(
p
.
n_iter
):
for
n
in
range
(
p
.
n_iter
):
p
.
iteration
=
n
if
state
.
skipped
:
if
state
.
skipped
:
state
.
skipped
=
False
state
.
skipped
=
False
...
@@ -707,7 +710,8 @@ class StableDiffusionProcessingTxt2Img(StableDiffusionProcessing):
...
@@ -707,7 +710,8 @@ class StableDiffusionProcessingTxt2Img(StableDiffusionProcessing):
if
not
isinstance
(
image
,
Image
.
Image
):
if
not
isinstance
(
image
,
Image
.
Image
):
image
=
sd_samplers
.
sample_to_image
(
image
,
index
,
approximation
=
0
)
image
=
sd_samplers
.
sample_to_image
(
image
,
index
,
approximation
=
0
)
images
.
save_image
(
image
,
self
.
outpath_samples
,
""
,
seeds
[
index
],
prompts
[
index
],
opts
.
samples_format
,
suffix
=
"-before-highres-fix"
)
info
=
create_infotext
(
self
,
self
.
all_prompts
,
self
.
all_seeds
,
self
.
all_subseeds
,
[],
iteration
=
self
.
iteration
,
position_in_batch
=
index
)
images
.
save_image
(
image
,
self
.
outpath_samples
,
""
,
seeds
[
index
],
prompts
[
index
],
opts
.
samples_format
,
info
=
info
,
suffix
=
"-before-highres-fix"
)
if
latent_scale_mode
is
not
None
:
if
latent_scale_mode
is
not
None
:
for
i
in
range
(
samples
.
shape
[
0
]):
for
i
in
range
(
samples
.
shape
[
0
]):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment