Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Overbill1683
Stable Diffusion Webui
提交
6b68b590
S
Stable Diffusion Webui
项目概览
Overbill1683
/
Stable Diffusion Webui
10 个月 前同步成功
通知
1743
Star
81
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
分析
仓库
DevOps
项目成员
Pages
S
Stable Diffusion Webui
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Pages
分析
分析
仓库分析
DevOps
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
提交
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
6b68b590
编写于
7月 24, 2023
作者:
L
ljleb
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
use local vars
上级
ca45ff1a
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
6 addition
and
6 deletion
+6
-6
modules/processing.py
modules/processing.py
+6
-6
未找到文件。
modules/processing.py
浏览文件 @
6b68b590
...
...
@@ -722,20 +722,20 @@ def process_images_inner(p: StableDiffusionProcessing) -> Processed:
all_subseeds
=
p
.
all_subseeds
[:]
# apply changes to generation data
all_prompts
[
n
*
p
.
batch_size
:(
n
+
1
)
*
p
.
batch_size
]
=
p
.
prompts
all_seeds
[
n
*
p
.
batch_size
:(
n
+
1
)
*
p
.
batch_size
]
=
p
.
seeds
all_subseeds
[
n
*
p
.
batch_size
:(
n
+
1
)
*
p
.
batch_size
]
=
p
.
subseeds
all_prompts
[
iteration
*
p
.
batch_size
:(
iteratio
n
+
1
)
*
p
.
batch_size
]
=
p
.
prompts
all_seeds
[
iteration
*
p
.
batch_size
:(
iteratio
n
+
1
)
*
p
.
batch_size
]
=
p
.
seeds
all_subseeds
[
iteration
*
p
.
batch_size
:(
iteratio
n
+
1
)
*
p
.
batch_size
]
=
p
.
subseeds
# update p.all_negative_prompts in case extensions changed the size of the batch
# create_infotext below uses it
old_negative_prompts
=
p
.
all_negative_prompts
[
n
*
p
.
batch_size
:(
n
+
1
)
*
p
.
batch_size
]
p
.
all_negative_prompts
[
n
*
p
.
batch_size
:(
n
+
1
)
*
p
.
batch_size
]
=
p
.
negative_prompts
old_negative_prompts
=
p
.
all_negative_prompts
[
iteration
*
p
.
batch_size
:(
iteratio
n
+
1
)
*
p
.
batch_size
]
p
.
all_negative_prompts
[
iteration
*
p
.
batch_size
:(
iteratio
n
+
1
)
*
p
.
batch_size
]
=
p
.
negative_prompts
try
:
return
create_infotext
(
p
,
all_prompts
,
all_seeds
,
all_subseeds
,
comments
,
iteration
,
position_in_batch
,
use_main_prompt
)
finally
:
# restore p.all_negative_prompts in case extensions changed the size of the batch
p
.
all_negative_prompts
[
n
*
p
.
batch_size
:
n
*
p
.
batch_size
+
len
(
p
.
negative_prompts
)]
=
old_negative_prompts
p
.
all_negative_prompts
[
iteration
*
p
.
batch_size
:
iteratio
n
*
p
.
batch_size
+
len
(
p
.
negative_prompts
)]
=
old_negative_prompts
if
os
.
path
.
exists
(
cmd_opts
.
embeddings_dir
)
and
not
p
.
do_not_reload_embeddings
:
model_hijack
.
embedding_db
.
load_textual_inversion_embeddings
()
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录