Skip to content

Commit

Permalink
add ppdiffusers deploy speed (#624)
Browse files Browse the repository at this point in the history
  • Loading branch information
westfish committed Jul 29, 2024
1 parent 3a25127 commit 8c723de
Showing 1 changed file with 65 additions and 0 deletions.
65 changes: 65 additions & 0 deletions ppdiffusers/deploy/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# PPDiffusers推理部署

PPDiffusers基于Paddle Inference,提供了以下重点扩散模型的部署方案:
- ControlNet
- IP-Adapter-SD15
- IP-Adapter-SDXL
- SD15
- SDXL


# V100性能数据
|模型|Paddle Deploy TensorRT / ips|Torch Dynamic / ips|
|-|-|-|
|IP-Adapter-SD15 text2img|18.30|18.18|
|IP-Adapter-SD15 img2img|18.11|17.87|
|IP-Adapter-SD15 inpaint|17.93|17.44|
|IP-Adapter-SDXL text2img|12.01|11.47|
|IP-Adapter-SDXL img2img|12.00|10.95|
|IP-Adapter-SDXL inpaint|11.67|10.79|
|SD15 text2img|19.68|18.27|
|SD15 img2img|19.68|17.90|
|SD15 inpaint|19.44|17.56|
|SDXL text2img|13.91|11.50|
|SDXL img2img|13.86|11.60|
|SDXL inpaint|13.45|11.28|

<!-- |SD15 text2img|11.87|6.68|6.32|
|SD15 img2img|14.47|8.09|7.63|
|SD15 inpaint|14.30|6.42|6.06| -->

> Note:
> 测试环境或配置为Paddle 3.0 beta版本,V100 32G单卡,FP16。
推理参数为Image Width = 512, Image Height = 512, Num Inference Steps = 50。

# A100性能数据
|模型|Paddle Deploy TensorRT / ips|Torch Dynamic / ips|
|-|-|-|
|IP-Adapter-SD15 text2img|38.52||
|IP-Adapter-SD15 img2img|37.91||
|IP-Adapter-SD15 inpaint|37.80||
|IP-Adapter-SDXL text2img|22.88||
|IP-Adapter-SDXL img2img|22.79||
|IP-Adapter-SDXL inpaint|22.30||
|SD15 text2img|47.22||
|SD15 img2img|46.59||
|SD15 inpaint|46.05||
|SDXL text2img|31.98|12.91|
|SDXL img2img|31.80|9.43|
|SDXL inpaint|30.58|11.29|

<!-- |SD15 text2img|26.37|10.49||
|SD15 img2img|30.81|12.70||
|SD15 inpaint|30.55|9.67|| -->

> Note: 测试环境或配置为Paddle 3.0 beta版本,A100 80G单卡,FP16。
推理参数为Image Width = 512, Image Height = 512, Num Inference Steps = 50。

<!-- |SDXL text2img||||
|SDXL img2img||||
|SDXL inpaint|||| -->

<!-- |-|-|-|-|
|ControlNet text2img|3.360597|||
|ControlNet img2img|3.360597|||
|ControlNet inpaint|3.360597||| -->

0 comments on commit 8c723de

Please sign in to comment.