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
3fe9e9e5
Commit
3fe9e9e5
authored
Jan 09, 2023
by
AUTOMATIC
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix broken resolution detection when pasting parameters with old hires fix enabled
parent
b1d976dc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
generation_parameters_copypaste.py
modules/generation_parameters_copypaste.py
+3
-3
No files found.
modules/generation_parameters_copypaste.py
View file @
3fe9e9e5
...
@@ -198,10 +198,10 @@ def restore_old_hires_fix_params(res):
...
@@ -198,10 +198,10 @@ def restore_old_hires_fix_params(res):
firstpass_height
=
res
.
get
(
'First pass size-2'
,
None
)
firstpass_height
=
res
.
get
(
'First pass size-2'
,
None
)
if
shared
.
opts
.
use_old_hires_fix_width_height
:
if
shared
.
opts
.
use_old_hires_fix_width_height
:
hires_width
=
int
(
res
.
get
(
"Hires resize-1"
,
None
))
hires_width
=
int
(
res
.
get
(
"Hires resize-1"
,
0
))
hires_height
=
int
(
res
.
get
(
"Hires resize-2"
,
None
))
hires_height
=
int
(
res
.
get
(
"Hires resize-2"
,
0
))
if
hires_width
is
not
None
and
hires_height
is
not
None
:
if
hires_width
and
hires_height
:
res
[
'Size-1'
]
=
hires_width
res
[
'Size-1'
]
=
hires_width
res
[
'Size-2'
]
=
hires_height
res
[
'Size-2'
]
=
hires_height
return
return
...
...
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