Skip to content

Add community version controlnet performance testing#557

Merged
ccssu merged 6 commits intomainfrom
update_onediff_comfy_nodes_README.md
Jan 23, 2024
Merged

Add community version controlnet performance testing#557
ccssu merged 6 commits intomainfrom
update_onediff_comfy_nodes_README.md

Conversation

@ccssu
Copy link
Contributor

@ccssu ccssu commented Jan 23, 2024

Performance Comparison

NVIDIA GeForce RTX 3090

  • model: sd_xl_base_1.0.safetensors
  • batch size: 1
  • image size: 1024x1024
  • steps: 20

Timings for 20 steps at 1024x1024

e2e Basic Lora ControlNet
PyTorch 5.57 s 5.62 s 7.95 s
OneDiff 3.16 s 3.16 s 5.45 s
Percentage improvement 43% 44% 31%

Image throughput for 20 steps at 1024x1024

it/s Basic Lora ControlNet
PyTorch 4.04it/s 3.99it/s 2.87it/s
OneDiff 7.61it/s 7.51it/s 4.40it/s
Percentage improvement 88% 88% 53%
  • onediff: d387e7e (origin/main, origin/HEAD, main)
  • oneflow: version: 0.9.1.dev20240120+cu121 git_commit: 287b806

@strint
Copy link
Collaborator

strint commented Jan 23, 2024

性能数据都加到 readme 吧

@ccssu ccssu requested review from doombeaker and strint January 23, 2024 11:32
@ccssu ccssu merged commit f481e6c into main Jan 23, 2024
@ccssu ccssu deleted the update_onediff_comfy_nodes_README.md branch January 23, 2024 14:15
@@ -0,0 +1,115 @@
import matplotlib as mpl
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

py 文件(以及 config.yaml)不适合放在 imgs 目录下,imgs 下最好只放图片。

可以在仓库根目录下,新建一个 tools 一类的文件夹,放这两个文件吧。

或者放到已有的 benchmarks 目录下

plt.savefig(config["output_filename"], dpi=config["figure"]["dpi"], bbox_inches="tight")

# Show the plot
plt.show()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这句在我们非桌面开发环境没法生效,可以去掉吧

@@ -0,0 +1,44 @@
categories:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我建议这里的配置,直接改成这个 PR 里那个 comfy_commnity_version_speed.png 图片一致的配置。
这样两者其实是互相解释的。这个 PR 后续对于其它要使用或者维护的人,是现成的学习资料。

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

像现有的 png 里,有些属性没有用到,比如 plot_title,我觉得也最好用起来。图片里能体现的,尽量体现(不让人觉得累赘的前提下)。图片里不能体现的,在 config.yaml 里写下说明注释

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants