-
-
Notifications
You must be signed in to change notification settings - Fork 39
Closed
Labels
Description
I know python -m comfy_script.transpile workflow.json can create script
model, clip, vae = CheckpointLoaderSimple('realisticVisionV60B1_v51HyperVAE.safetensors')
conditioning = CLIPTextEncode('beautiful scenery nature glass bottle landscape, , purple galaxy bottle,', clip)
conditioning2 = CLIPTextEncode('text, watermark', clip)
latent = EmptyLatentImage(512, 512, 1)
latent = KSampler(model, 156680208700286, 20, 8, 'euler', 'normal', conditioning, conditioning2, latent, 1)
image = VAEDecode(latent, vae)
SaveImage(image, 'ComfyUI')
then I will add these codes to make it run
from comfy_script.runtime import *
load()
from comfy_script.runtime.nodes import *
with Workflow():
Is it possible to make a auto-transpile to convert workflow into a script.py , so I can convert it and then run without editting any code?
Reactions are currently unavailable