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
324c7c73
Commit
324c7c73
authored
Oct 22, 2022
by
AUTOMATIC
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
record First pass size as 0x0 for #3328
parent
774be6d2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
processing.py
modules/processing.py
+2
-1
No files found.
modules/processing.py
View file @
324c7c73
...
@@ -524,6 +524,8 @@ class StableDiffusionProcessingTxt2Img(StableDiffusionProcessing):
...
@@ -524,6 +524,8 @@ class StableDiffusionProcessingTxt2Img(StableDiffusionProcessing):
else
:
else
:
state
.
job_count
=
state
.
job_count
*
2
state
.
job_count
=
state
.
job_count
*
2
self
.
extra_generation_params
[
"First pass size"
]
=
f
"{self.firstphase_width}x{self.firstphase_height}"
if
self
.
firstphase_width
==
0
or
self
.
firstphase_height
==
0
:
if
self
.
firstphase_width
==
0
or
self
.
firstphase_height
==
0
:
desired_pixel_count
=
512
*
512
desired_pixel_count
=
512
*
512
actual_pixel_count
=
self
.
width
*
self
.
height
actual_pixel_count
=
self
.
width
*
self
.
height
...
@@ -545,7 +547,6 @@ class StableDiffusionProcessingTxt2Img(StableDiffusionProcessing):
...
@@ -545,7 +547,6 @@ class StableDiffusionProcessingTxt2Img(StableDiffusionProcessing):
firstphase_width_truncated
=
self
.
firstphase_height
*
self
.
width
/
self
.
height
firstphase_width_truncated
=
self
.
firstphase_height
*
self
.
width
/
self
.
height
firstphase_height_truncated
=
self
.
firstphase_height
firstphase_height_truncated
=
self
.
firstphase_height
self
.
extra_generation_params
[
"First pass size"
]
=
f
"{self.firstphase_width}x{self.firstphase_height}"
self
.
truncate_x
=
int
(
self
.
firstphase_width
-
firstphase_width_truncated
)
//
opt_f
self
.
truncate_x
=
int
(
self
.
firstphase_width
-
firstphase_width_truncated
)
//
opt_f
self
.
truncate_y
=
int
(
self
.
firstphase_height
-
firstphase_height_truncated
)
//
opt_f
self
.
truncate_y
=
int
(
self
.
firstphase_height
-
firstphase_height_truncated
)
//
opt_f
...
...
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