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
71efc5bd
Commit
71efc5bd
authored
Aug 04, 2023
by
AUTOMATIC1111
Committed by
GitHub
Aug 04, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #12298 from catboxanon/xyz-sampler
XYZ: Support hires sampler
parents
220e2984
f4d92971
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
10 deletions
+3
-10
scripts/xyz_grid.py
scripts/xyz_grid.py
+3
-10
No files found.
scripts/xyz_grid.py
View file @
71efc5bd
...
@@ -67,14 +67,6 @@ def apply_order(p, x, xs):
...
@@ -67,14 +67,6 @@ def apply_order(p, x, xs):
p
.
prompt
=
prompt_tmp
+
p
.
prompt
p
.
prompt
=
prompt_tmp
+
p
.
prompt
def
apply_sampler
(
p
,
x
,
xs
):
sampler_name
=
sd_samplers
.
samplers_map
.
get
(
x
.
lower
(),
None
)
if
sampler_name
is
None
:
raise
RuntimeError
(
f
"Unknown sampler: {x}"
)
p
.
sampler_name
=
sampler_name
def
confirm_samplers
(
p
,
xs
):
def
confirm_samplers
(
p
,
xs
):
for
x
in
xs
:
for
x
in
xs
:
if
x
.
lower
()
not
in
sd_samplers
.
samplers_map
:
if
x
.
lower
()
not
in
sd_samplers
.
samplers_map
:
...
@@ -224,8 +216,9 @@ axis_options = [
...
@@ -224,8 +216,9 @@ axis_options = [
AxisOptionImg2Img
(
"Image CFG Scale"
,
float
,
apply_field
(
"image_cfg_scale"
)),
AxisOptionImg2Img
(
"Image CFG Scale"
,
float
,
apply_field
(
"image_cfg_scale"
)),
AxisOption
(
"Prompt S/R"
,
str
,
apply_prompt
,
format_value
=
format_value
),
AxisOption
(
"Prompt S/R"
,
str
,
apply_prompt
,
format_value
=
format_value
),
AxisOption
(
"Prompt order"
,
str_permutations
,
apply_order
,
format_value
=
format_value_join_list
),
AxisOption
(
"Prompt order"
,
str_permutations
,
apply_order
,
format_value
=
format_value_join_list
),
AxisOptionTxt2Img
(
"Sampler"
,
str
,
apply_sampler
,
format_value
=
format_value
,
confirm
=
confirm_samplers
,
choices
=
lambda
:
[
x
.
name
for
x
in
sd_samplers
.
samplers
]),
AxisOptionTxt2Img
(
"Sampler"
,
str
,
apply_field
(
"sampler_name"
),
format_value
=
format_value
,
confirm
=
confirm_samplers
,
choices
=
lambda
:
[
x
.
name
for
x
in
sd_samplers
.
samplers
]),
AxisOptionImg2Img
(
"Sampler"
,
str
,
apply_sampler
,
format_value
=
format_value
,
confirm
=
confirm_samplers
,
choices
=
lambda
:
[
x
.
name
for
x
in
sd_samplers
.
samplers_for_img2img
]),
AxisOptionTxt2Img
(
"Hires sampler"
,
str
,
apply_field
(
"hr_sampler_name"
),
confirm
=
confirm_samplers
,
choices
=
lambda
:
[
x
.
name
for
x
in
sd_samplers
.
samplers_for_img2img
]),
AxisOptionImg2Img
(
"Sampler"
,
str
,
apply_field
(
"sampler_name"
),
format_value
=
format_value
,
confirm
=
confirm_samplers
,
choices
=
lambda
:
[
x
.
name
for
x
in
sd_samplers
.
samplers_for_img2img
]),
AxisOption
(
"Checkpoint name"
,
str
,
apply_checkpoint
,
format_value
=
format_remove_path
,
confirm
=
confirm_checkpoints
,
cost
=
1.0
,
choices
=
lambda
:
sorted
(
sd_models
.
checkpoints_list
,
key
=
str
.
casefold
)),
AxisOption
(
"Checkpoint name"
,
str
,
apply_checkpoint
,
format_value
=
format_remove_path
,
confirm
=
confirm_checkpoints
,
cost
=
1.0
,
choices
=
lambda
:
sorted
(
sd_models
.
checkpoints_list
,
key
=
str
.
casefold
)),
AxisOption
(
"Negative Guidance minimum sigma"
,
float
,
apply_field
(
"s_min_uncond"
)),
AxisOption
(
"Negative Guidance minimum sigma"
,
float
,
apply_field
(
"s_min_uncond"
)),
AxisOption
(
"Sigma Churn"
,
float
,
apply_field
(
"s_churn"
)),
AxisOption
(
"Sigma Churn"
,
float
,
apply_field
(
"s_churn"
)),
...
...
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