Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Overbill1683
Stable Diffusion Webui
提交
3f43d8a9
S
Stable Diffusion Webui
项目概览
Overbill1683
/
Stable Diffusion Webui
10 个月 前同步成功
通知
1735
Star
81
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
分析
仓库
DevOps
项目成员
Pages
S
Stable Diffusion Webui
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Pages
分析
分析
仓库分析
DevOps
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
提交
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
未验证
提交
3f43d8a9
编写于
1月 11, 2023
作者:
V
Vladimir Mandic
提交者:
GitHub
1月 11, 2023
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
set descriptions
上级
45a8b758
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
12 addition
and
3 deletion
+12
-3
modules/hypernetworks/hypernetwork.py
modules/hypernetworks/hypernetwork.py
+3
-1
modules/textual_inversion/preprocess.py
modules/textual_inversion/preprocess.py
+6
-1
modules/textual_inversion/textual_inversion.py
modules/textual_inversion/textual_inversion.py
+3
-1
未找到文件。
modules/hypernetworks/hypernetwork.py
浏览文件 @
3f43d8a9
...
...
@@ -619,7 +619,9 @@ def train_hypernetwork(hypernetwork_name, learn_rate, batch_size, gradient_step,
epoch_num
=
hypernetwork
.
step
//
steps_per_epoch
epoch_step
=
hypernetwork
.
step
%
steps_per_epoch
pbar
.
set_description
(
f
"[Epoch
{
epoch_num
}
:
{
epoch_step
+
1
}
/
{
steps_per_epoch
}
]loss:
{
loss_step
:.
7
f
}
"
)
description
=
f
"Training hypernetwork [Epoch
{
epoch_num
}
:
{
epoch_step
+
1
}
/
{
steps_per_epoch
}
]loss:
{
loss_step
:.
7
f
}
"
pbar
.
set_description
(
description
)
shared
.
state
.
textinfo
=
description
if
hypernetwork_dir
is
not
None
and
steps_done
%
save_hypernetwork_every
==
0
:
# Before saving, change name to match current checkpoint.
hypernetwork_name_every
=
f
'
{
hypernetwork_name
}
-
{
steps_done
}
'
...
...
modules/textual_inversion/preprocess.py
浏览文件 @
3f43d8a9
...
...
@@ -135,7 +135,8 @@ def preprocess_work(process_src, process_dst, process_width, process_height, pre
params
.
process_caption_deepbooru
=
process_caption_deepbooru
params
.
preprocess_txt_action
=
preprocess_txt_action
for
index
,
imagefile
in
enumerate
(
tqdm
.
tqdm
(
files
)):
pbar
=
tqdm
.
tqdm
(
files
)
for
index
,
imagefile
in
enumerate
(
pbar
):
params
.
subindex
=
0
filename
=
os
.
path
.
join
(
src
,
imagefile
)
try
:
...
...
@@ -143,6 +144,10 @@ def preprocess_work(process_src, process_dst, process_width, process_height, pre
except
Exception
:
continue
description
=
f
"Preprocessing [Image
{
index
}
/
{
len
(
files
)
}
]"
pbar
.
set_description
(
description
)
shared
.
state
.
textinfo
=
description
params
.
src
=
filename
existing_caption
=
None
...
...
modules/textual_inversion/textual_inversion.py
浏览文件 @
3f43d8a9
...
...
@@ -476,7 +476,9 @@ def train_embedding(embedding_name, learn_rate, batch_size, gradient_step, data_
epoch_num
=
embedding
.
step
//
steps_per_epoch
epoch_step
=
embedding
.
step
%
steps_per_epoch
pbar
.
set_description
(
f
"[Epoch
{
epoch_num
}
:
{
epoch_step
+
1
}
/
{
steps_per_epoch
}
]loss:
{
loss_step
:.
7
f
}
"
)
description
=
f
"Training textual inversion [Epoch
{
epoch_num
}
:
{
epoch_step
+
1
}
/
{
steps_per_epoch
}
]loss:
{
loss_step
:.
7
f
}
"
pbar
.
set_description
(
description
)
shared
.
state
.
textinfo
=
description
if
embedding_dir
is
not
None
and
steps_done
%
save_embedding_every
==
0
:
# Before saving, change name to match current checkpoint.
embedding_name_every
=
f
'
{
embedding_name
}
-
{
steps_done
}
'
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录