Remove result in UI after executed #186
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
之前考虑方便,LLM、VLM、JoyCaption 出的文字,不仅会返回到 python 后端,还会更新到前端的 node UI 上。
不过,因为 ComfyUI 的 Cache 机制,会把每次 node UI 上的内容,全部算做 input,做 hash 后,来决定是否需要重新执行 node,且优先级是高于可以重写的
IS_CHANGED
。也就是说,如果每次更新 UI,则 node 就没有 cache 机制。
经过考虑和用户反馈,我们还是不更新 UI 了,cache 可以省掉不必要的运算,收益更大。