Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
sephuroth11
stable-diffusion-webui
提交
9a86932c
S
stable-diffusion-webui
项目概览
sephuroth11
/
stable-diffusion-webui
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
stable-diffusion-webui
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
9a86932c
编写于
5月 19, 2023
作者:
A
AUTOMATIC
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
change width/heights slider steps to 64 from 8
上级
78dd988e
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
8 addition
and
8 deletion
+8
-8
modules/ui.py
modules/ui.py
+8
-8
未找到文件。
modules/ui.py
浏览文件 @
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"
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录