-
Notifications
You must be signed in to change notification settings - Fork 40
Async execute cannot reuse already computed results #114
Copy link
Copy link
Open
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationenhancementNew feature or requestNew feature or requestruntime
Description
If there is another await KSampler() between a KSampler() and a VAEDecode(), like this:
from comfy_script.runtime import *
load(watch=False)
queue.start_watch(False,False,False)
from comfy_script.runtime.nodes import *
...
latent1 = KSampler() # generate one image
await DummyOut(latent1) # using DummyOut() from KJNodes package to create an output node.
latent2 = KSampler()) # generate another image using different prompt
await DummyOut(latent2)
image1 = VAEDecode(latent1, vae)The latent1 KSampler() will run twice.
If the latent2 KSampler() removed, the latent1 KSampler will run only once, which is expected behavior,
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationenhancementNew feature or requestNew feature or requestruntime