Skip to content
GitLab
菜单
为什么选择 GitLab
定价
联系销售
探索
为什么选择 GitLab
定价
联系销售
探索
登录
获取免费试用
主导航
搜索或转到…
项目
S
Stable Diffusion Webui
管理
动态
成员
代码
仓库
分支
提交
标签
仓库图
比较修订版本
部署
模型注册表
分析
模型实验
帮助
帮助
支持
GitLab 文档
比较 GitLab 各版本
社区论坛
为极狐GitLab 提交贡献
提交反馈
隐私声明
快捷键
?
新增功能
4
代码片段
群组
项目
显示更多面包屑
Hunter0726
Stable Diffusion Webui
提交
42fcc79b
提交
42fcc79b
编辑于
2 years ago
作者:
AUTOMATIC
浏览文件
操作
下载
补丁
差异文件
add Discard penultimate sigma to infotext
上级
c53852e2
No related branches found
分支 包含提交
No related tags found
标签 包含提交
无相关合并请求
变更
1
隐藏空白变更内容
行内
左右并排
显示
1 个更改的文件
modules/sd_samplers.py
+7
-3
7 个添加, 3 个删除
modules/sd_samplers.py
有
7 个添加
和
3 个删除
modules/sd_samplers.py
+
7
−
3
浏览文件 @
42fcc79b
...
...
@@ -463,8 +463,12 @@ class KDiffusionSampler:
return
extra_params_kwargs
def
get_sigmas
(
self
,
p
,
steps
):
disc
=
opts
.
always_discard_next_to_last_sigma
or
(
self
.
config
is
not
None
and
self
.
config
.
options
.
get
(
'
discard_next_to_last_sigma
'
,
False
))
steps
+=
1
if
disc
else
0
discard_next_to_last_sigma
=
self
.
config
is
not
None
and
self
.
config
.
options
.
get
(
'
discard_next_to_last_sigma
'
,
False
)
if
opts
.
always_discard_next_to_last_sigma
and
not
discard_next_to_last_sigma
:
discard_next_to_last_sigma
=
True
p
.
extra_generation_params
[
"
Discard penultimate sigma
"
]
=
True
steps
+=
1
if
discard_next_to_last_sigma
else
0
if
p
.
sampler_noise_scheduler_override
:
sigmas
=
p
.
sampler_noise_scheduler_override
(
steps
)
...
...
@@ -475,7 +479,7 @@ class KDiffusionSampler:
else
:
sigmas
=
self
.
model_wrap
.
get_sigmas
(
steps
)
if
disc
:
if
disc
ard_next_to_last_sigma
:
sigmas
=
torch
.
cat
([
sigmas
[:
-
2
],
sigmas
[
-
1
:]])
return
sigmas
...
...
此差异已折叠。
点击以展开。
预览
0%
加载中
请重试
或
添加新附件
.
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
保存评论
取消
想要评论请
注册
或
登录