Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
Stable Diffusion Webui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
novelai-storage
Stable Diffusion Webui
Commits
0f6862ef
Commit
0f6862ef
authored
Jan 22, 2023
by
invincibledude
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PLMS edge-case handling fix 5
parent
6cd7bf9f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
4 deletions
+2
-4
modules/processing.py
modules/processing.py
+0
-2
modules/txt2img.py
modules/txt2img.py
+1
-1
modules/ui.py
modules/ui.py
+1
-1
No files found.
modules/processing.py
View file @
0f6862ef
...
@@ -866,8 +866,6 @@ class StableDiffusionProcessingTxt2Img(StableDiffusionProcessing):
...
@@ -866,8 +866,6 @@ class StableDiffusionProcessingTxt2Img(StableDiffusionProcessing):
if
self
.
hr_sampler
==
'---'
:
if
self
.
hr_sampler
==
'---'
:
pass
pass
elif
self
.
hr_sampler
==
'PLMS'
:
img2img_sampler_name
=
'DDIM'
else
:
else
:
img2img_sampler_name
=
self
.
hr_sampler
img2img_sampler_name
=
self
.
hr_sampler
...
...
modules/txt2img.py
View file @
0f6862ef
...
@@ -38,7 +38,7 @@ def txt2img(id_task: str, prompt: str, negative_prompt: str, prompt_styles, step
...
@@ -38,7 +38,7 @@ def txt2img(id_task: str, prompt: str, negative_prompt: str, prompt_styles, step
hr_second_pass_steps
=
hr_second_pass_steps
,
hr_second_pass_steps
=
hr_second_pass_steps
,
hr_resize_x
=
hr_resize_x
,
hr_resize_x
=
hr_resize_x
,
hr_resize_y
=
hr_resize_y
,
hr_resize_y
=
hr_resize_y
,
hr_sampler
=
sd_samplers
.
samplers
[
hr_sampler_index
-
1
]
.
name
hr_sampler
=
sd_samplers
.
samplers
_for_img2img
[
hr_sampler_index
-
1
]
.
name
if
hr_sampler_index
!=
0
else
'---'
if
hr_sampler_index
!=
0
else
'---'
)
)
...
...
modules/ui.py
View file @
0f6862ef
...
@@ -673,7 +673,7 @@ def create_ui():
...
@@ -673,7 +673,7 @@ def create_ui():
hr_resize_y
=
gr
.
Slider
(
minimum
=
0
,
maximum
=
2048
,
step
=
8
,
label
=
"Resize height to"
,
value
=
0
,
elem_id
=
"txt2img_hr_resize_y"
)
hr_resize_y
=
gr
.
Slider
(
minimum
=
0
,
maximum
=
2048
,
step
=
8
,
label
=
"Resize height to"
,
value
=
0
,
elem_id
=
"txt2img_hr_resize_y"
)
with
FormRow
(
elem_id
=
"txt2img_hires_fix_row3"
,
variant
=
"compact"
):
with
FormRow
(
elem_id
=
"txt2img_hires_fix_row3"
,
variant
=
"compact"
):
hr_sampler_index
=
gr
.
Dropdown
(
label
=
'Hires sampling method'
,
elem_id
=
f
"hr_sampler"
,
choices
=
[
"---"
]
+
[
x
.
name
for
x
in
samplers
],
value
=
"---"
,
type
=
"index"
)
hr_sampler_index
=
gr
.
Dropdown
(
label
=
'Hires sampling method'
,
elem_id
=
f
"hr_sampler"
,
choices
=
[
"---"
]
+
[
x
.
name
for
x
in
samplers
_for_img2img
],
value
=
"---"
,
type
=
"index"
)
elif
category
==
"batch"
:
elif
category
==
"batch"
:
if
not
opts
.
dimensions_and_batch_together
:
if
not
opts
.
dimensions_and_batch_together
:
...
...
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