Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
OOTDiffusion_pytorch
Commits
4b301f2c
Commit
4b301f2c
authored
Jul 08, 2024
by
mashun1
Browse files
Update README.md
parent
4ce26da7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
49 additions
and
48 deletions
+49
-48
README.md
README.md
+49
-48
No files found.
README.md
View file @
4b301f2c
...
...
@@ -72,12 +72,58 @@ Tips:以上dtk驱动、python、torch等DCU相关工具版本需要严格一
## 推理
### 模型下载
### 命令
半身
# model_path表示任务图片
cd OOTDiffusion/run
python run_ootd.py --model_path <model-image-path> --cloth_path <cloth-image-path> --scale 2.0 --sample 1
全身
# category = 0 上半身,1 下半身,2 裙子
cd OOTDiffusion/run
python run_ootd.py --model_path <model-image-path> --cloth_path <cloth-image-path> --model_type dc --category 2 --scale 2.0 --sample 1
### webui
cd OOTDiffusion/run
python gradio_ootd.py
## result
||人物|衣物|结果|
|:---|:---:|:---:|:---|
|hd|!
[
alt text
](
readme_imgs/input_11.png
)
|!
[
alt text
](
readme_imgs/input_12.png
)
|!
[
alt text
](
readme_imgs/output1.png
)
|dc|!
[
alt text
](
readme_imgs/input_21.png
)
|!
[
alt text
](
readme_imgs/input_22.png
)
|!
[
alt text
](
readme_imgs/output2.png
)
|
### 精度
|ssim|lpips|
|:---:|:---:|
|0.86|0.075|
注意:该精度在size=(512, 384)条件下训练及测试得到,与官方实现(未开源)可能存在不同。
## 应用场景
### 算法类别
`AIGC`
### 热点应用行业
`零售,广媒,电商`
## 预训练权重
|model|url|
|:---:|:---:|
|OOTDiffusion|
[
h
f
](
https://hf-mirror.com/levihsu/OOTDiffusion/tree/main/checkpoints
)
<br>
[
SCNet
](
http://113.200.138.88:18080/aimodels/levihsu/OOTDiffusion
)
高速下载通道|
|clip|
[
h
f
](
https://hf-mirror.com/openai/clip-vit-large-patch14/tree/main
)
<br>
[
SCNet
](
http://113.200.138.88:18080/aimodels/clip-vit-large-patch14
)
高速下载通道|
|OOTDiffusion|
[
h
uggingface
](
https://hf-mirror.com/levihsu/OOTDiffusion/tree/main/checkpoints
)
<br>
[
SCNet
](
http://113.200.138.88:18080/aimodels/levihsu/OOTDiffusion
)
高速下载通道|
|clip|
[
h
uggingface
](
https://hf-mirror.com/openai/clip-vit-large-patch14/tree/main
)
<br>
[
SCNet
](
http://113.200.138.88:18080/aimodels/clip-vit-large-patch14
)
高速下载通道|
下载链接中的所有模型文件,并放入
`checkpoints`
文件中。
...
...
@@ -136,51 +182,6 @@ Tips:以上dtk驱动、python、torch等DCU相关工具版本需要严格一
│ └── body_pose_model.pth
└── README.txt
### 命令
半身
# model_path表示任务图片
cd OOTDiffusion/run
python run_ootd.py --model_path <model-image-path> --cloth_path <cloth-image-path> --scale 2.0 --sample 1
全身
# category = 0 上半身,1 下半身,2 裙子
cd OOTDiffusion/run
python run_ootd.py --model_path <model-image-path> --cloth_path <cloth-image-path> --model_type dc --category 2 --scale 2.0 --sample 1
### webui
cd OOTDiffusion/run
python gradio_ootd.py
## result
||人物|衣物|结果|
|:---|:---:|:---:|:---|
|hd|!
[
alt text
](
readme_imgs/input_11.png
)
|!
[
alt text
](
readme_imgs/input_12.png
)
|!
[
alt text
](
readme_imgs/output1.png
)
|dc|!
[
alt text
](
readme_imgs/input_21.png
)
|!
[
alt text
](
readme_imgs/input_22.png
)
|!
[
alt text
](
readme_imgs/output2.png
)
|
### 精度
|ssim|lpips|
|:---:|:---:|
|0.86|0.075|
注意:该精度在size=(512, 384)条件下训练及测试得到,与官方实现(未开源)可能存在不同。
## 应用场景
### 算法类别
`AIGC`
### 热点应用行业
`零售,广媒,电商`
## 源码仓库及问题反馈
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment