Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Overbill1683
Stable Diffusion Webui
提交
973ae873
S
Stable Diffusion Webui
项目概览
Overbill1683
/
Stable Diffusion Webui
10 个月 前同步成功
通知
1751
Star
81
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
分析
仓库
DevOps
项目成员
Pages
S
Stable Diffusion Webui
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Pages
分析
分析
仓库分析
DevOps
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
提交
体验新版 GitCode,发现更多精彩内容 >>
提交
973ae873
编写于
5月 17, 2023
作者:
A
AUTOMATIC
浏览文件
操作
浏览文件
下载
差异文件
Merge remote-tracking branch 'pieresimakp/img2img-detect-image-size' into dev
上级
61ee563d
fb72066e
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
5 addition
and
0 deletion
+5
-0
javascript/hints.js
javascript/hints.js
+1
-0
modules/ui.py
modules/ui.py
+4
-0
未找到文件。
javascript/hints.js
浏览文件 @
973ae873
...
...
@@ -9,6 +9,7 @@ titles = {
"
UniPC
"
:
"
Unified Predictor-Corrector Framework for Fast Sampling of Diffusion Models
"
,
"
DPM adaptive
"
:
"
Ignores step count - uses a number of steps determined by the CFG and resolution
"
,
"
\
u{1F4D0}
"
:
"
Auto detect size from img2img
"
,
"
Batch count
"
:
"
How many batches of images to create (has no impact on generation performance or VRAM usage)
"
,
"
Batch size
"
:
"
How many image to create in a single batch (increases generation performance at cost of higher VRAM usage)
"
,
"
CFG Scale
"
:
"
Classifier Free Guidance Scale - how strongly the image should conform to prompt - lower values produce more creative results
"
,
...
...
modules/ui.py
浏览文件 @
973ae873
...
...
@@ -75,6 +75,7 @@ clear_prompt_symbol = '\U0001f5d1\ufe0f' # 🗑️
extra_networks_symbol
=
'
\U0001F3B4
'
# 🎴
switch_values_symbol
=
'
\U000021C5
'
# ⇅
restore_progress_symbol
=
'
\U0001F300
'
# 🌀
detect_image_size_symbol
=
'
\U0001F4D0
'
# 📐
def
plaintext_to_html
(
text
):
...
...
@@ -772,6 +773,7 @@ def create_ui():
height
=
gr
.
Slider
(
minimum
=
64
,
maximum
=
2048
,
step
=
8
,
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"
)
with
gr
.
Tab
(
label
=
"Resize by"
)
as
tab_scale_by
:
scale_by
=
gr
.
Slider
(
minimum
=
0.05
,
maximum
=
4.0
,
step
=
0.05
,
label
=
"Scale"
,
value
=
1.0
,
elem_id
=
"img2img_scale"
)
...
...
@@ -964,6 +966,8 @@ def create_ui():
],
show_progress
=
False
,
)
detect_image_size_btn
.
click
(
lambda
i
,
w
,
h
:
i
.
size
if
i
is
not
None
else
(
w
,
h
),
inputs
=
[
init_img
,
width
,
height
],
outputs
=
[
width
,
height
])
img2img_interrogate
.
click
(
fn
=
lambda
*
args
:
process_interrogate
(
interrogate
,
*
args
),
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录