Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Overbill1683
Stable Diffusion Webui
提交
6955c210
S
Stable Diffusion Webui
项目概览
Overbill1683
/
Stable Diffusion Webui
10 个月 前同步成功
通知
1746
Star
81
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
分析
仓库
DevOps
项目成员
Pages
S
Stable Diffusion Webui
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Pages
分析
分析
仓库分析
DevOps
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
提交
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
未验证
提交
6955c210
编写于
11月 26, 2023
作者:
A
AUTOMATIC1111
提交者:
GitHub
11月 26, 2023
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #14059 from akx/upruff
Update Ruff to 0.1.6
上级
d1750e5e
066afda2
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
3 addition
and
2 deletion
+3
-2
.github/workflows/on_pull_request.yaml
.github/workflows/on_pull_request.yaml
+1
-1
modules/sd_samplers_extra.py
modules/sd_samplers_extra.py
+1
-1
pyproject.toml
pyproject.toml
+1
-0
未找到文件。
.github/workflows/on_pull_request.yaml
浏览文件 @
6955c210
...
...
@@ -20,7 +20,7 @@ jobs:
# not to have GHA download an (at the time of writing) 4 GB cache
# of PyTorch and other dependencies.
-
name
:
Install Ruff
run
:
pip install ruff==0.
0.272
run
:
pip install ruff==0.
1.6
-
name
:
Run Ruff
run
:
ruff .
lint-js
:
...
...
modules/sd_samplers_extra.py
浏览文件 @
6955c210
...
...
@@ -60,7 +60,7 @@ def restart_sampler(model, x, sigmas, extra_args=None, callback=None, disable=No
sigma_restart
=
get_sigmas_karras
(
restart_steps
,
sigmas
[
min_idx
].
item
(),
sigmas
[
max_idx
].
item
(),
device
=
sigmas
.
device
)[:
-
1
]
while
restart_times
>
0
:
restart_times
-=
1
step_list
.
extend
(
[(
old_sigma
,
new_sigma
)
for
(
old_sigma
,
new_sigma
)
in
zip
(
sigma_restart
[:
-
1
],
sigma_restart
[
1
:])]
)
step_list
.
extend
(
zip
(
sigma_restart
[:
-
1
],
sigma_restart
[
1
:])
)
last_sigma
=
None
for
old_sigma
,
new_sigma
in
tqdm
.
tqdm
(
step_list
,
disable
=
disable
):
...
...
pyproject.toml
浏览文件 @
6955c210
...
...
@@ -16,6 +16,7 @@ exclude = [
ignore
=
[
"E501"
,
# Line too long
"E721"
,
# Do not compare types, use `isinstance`
"E731"
,
# Do not assign a `lambda` expression, use a `def`
"I001"
,
# Import block is un-sorted or un-formatted
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录