We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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?
The text was updated successfully, but these errors were encountered:
feat(transpile): support converting to bootstrap scripts (#43)
26bd039
It's now added. Example:
> python -m comfy_script.transpile tests\transpile\default.json --runtime from comfy_script.runtime import * load() from comfy_script.runtime.nodes import * with Workflow(): model, clip, vae = CheckpointLoaderSimple('v1-5-pruned-emaonly.ckpt') 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')
Save the code to script.py:
script.py
> python -m comfy_script.transpile tests\transpile\default.json --runtime > script.py
Sorry, something went wrong.
feat(transpile): rename bootstrap option to runtime (#43)
bootstrap
runtime
2a81b43
Great!
No branches or pull requests
I know python -m comfy_script.transpile workflow.json can create script
then I will add these codes to make it run
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?
The text was updated successfully, but these errors were encountered: