Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Execution inversion #329

Merged
merged 6 commits into from
Aug 22, 2024
Merged

Support Execution inversion #329

merged 6 commits into from
Aug 22, 2024

Conversation

yolain
Copy link
Owner

@yolain yolain commented Aug 20, 2024

Credit By

Optimised from this demo: execution-inversion-demo-comfyui
About PR: comfyanonymous/ComfyUI#2666

What can it do | 它能弄啥嘞

Comfy-Org's update execution inversion at 15 August,it can be used to implement for loops, lazy if else (conditional judgements), and so on. Thanks to guill for working so hard on this features, Finally implemented in comfy after almost a year of hard work!

Comfy官方在8月15号更新的执行反转可用于for循环, 惰性if else(条件判断)等。感谢guill这个老表对这个功能辛勤的努力,经过近一年的努力我们才能在comfy中得以实施。

What's Updated | 更新了啥玩意

Lazy Evaluation | 利用惰性求值进行条件判断

  • easy ifElse
Lazy Evaluation
We can clearly see from the runtime on the node that the node entered to on_true is not running in the workflow.

For Loop | for循环

  • easy forLoopStart & easy forLoopEnd
loop
Here's a very simple example of a workflow that loops between **forLoopStart** and **forLoopEnd**, ending the loop when the **total** number of times is reached

For detailed examples and introduction please wait for the video recording...

Video Guide

Comming soon...

@yolain yolain force-pushed the execution-inversion branch from 093c3c5 to 12002ac Compare August 22, 2024 14:30
@yolain yolain merged commit df91882 into main Aug 22, 2024
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.

1 participant