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
9a86932c
Commit
9a86932c
authored
May 19, 2023
by
AUTOMATIC
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change width/heights slider steps to 64 from 8
parent
78dd988e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
modules/ui.py
modules/ui.py
+8
-8
No files found.
modules/ui.py
View file @
9a86932c
...
...
@@ -463,8 +463,8 @@ def create_ui():
elif
category
==
"dimensions"
:
with
FormRow
():
with
gr
.
Column
(
elem_id
=
"txt2img_column_size"
,
scale
=
4
):
width
=
gr
.
Slider
(
minimum
=
64
,
maximum
=
2048
,
step
=
8
,
label
=
"Width"
,
value
=
512
,
elem_id
=
"txt2img_width"
)
height
=
gr
.
Slider
(
minimum
=
64
,
maximum
=
2048
,
step
=
8
,
label
=
"Height"
,
value
=
512
,
elem_id
=
"txt2img_height"
)
width
=
gr
.
Slider
(
minimum
=
64
,
maximum
=
2048
,
step
=
64
,
label
=
"Width"
,
value
=
512
,
elem_id
=
"txt2img_width"
)
height
=
gr
.
Slider
(
minimum
=
64
,
maximum
=
2048
,
step
=
64
,
label
=
"Height"
,
value
=
512
,
elem_id
=
"txt2img_height"
)
with
gr
.
Column
(
elem_id
=
"txt2img_dimensions_row"
,
scale
=
1
,
elem_classes
=
"dimensions-tools"
):
res_switch_btn
=
ToolButton
(
value
=
switch_values_symbol
,
elem_id
=
"txt2img_res_switch_btn"
,
label
=
"Switch dims"
)
...
...
@@ -792,8 +792,8 @@ def create_ui():
with
gr
.
Tab
(
label
=
"Resize to"
)
as
tab_scale_to
:
with
FormRow
():
with
gr
.
Column
(
elem_id
=
"img2img_column_size"
,
scale
=
4
):
width
=
gr
.
Slider
(
minimum
=
64
,
maximum
=
2048
,
step
=
8
,
label
=
"Width"
,
value
=
512
,
elem_id
=
"img2img_width"
)
height
=
gr
.
Slider
(
minimum
=
64
,
maximum
=
2048
,
step
=
8
,
label
=
"Height"
,
value
=
512
,
elem_id
=
"img2img_height"
)
width
=
gr
.
Slider
(
minimum
=
64
,
maximum
=
2048
,
step
=
64
,
label
=
"Width"
,
value
=
512
,
elem_id
=
"img2img_width"
)
height
=
gr
.
Slider
(
minimum
=
64
,
maximum
=
2048
,
step
=
64
,
label
=
"Height"
,
value
=
512
,
elem_id
=
"img2img_height"
)
with
gr
.
Column
(
elem_id
=
"img2img_dimensions_row"
,
scale
=
1
,
elem_classes
=
"dimensions-tools"
):
res_switch_btn
=
ToolButton
(
value
=
switch_values_symbol
,
elem_id
=
"img2img_res_switch_btn"
)
detect_image_size_btn
=
ToolButton
(
value
=
detect_image_size_symbol
,
elem_id
=
"img2img_detect_image_size_btn"
)
...
...
@@ -1183,8 +1183,8 @@ def create_ui():
with
gr
.
Tab
(
label
=
"Preprocess images"
,
id
=
"preprocess_images"
):
process_src
=
gr
.
Textbox
(
label
=
'Source directory'
,
elem_id
=
"train_process_src"
)
process_dst
=
gr
.
Textbox
(
label
=
'Destination directory'
,
elem_id
=
"train_process_dst"
)
process_width
=
gr
.
Slider
(
minimum
=
64
,
maximum
=
2048
,
step
=
8
,
label
=
"Width"
,
value
=
512
,
elem_id
=
"train_process_width"
)
process_height
=
gr
.
Slider
(
minimum
=
64
,
maximum
=
2048
,
step
=
8
,
label
=
"Height"
,
value
=
512
,
elem_id
=
"train_process_height"
)
process_width
=
gr
.
Slider
(
minimum
=
64
,
maximum
=
2048
,
step
=
64
,
label
=
"Width"
,
value
=
512
,
elem_id
=
"train_process_width"
)
process_height
=
gr
.
Slider
(
minimum
=
64
,
maximum
=
2048
,
step
=
64
,
label
=
"Height"
,
value
=
512
,
elem_id
=
"train_process_height"
)
preprocess_txt_action
=
gr
.
Dropdown
(
label
=
'Existing Caption txt Action'
,
value
=
"ignore"
,
choices
=
[
"ignore"
,
"copy"
,
"prepend"
,
"append"
],
elem_id
=
"train_preprocess_txt_action"
)
with
gr
.
Row
():
...
...
@@ -1276,8 +1276,8 @@ def create_ui():
template_file
=
gr
.
Dropdown
(
label
=
'Prompt template'
,
value
=
"style_filewords.txt"
,
elem_id
=
"train_template_file"
,
choices
=
get_textual_inversion_template_names
())
create_refresh_button
(
template_file
,
textual_inversion
.
list_textual_inversion_templates
,
lambda
:
{
"choices"
:
get_textual_inversion_template_names
()},
"refrsh_train_template_file"
)
training_width
=
gr
.
Slider
(
minimum
=
64
,
maximum
=
2048
,
step
=
8
,
label
=
"Width"
,
value
=
512
,
elem_id
=
"train_training_width"
)
training_height
=
gr
.
Slider
(
minimum
=
64
,
maximum
=
2048
,
step
=
8
,
label
=
"Height"
,
value
=
512
,
elem_id
=
"train_training_height"
)
training_width
=
gr
.
Slider
(
minimum
=
64
,
maximum
=
2048
,
step
=
64
,
label
=
"Width"
,
value
=
512
,
elem_id
=
"train_training_width"
)
training_height
=
gr
.
Slider
(
minimum
=
64
,
maximum
=
2048
,
step
=
64
,
label
=
"Height"
,
value
=
512
,
elem_id
=
"train_training_height"
)
varsize
=
gr
.
Checkbox
(
label
=
"Do not resize images"
,
value
=
False
,
elem_id
=
"train_varsize"
)
steps
=
gr
.
Number
(
label
=
'Max steps'
,
value
=
100000
,
precision
=
0
,
elem_id
=
"train_steps"
)
...
...
nanahira
@nanahira
mentioned in commit
fe73d643
·
Jun 07, 2023
mentioned in commit
fe73d643
mentioned in commit fe73d6439ab80589700ca9de4c8df478cc3cde48
Toggle commit list
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