Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Overbill1683
Stable Diffusion Webui
提交
f8871ded
S
Stable Diffusion Webui
项目概览
Overbill1683
/
Stable Diffusion Webui
9 个月 前同步成功
通知
1733
Star
80
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
分析
仓库
DevOps
项目成员
Pages
S
Stable Diffusion Webui
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Pages
分析
分析
仓库分析
DevOps
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
提交
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
f8871ded
编写于
12月 14, 2023
作者:
A
AUTOMATIC1111
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Merge pull request #14230 from AUTOMATIC1111/add-option-Live-preview-in-full-page-image-viewer
add option: Live preview in full page image viewer
上级
b7e0d4a7
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
2 addition
and
1 deletion
+2
-1
javascript/imageviewer.js
javascript/imageviewer.js
+1
-1
modules/shared_options.py
modules/shared_options.py
+1
-0
未找到文件。
javascript/imageviewer.js
浏览文件 @
f8871ded
...
...
@@ -34,7 +34,7 @@ function updateOnBackgroundChange() {
if
(
modalImage
&&
modalImage
.
offsetParent
)
{
let
currentButton
=
selected_gallery_button
();
let
preview
=
gradioApp
().
querySelectorAll
(
'
.livePreview > img
'
);
if
(
preview
.
length
>
0
)
{
if
(
opts
.
js_live_preview_in_modal_lightbox
&&
preview
.
length
>
0
)
{
// show preview image if available
modalImage
.
src
=
preview
[
preview
.
length
-
1
].
src
;
}
else
if
(
currentButton
?.
children
?.
length
>
0
&&
modalImage
.
src
!=
currentButton
.
children
[
0
].
src
)
{
...
...
modules/shared_options.py
浏览文件 @
f8871ded
...
...
@@ -331,6 +331,7 @@ options_templates.update(options_section(('ui', "Live previews", "ui"), {
"live_preview_content"
:
OptionInfo
(
"Prompt"
,
"Live preview subject"
,
gr
.
Radio
,
{
"choices"
:
[
"Combined"
,
"Prompt"
,
"Negative prompt"
]}),
"live_preview_refresh_period"
:
OptionInfo
(
1000
,
"Progressbar and preview update period"
).
info
(
"in milliseconds"
),
"live_preview_fast_interrupt"
:
OptionInfo
(
False
,
"Return image with chosen live preview method on interrupt"
).
info
(
"makes interrupts faster"
),
"js_live_preview_in_modal_lightbox"
:
OptionInfo
(
True
,
"Show Live preview in full page image viewer"
),
}))
options_templates
.
update
(
options_section
((
'sampler-params'
,
"Sampler parameters"
,
"sd"
),
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录