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,
If there is another await KSampler() between a KSampler() and a VAEDecode(), like this:
The latent1 KSampler() will run twice.
If the latent2 KSampler() removed, the latent1 KSampler will run only once, which is expected behavior,