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
de1809bd
Commit
de1809bd
authored
Dec 22, 2023
by
w-e-w
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
handle axis_type is None
parent
de03882d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
scripts/xyz_grid.py
scripts/xyz_grid.py
+4
-0
No files found.
scripts/xyz_grid.py
View file @
de1809bd
...
@@ -476,6 +476,8 @@ class Script(scripts.Script):
...
@@ -476,6 +476,8 @@ class Script(scripts.Script):
fill_z_button
.
click
(
fn
=
fill
,
inputs
=
[
z_type
,
csv_mode
],
outputs
=
[
z_values
,
z_values_dropdown
])
fill_z_button
.
click
(
fn
=
fill
,
inputs
=
[
z_type
,
csv_mode
],
outputs
=
[
z_values
,
z_values_dropdown
])
def
select_axis
(
axis_type
,
axis_values
,
axis_values_dropdown
,
csv_mode
):
def
select_axis
(
axis_type
,
axis_values
,
axis_values_dropdown
,
csv_mode
):
axis_type
=
axis_type
or
0
# if axle type is None set to 0
choices
=
self
.
current_axis_options
[
axis_type
]
.
choices
choices
=
self
.
current_axis_options
[
axis_type
]
.
choices
has_choices
=
choices
is
not
None
has_choices
=
choices
is
not
None
...
@@ -526,6 +528,8 @@ class Script(scripts.Script):
...
@@ -526,6 +528,8 @@ class Script(scripts.Script):
return
[
x_type
,
x_values
,
x_values_dropdown
,
y_type
,
y_values
,
y_values_dropdown
,
z_type
,
z_values
,
z_values_dropdown
,
draw_legend
,
include_lone_images
,
include_sub_grids
,
no_fixed_seeds
,
margin_size
,
csv_mode
]
return
[
x_type
,
x_values
,
x_values_dropdown
,
y_type
,
y_values
,
y_values_dropdown
,
z_type
,
z_values
,
z_values_dropdown
,
draw_legend
,
include_lone_images
,
include_sub_grids
,
no_fixed_seeds
,
margin_size
,
csv_mode
]
def
run
(
self
,
p
,
x_type
,
x_values
,
x_values_dropdown
,
y_type
,
y_values
,
y_values_dropdown
,
z_type
,
z_values
,
z_values_dropdown
,
draw_legend
,
include_lone_images
,
include_sub_grids
,
no_fixed_seeds
,
margin_size
,
csv_mode
):
def
run
(
self
,
p
,
x_type
,
x_values
,
x_values_dropdown
,
y_type
,
y_values
,
y_values_dropdown
,
z_type
,
z_values
,
z_values_dropdown
,
draw_legend
,
include_lone_images
,
include_sub_grids
,
no_fixed_seeds
,
margin_size
,
csv_mode
):
x_type
,
y_type
,
z_type
=
x_type
or
0
,
y_type
or
0
,
z_type
or
0
# if axle type is None set to 0
if
not
no_fixed_seeds
:
if
not
no_fixed_seeds
:
modules
.
processing
.
fix_seed
(
p
)
modules
.
processing
.
fix_seed
(
p
)
...
...
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