fofr/any-comfyui-workflow-a100 🖼️❓📝🔢✓ → 🖼️

▶️ 27.9K runs 📅 Sep 2024 ⚙️ Cog 0.13.6 🔗 GitHub 📄 Paper ⚖️ License
comfyui workflow-runner

About

Run any ComfyUI workflow on an A100. Guide: https://github.com/fofr/cog-comfyui

Example Output

Output

Example output

Performance Metrics

2.30s Prediction Time
2.31s Total Time
All Input Parameters
{
  "output_format": "webp",
  "workflow_json": "{\n  \"3\": {\n    \"inputs\": {\n      \"seed\": 156680208700286,\n      \"steps\": 10,\n      \"cfg\": 2.5,\n      \"sampler_name\": \"dpmpp_2m_sde\",\n      \"scheduler\": \"karras\",\n      \"denoise\": 1,\n      \"model\": [\n        \"4\",\n        0\n      ],\n      \"positive\": [\n        \"6\",\n        0\n      ],\n      \"negative\": [\n        \"7\",\n        0\n      ],\n      \"latent_image\": [\n        \"5\",\n        0\n      ]\n    },\n    \"class_type\": \"KSampler\",\n    \"_meta\": {\n      \"title\": \"KSampler\"\n    }\n  },\n  \"4\": {\n    \"inputs\": {\n      \"ckpt_name\": \"SDXL-Flash.safetensors\"\n    },\n    \"class_type\": \"CheckpointLoaderSimple\",\n    \"_meta\": {\n      \"title\": \"Load Checkpoint\"\n    }\n  },\n  \"5\": {\n    \"inputs\": {\n      \"width\": 1024,\n      \"height\": 1024,\n      \"batch_size\": 1\n    },\n    \"class_type\": \"EmptyLatentImage\",\n    \"_meta\": {\n      \"title\": \"Empty Latent Image\"\n    }\n  },\n  \"6\": {\n    \"inputs\": {\n      \"text\": \"beautiful scenery nature glass bottle landscape, purple galaxy bottle,\",\n      \"clip\": [\n        \"4\",\n        1\n      ]\n    },\n    \"class_type\": \"CLIPTextEncode\",\n    \"_meta\": {\n      \"title\": \"CLIP Text Encode (Prompt)\"\n    }\n  },\n  \"7\": {\n    \"inputs\": {\n      \"text\": \"text, watermark\",\n      \"clip\": [\n        \"4\",\n        1\n      ]\n    },\n    \"class_type\": \"CLIPTextEncode\",\n    \"_meta\": {\n      \"title\": \"CLIP Text Encode (Prompt)\"\n    }\n  },\n  \"8\": {\n    \"inputs\": {\n      \"samples\": [\n        \"3\",\n        0\n      ],\n      \"vae\": [\n        \"4\",\n        2\n      ]\n    },\n    \"class_type\": \"VAEDecode\",\n    \"_meta\": {\n      \"title\": \"VAE Decode\"\n    }\n  },\n  \"9\": {\n    \"inputs\": {\n      \"filename_prefix\": \"ComfyUI\",\n      \"images\": [\n        \"8\",\n        0\n      ]\n    },\n    \"class_type\": \"SaveImage\",\n    \"_meta\": {\n      \"title\": \"Save Image\"\n    }\n  }\n}\n",
  "output_quality": 95,
  "randomise_seeds": true,
  "force_reset_cache": false,
  "return_temp_files": false
}
Input Parameters
input_file Type: string
Input image, video, tar or zip file. Read guidance on workflows and input files here: https://github.com/fofr/cog-comfyui. Alternatively, you can replace inputs with URLs in your JSON workflow and the model will download them.
output_format Default: webp
Format of the output images
workflow_json Type: stringDefault:
Your ComfyUI workflow as JSON. You must use the API version of your workflow. Get it from ComfyUI using ‘Save (API format)’. Instructions here: https://github.com/fofr/cog-comfyui
output_quality Type: integerDefault: 95Range: 0 - 100
Quality of the output images, from 0 to 100. 100 is best quality, 0 is lowest quality.
randomise_seeds Type: booleanDefault: true
Automatically randomise seeds (seed, noise_seed, rand_seed)
force_reset_cache Type: booleanDefault: false
Force reset the ComfyUI cache before running the workflow. Useful for debugging.
return_temp_files Type: booleanDefault: false
Return any temporary files, such as preprocessed controlnet images. Useful for debugging.
Output Schema

Output

Type: arrayItems Type: stringItems Format: uri

Example Execution Logs
Checking inputs
====================================
Checking weights
✅ SDXL-Flash.safetensors exists in ComfyUI/models/checkpoints
====================================
Randomising seed to 1228588751
Running workflow
got prompt
Executing node 3, title: KSampler, class type: KSampler
  0%|          | 0/10 [00:00<?, ?it/s]
 10%|█         | 1/10 [00:00<00:01,  6.62it/s]
 20%|██        | 2/10 [00:00<00:01,  6.25it/s]
 30%|███       | 3/10 [00:00<00:01,  6.11it/s]
 40%|████      | 4/10 [00:00<00:00,  6.02it/s]
 50%|█████     | 5/10 [00:00<00:00,  5.94it/s]
 60%|██████    | 6/10 [00:00<00:00,  5.96it/s]
 70%|███████   | 7/10 [00:01<00:00,  6.01it/s]
 80%|████████  | 8/10 [00:01<00:00,  6.11it/s]
 90%|█████████ | 9/10 [00:01<00:00,  6.42it/s]
100%|██████████| 10/10 [00:01<00:00,  6.77it/s]
100%|██████████| 10/10 [00:01<00:00,  6.31it/s]
Executing node 8, title: VAE Decode, class type: VAEDecode
Executing node 9, title: Save Image, class type: SaveImage
Prompt executed in 1.92 seconds
outputs:  {'9': {'images': [{'filename': 'ComfyUI_00001_.png', 'subfolder': '', 'type': 'output'}]}}
====================================
ComfyUI_00001_.png
Version Details
Version ID
82c95ab88c3fe98772f23c42c8a6d54135a5d09546eefc75ee46805b017e8913
Version Created
January 28, 2025
Run on Replicate →