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
085c9032
Commit
085c9032
authored
Jul 30, 2023
by
Robert Barron
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xyz_grid: in the legend, remove pathnames from model filenames
parent
68f336bd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
scripts/xyz_grid.py
scripts/xyz_grid.py
+4
-1
No files found.
scripts/xyz_grid.py
View file @
085c9032
...
...
@@ -3,6 +3,7 @@ from copy import copy
from
itertools
import
permutations
,
chain
import
random
import
csv
import
os.path
from
io
import
StringIO
from
PIL
import
Image
import
numpy
as
np
...
...
@@ -182,6 +183,8 @@ def do_nothing(p, x, xs):
def
format_nothing
(
p
,
opt
,
x
):
return
""
def
format_remove_path
(
p
,
opt
,
x
):
return
os
.
path
.
basename
(
x
)
def
str_permutations
(
x
):
"""dummy function for specifying it in AxisOption's type when you want to get a list of permutations"""
...
...
@@ -223,7 +226,7 @@ axis_options = [
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
]),
AxisOptionImg2Img
(
"Sampler"
,
str
,
apply_sampler
,
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_
value
,
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
(
"Sigma Churn"
,
float
,
apply_field
(
"s_churn"
)),
AxisOption
(
"Sigma min"
,
float
,
apply_field
(
"s_tmin"
)),
...
...
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