ComfyUI Command Line Runner
- Create a workflow and name the important nodes with descriptive titles. Export .json from ComfyUI in API format using Workflow -> Export (API)
- Create a .csv with columns named node_title.parameter. The rows of this table will replace the respective node parameter values in the workflow .json
- Run python batch_comfy.py --workflow=my_workflow.json --prompts=my_prompts.csv
Example input .csv:
i2i.seed,i2i.prompt,save_image.filename_prefix,
42,"A happy capybara swims in the amazon",capybara1,
777,"A happy capybara swims in the amazon",capybara2,