You're looking at a specific version of this model. Jump to the model overview.
fofr /any-comfyui-workflow:8d7883b5
Input
Run this model in Node.js with one line of code:
npm install replicate
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
import Replicate from "replicate";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run fofr/any-comfyui-workflow using Replicateās API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"fofr/any-comfyui-workflow:8d7883b5a9e7968b4c85dd59c8b4e87351f4a04ac390a426b3b0421e05596e4c",
{
input: {
output_format: "webp",
workflow_json: "{\n \"3\": {\n \"inputs\": {\n \"seed\": 816687600925376,\n \"steps\": 20,\n \"cfg\": 5,\n \"sampler_name\": \"euler\",\n \"scheduler\": \"normal\",\n \"denoise\": 1,\n \"model\": [\n \"53\",\n 0\n ],\n \"positive\": [\n \"54\",\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\": \"RealVisXL_V3.0.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\": [\n \"29\",\n 0\n ],\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\": [\n \"70\",\n 1\n ],\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 \"20\": {\n \"inputs\": {\n \"add_noise\": \"enable\",\n \"noise_seed\": 816687600925376,\n \"steps\": 20,\n \"cfg\": 5,\n \"sampler_name\": \"euler\",\n \"scheduler\": \"normal\",\n \"start_at_step\": 0,\n \"end_at_step\": 10,\n \"return_with_leftover_noise\": \"enable\",\n \"model\": [\n \"53\",\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\": \"KSamplerAdvanced\",\n \"_meta\": {\n \"title\": \"KSampler (Advanced)\"\n }\n },\n \"21\": {\n \"inputs\": {\n \"add_noise\": \"disable\",\n \"noise_seed\": 816687600925376,\n \"steps\": 20,\n \"cfg\": 5,\n \"sampler_name\": \"euler\",\n \"scheduler\": \"normal\",\n \"start_at_step\": 10,\n \"end_at_step\": 10000,\n \"return_with_leftover_noise\": \"disable\",\n \"model\": [\n \"53\",\n 0\n ],\n \"positive\": [\n \"54\",\n 0\n ],\n \"negative\": [\n \"7\",\n 0\n ],\n \"latent_image\": [\n \"20\",\n 0\n ]\n },\n \"class_type\": \"KSamplerAdvanced\",\n \"_meta\": {\n \"title\": \"KSampler (Advanced)\"\n }\n },\n \"26\": {\n \"inputs\": {\n \"samples\": [\n \"21\",\n 0\n ],\n \"vae\": [\n \"4\",\n 2\n ]\n },\n \"class_type\": \"VAEDecode\",\n \"_meta\": {\n \"title\": \"VAE Decode\"\n }\n },\n \"29\": {\n \"inputs\": {\n \"action\": \"replace\",\n \"tidy_tags\": \"no\",\n \"text_a\": [\n \"70\",\n 0\n ],\n \"text_b\": \"/ img/\",\n \"text_c\": \"\"\n },\n \"class_type\": \"StringFunction|pysssss\",\n \"_meta\": {\n \"title\": \"String Function š\"\n }\n },\n \"31\": {\n \"inputs\": {\n \"image1\": [\n \"32\",\n 0\n ],\n \"image2\": [\n \"33\",\n 0\n ]\n },\n \"class_type\": \"ImageBatch\",\n \"_meta\": {\n \"title\": \"Batch Images\"\n }\n },\n \"32\": {\n \"inputs\": {\n \"image\": \"https://replicate.delivery/pbxt/KFNauNDOaImWQhgoxtVSVCvBg5nk32c2x6CdclmSOGm8m5e0/Screenshot%202024-01-18%20at%2009.44.44.png\",\n \"upload\": \"image\"\n },\n \"class_type\": \"LoadImage\",\n \"_meta\": {\n \"title\": \"Load Image\"\n }\n },\n \"33\": {\n \"inputs\": {\n \"image\": \"https://replicate.delivery/pbxt/KFNaudqUV40O5ua2X6F52W7uw7dCkAn8bPTczl7mzZWBbgKY/Screenshot%202024-01-18%20at%2009.44.50.png\",\n \"upload\": \"image\"\n },\n \"class_type\": \"LoadImage\",\n \"_meta\": {\n \"title\": \"Load Image\"\n }\n },\n \"34\": {\n \"inputs\": {\n \"images\": [\n \"47\",\n 0\n ]\n },\n \"class_type\": \"PreviewImage\",\n \"_meta\": {\n \"title\": \"Preview Image\"\n }\n },\n \"38\": {\n \"inputs\": {\n \"interpolation\": \"LANCZOS\",\n \"crop_position\": \"top\",\n \"sharpening\": 0,\n \"image\": [\n \"32\",\n 0\n ]\n },\n \"class_type\": \"PrepImageForClipVision\",\n \"_meta\": {\n \"title\": \"Prepare Image For Clip Vision\"\n }\n },\n \"39\": {\n \"inputs\": {\n \"interpolation\": \"LANCZOS\",\n \"crop_position\": \"top\",\n \"sharpening\": 0,\n \"image\": [\n \"33\",\n 0\n ]\n },\n \"class_type\": \"PrepImageForClipVision\",\n \"_meta\": {\n \"title\": \"Prepare Image For Clip Vision\"\n }\n },\n \"42\": {\n \"inputs\": {\n \"image1\": [\n \"38\",\n 0\n ],\n \"image2\": [\n \"39\",\n 0\n ]\n },\n \"class_type\": \"ImageBatch\",\n \"_meta\": {\n \"title\": \"Batch Images\"\n }\n },\n \"45\": {\n \"inputs\": {\n \"image\": \"https://replicate.delivery/pbxt/KFNauL1WWGAsKYtrxKwCP4wvv66ecsYIepNikgMRe7vVR58q/Screenshot%202024-01-18%20at%2009.45.06.png\",\n \"upload\": \"image\"\n },\n \"class_type\": \"LoadImage\",\n \"_meta\": {\n \"title\": \"Load Image\"\n }\n },\n \"46\": {\n \"inputs\": {\n \"interpolation\": \"LANCZOS\",\n \"crop_position\": \"top\",\n \"sharpening\": 0,\n \"image\": [\n \"45\",\n 0\n ]\n },\n \"class_type\": \"PrepImageForClipVision\",\n \"_meta\": {\n \"title\": \"Prepare Image For Clip Vision\"\n }\n },\n \"47\": {\n \"inputs\": {\n \"image1\": [\n \"42\",\n 0\n ],\n \"image2\": [\n \"46\",\n 0\n ]\n },\n \"class_type\": \"ImageBatch\",\n \"_meta\": {\n \"title\": \"Batch Images\"\n }\n },\n \"48\": {\n \"inputs\": {\n \"image1\": [\n \"31\",\n 0\n ],\n \"image2\": [\n \"45\",\n 0\n ]\n },\n \"class_type\": \"ImageBatch\",\n \"_meta\": {\n \"title\": \"Batch Images\"\n }\n },\n \"53\": {\n \"inputs\": {\n \"lora_name\": \"photomaker-v1.bin\",\n \"strength_model\": 1,\n \"model\": [\n \"4\",\n 0\n ]\n },\n \"class_type\": \"LoraLoaderModelOnly\",\n \"_meta\": {\n \"title\": \"LoraLoaderModelOnly\"\n }\n },\n \"54\": {\n \"inputs\": {\n \"trigger_word\": \"img\",\n \"text\": [\n \"70\",\n 0\n ],\n \"clip\": [\n \"4\",\n 1\n ],\n \"photomaker\": [\n \"56\",\n 0\n ],\n \"image\": [\n \"47\",\n 0\n ]\n },\n \"class_type\": \"PhotoMakerEncode\",\n \"_meta\": {\n \"title\": \"PhotoMaker Encode\"\n }\n },\n \"56\": {\n \"inputs\": {\n \"name\": \"photomaker-v1.bin\"\n },\n \"class_type\": \"PhotoMakerLoader\",\n \"_meta\": {\n \"title\": \"Load PhotoMaker\"\n }\n },\n \"57\": {\n \"inputs\": {\n \"path\": \"\",\n \"interpolation\": \"lanczos\",\n \"crop_position\": \"center\"\n },\n \"class_type\": \"PrepImagesForClipVisionFromPath\",\n \"_meta\": {\n \"title\": \"Prepare Images For ClipVision From Path\"\n }\n },\n \"59\": {\n \"inputs\": {\n \"conditioning_1\": [\n \"60\",\n 0\n ],\n \"conditioning_2\": [\n \"62\",\n 0\n ]\n },\n \"class_type\": \"ConditioningCombine\",\n \"_meta\": {\n \"title\": \"Conditioning (Combine)\"\n }\n },\n \"60\": {\n \"inputs\": {\n \"start\": 0,\n \"end\": 0.5,\n \"conditioning\": [\n \"6\",\n 0\n ]\n },\n \"class_type\": \"ConditioningSetTimestepRange\",\n \"_meta\": {\n \"title\": \"ConditioningSetTimestepRange\"\n }\n },\n \"62\": {\n \"inputs\": {\n \"start\": 0.5,\n \"end\": 1,\n \"conditioning\": [\n \"54\",\n 0\n ]\n },\n \"class_type\": \"ConditioningSetTimestepRange\",\n \"_meta\": {\n \"title\": \"ConditioningSetTimestepRange\"\n }\n },\n \"63\": {\n \"inputs\": {\n \"seed\": 816687600925376,\n \"steps\": 20,\n \"cfg\": 5,\n \"sampler_name\": \"euler\",\n \"scheduler\": \"normal\",\n \"denoise\": 1,\n \"model\": [\n \"53\",\n 0\n ],\n \"positive\": [\n \"59\",\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 \"65\": {\n \"inputs\": {\n \"samples\": [\n \"63\",\n 0\n ],\n \"vae\": [\n \"4\",\n 2\n ]\n },\n \"class_type\": \"VAEDecode\",\n \"_meta\": {\n \"title\": \"VAE Decode\"\n }\n },\n \"67\": {\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 \"68\": {\n \"inputs\": {\n \"filename_prefix\": \"ComfyUI\",\n \"images\": [\n \"26\",\n 0\n ]\n },\n \"class_type\": \"SaveImage\",\n \"_meta\": {\n \"title\": \"Save Image\"\n }\n },\n \"69\": {\n \"inputs\": {\n \"filename_prefix\": \"ComfyUI\",\n \"images\": [\n \"65\",\n 0\n ]\n },\n \"class_type\": \"SaveImage\",\n \"_meta\": {\n \"title\": \"Save Image\"\n }\n },\n \"70\": {\n \"inputs\": {\n \"style_name\": \"Photographic (Default)\",\n \"positive\": \"photo of a man img, high quality, film grain\",\n \"negative\": \"asymmetry, worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch), open mouth\"\n },\n \"class_type\": \"PhotoMakerStyles\",\n \"_meta\": {\n \"title\": \"Apply PhotoMaker Style\"\n }\n },\n \"72\": {\n \"inputs\": {\n \"value\": \"\"\n },\n \"class_type\": \"String\",\n \"_meta\": {\n \"title\": \"String\"\n }\n }\n}",
output_quality: 95,
randomise_seeds: true,
force_reset_cache: false,
return_temp_files: false
}
}
);
console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
import replicate
Run fofr/any-comfyui-workflow using Replicateās API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"fofr/any-comfyui-workflow:8d7883b5a9e7968b4c85dd59c8b4e87351f4a04ac390a426b3b0421e05596e4c",
input={
"output_format": "webp",
"workflow_json": "{\n \"3\": {\n \"inputs\": {\n \"seed\": 816687600925376,\n \"steps\": 20,\n \"cfg\": 5,\n \"sampler_name\": \"euler\",\n \"scheduler\": \"normal\",\n \"denoise\": 1,\n \"model\": [\n \"53\",\n 0\n ],\n \"positive\": [\n \"54\",\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\": \"RealVisXL_V3.0.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\": [\n \"29\",\n 0\n ],\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\": [\n \"70\",\n 1\n ],\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 \"20\": {\n \"inputs\": {\n \"add_noise\": \"enable\",\n \"noise_seed\": 816687600925376,\n \"steps\": 20,\n \"cfg\": 5,\n \"sampler_name\": \"euler\",\n \"scheduler\": \"normal\",\n \"start_at_step\": 0,\n \"end_at_step\": 10,\n \"return_with_leftover_noise\": \"enable\",\n \"model\": [\n \"53\",\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\": \"KSamplerAdvanced\",\n \"_meta\": {\n \"title\": \"KSampler (Advanced)\"\n }\n },\n \"21\": {\n \"inputs\": {\n \"add_noise\": \"disable\",\n \"noise_seed\": 816687600925376,\n \"steps\": 20,\n \"cfg\": 5,\n \"sampler_name\": \"euler\",\n \"scheduler\": \"normal\",\n \"start_at_step\": 10,\n \"end_at_step\": 10000,\n \"return_with_leftover_noise\": \"disable\",\n \"model\": [\n \"53\",\n 0\n ],\n \"positive\": [\n \"54\",\n 0\n ],\n \"negative\": [\n \"7\",\n 0\n ],\n \"latent_image\": [\n \"20\",\n 0\n ]\n },\n \"class_type\": \"KSamplerAdvanced\",\n \"_meta\": {\n \"title\": \"KSampler (Advanced)\"\n }\n },\n \"26\": {\n \"inputs\": {\n \"samples\": [\n \"21\",\n 0\n ],\n \"vae\": [\n \"4\",\n 2\n ]\n },\n \"class_type\": \"VAEDecode\",\n \"_meta\": {\n \"title\": \"VAE Decode\"\n }\n },\n \"29\": {\n \"inputs\": {\n \"action\": \"replace\",\n \"tidy_tags\": \"no\",\n \"text_a\": [\n \"70\",\n 0\n ],\n \"text_b\": \"/ img/\",\n \"text_c\": \"\"\n },\n \"class_type\": \"StringFunction|pysssss\",\n \"_meta\": {\n \"title\": \"String Function š\"\n }\n },\n \"31\": {\n \"inputs\": {\n \"image1\": [\n \"32\",\n 0\n ],\n \"image2\": [\n \"33\",\n 0\n ]\n },\n \"class_type\": \"ImageBatch\",\n \"_meta\": {\n \"title\": \"Batch Images\"\n }\n },\n \"32\": {\n \"inputs\": {\n \"image\": \"https://replicate.delivery/pbxt/KFNauNDOaImWQhgoxtVSVCvBg5nk32c2x6CdclmSOGm8m5e0/Screenshot%202024-01-18%20at%2009.44.44.png\",\n \"upload\": \"image\"\n },\n \"class_type\": \"LoadImage\",\n \"_meta\": {\n \"title\": \"Load Image\"\n }\n },\n \"33\": {\n \"inputs\": {\n \"image\": \"https://replicate.delivery/pbxt/KFNaudqUV40O5ua2X6F52W7uw7dCkAn8bPTczl7mzZWBbgKY/Screenshot%202024-01-18%20at%2009.44.50.png\",\n \"upload\": \"image\"\n },\n \"class_type\": \"LoadImage\",\n \"_meta\": {\n \"title\": \"Load Image\"\n }\n },\n \"34\": {\n \"inputs\": {\n \"images\": [\n \"47\",\n 0\n ]\n },\n \"class_type\": \"PreviewImage\",\n \"_meta\": {\n \"title\": \"Preview Image\"\n }\n },\n \"38\": {\n \"inputs\": {\n \"interpolation\": \"LANCZOS\",\n \"crop_position\": \"top\",\n \"sharpening\": 0,\n \"image\": [\n \"32\",\n 0\n ]\n },\n \"class_type\": \"PrepImageForClipVision\",\n \"_meta\": {\n \"title\": \"Prepare Image For Clip Vision\"\n }\n },\n \"39\": {\n \"inputs\": {\n \"interpolation\": \"LANCZOS\",\n \"crop_position\": \"top\",\n \"sharpening\": 0,\n \"image\": [\n \"33\",\n 0\n ]\n },\n \"class_type\": \"PrepImageForClipVision\",\n \"_meta\": {\n \"title\": \"Prepare Image For Clip Vision\"\n }\n },\n \"42\": {\n \"inputs\": {\n \"image1\": [\n \"38\",\n 0\n ],\n \"image2\": [\n \"39\",\n 0\n ]\n },\n \"class_type\": \"ImageBatch\",\n \"_meta\": {\n \"title\": \"Batch Images\"\n }\n },\n \"45\": {\n \"inputs\": {\n \"image\": \"https://replicate.delivery/pbxt/KFNauL1WWGAsKYtrxKwCP4wvv66ecsYIepNikgMRe7vVR58q/Screenshot%202024-01-18%20at%2009.45.06.png\",\n \"upload\": \"image\"\n },\n \"class_type\": \"LoadImage\",\n \"_meta\": {\n \"title\": \"Load Image\"\n }\n },\n \"46\": {\n \"inputs\": {\n \"interpolation\": \"LANCZOS\",\n \"crop_position\": \"top\",\n \"sharpening\": 0,\n \"image\": [\n \"45\",\n 0\n ]\n },\n \"class_type\": \"PrepImageForClipVision\",\n \"_meta\": {\n \"title\": \"Prepare Image For Clip Vision\"\n }\n },\n \"47\": {\n \"inputs\": {\n \"image1\": [\n \"42\",\n 0\n ],\n \"image2\": [\n \"46\",\n 0\n ]\n },\n \"class_type\": \"ImageBatch\",\n \"_meta\": {\n \"title\": \"Batch Images\"\n }\n },\n \"48\": {\n \"inputs\": {\n \"image1\": [\n \"31\",\n 0\n ],\n \"image2\": [\n \"45\",\n 0\n ]\n },\n \"class_type\": \"ImageBatch\",\n \"_meta\": {\n \"title\": \"Batch Images\"\n }\n },\n \"53\": {\n \"inputs\": {\n \"lora_name\": \"photomaker-v1.bin\",\n \"strength_model\": 1,\n \"model\": [\n \"4\",\n 0\n ]\n },\n \"class_type\": \"LoraLoaderModelOnly\",\n \"_meta\": {\n \"title\": \"LoraLoaderModelOnly\"\n }\n },\n \"54\": {\n \"inputs\": {\n \"trigger_word\": \"img\",\n \"text\": [\n \"70\",\n 0\n ],\n \"clip\": [\n \"4\",\n 1\n ],\n \"photomaker\": [\n \"56\",\n 0\n ],\n \"image\": [\n \"47\",\n 0\n ]\n },\n \"class_type\": \"PhotoMakerEncode\",\n \"_meta\": {\n \"title\": \"PhotoMaker Encode\"\n }\n },\n \"56\": {\n \"inputs\": {\n \"name\": \"photomaker-v1.bin\"\n },\n \"class_type\": \"PhotoMakerLoader\",\n \"_meta\": {\n \"title\": \"Load PhotoMaker\"\n }\n },\n \"57\": {\n \"inputs\": {\n \"path\": \"\",\n \"interpolation\": \"lanczos\",\n \"crop_position\": \"center\"\n },\n \"class_type\": \"PrepImagesForClipVisionFromPath\",\n \"_meta\": {\n \"title\": \"Prepare Images For ClipVision From Path\"\n }\n },\n \"59\": {\n \"inputs\": {\n \"conditioning_1\": [\n \"60\",\n 0\n ],\n \"conditioning_2\": [\n \"62\",\n 0\n ]\n },\n \"class_type\": \"ConditioningCombine\",\n \"_meta\": {\n \"title\": \"Conditioning (Combine)\"\n }\n },\n \"60\": {\n \"inputs\": {\n \"start\": 0,\n \"end\": 0.5,\n \"conditioning\": [\n \"6\",\n 0\n ]\n },\n \"class_type\": \"ConditioningSetTimestepRange\",\n \"_meta\": {\n \"title\": \"ConditioningSetTimestepRange\"\n }\n },\n \"62\": {\n \"inputs\": {\n \"start\": 0.5,\n \"end\": 1,\n \"conditioning\": [\n \"54\",\n 0\n ]\n },\n \"class_type\": \"ConditioningSetTimestepRange\",\n \"_meta\": {\n \"title\": \"ConditioningSetTimestepRange\"\n }\n },\n \"63\": {\n \"inputs\": {\n \"seed\": 816687600925376,\n \"steps\": 20,\n \"cfg\": 5,\n \"sampler_name\": \"euler\",\n \"scheduler\": \"normal\",\n \"denoise\": 1,\n \"model\": [\n \"53\",\n 0\n ],\n \"positive\": [\n \"59\",\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 \"65\": {\n \"inputs\": {\n \"samples\": [\n \"63\",\n 0\n ],\n \"vae\": [\n \"4\",\n 2\n ]\n },\n \"class_type\": \"VAEDecode\",\n \"_meta\": {\n \"title\": \"VAE Decode\"\n }\n },\n \"67\": {\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 \"68\": {\n \"inputs\": {\n \"filename_prefix\": \"ComfyUI\",\n \"images\": [\n \"26\",\n 0\n ]\n },\n \"class_type\": \"SaveImage\",\n \"_meta\": {\n \"title\": \"Save Image\"\n }\n },\n \"69\": {\n \"inputs\": {\n \"filename_prefix\": \"ComfyUI\",\n \"images\": [\n \"65\",\n 0\n ]\n },\n \"class_type\": \"SaveImage\",\n \"_meta\": {\n \"title\": \"Save Image\"\n }\n },\n \"70\": {\n \"inputs\": {\n \"style_name\": \"Photographic (Default)\",\n \"positive\": \"photo of a man img, high quality, film grain\",\n \"negative\": \"asymmetry, worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch), open mouth\"\n },\n \"class_type\": \"PhotoMakerStyles\",\n \"_meta\": {\n \"title\": \"Apply PhotoMaker Style\"\n }\n },\n \"72\": {\n \"inputs\": {\n \"value\": \"\"\n },\n \"class_type\": \"String\",\n \"_meta\": {\n \"title\": \"String\"\n }\n }\n}",
"output_quality": 95,
"randomise_seeds": True,
"force_reset_cache": False,
"return_temp_files": False
}
)
print(output)
To learn more, take a look at the guide on getting started with Python.
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run fofr/any-comfyui-workflow using Replicateās API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \
-H "Authorization: Bearer $REPLICATE_API_TOKEN" \
-H "Content-Type: application/json" \
-H "Prefer: wait" \
-d $'{
"version": "8d7883b5a9e7968b4c85dd59c8b4e87351f4a04ac390a426b3b0421e05596e4c",
"input": {
"output_format": "webp",
"workflow_json": "{\\n \\"3\\": {\\n \\"inputs\\": {\\n \\"seed\\": 816687600925376,\\n \\"steps\\": 20,\\n \\"cfg\\": 5,\\n \\"sampler_name\\": \\"euler\\",\\n \\"scheduler\\": \\"normal\\",\\n \\"denoise\\": 1,\\n \\"model\\": [\\n \\"53\\",\\n 0\\n ],\\n \\"positive\\": [\\n \\"54\\",\\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\\": \\"RealVisXL_V3.0.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\\": [\\n \\"29\\",\\n 0\\n ],\\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\\": [\\n \\"70\\",\\n 1\\n ],\\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 \\"20\\": {\\n \\"inputs\\": {\\n \\"add_noise\\": \\"enable\\",\\n \\"noise_seed\\": 816687600925376,\\n \\"steps\\": 20,\\n \\"cfg\\": 5,\\n \\"sampler_name\\": \\"euler\\",\\n \\"scheduler\\": \\"normal\\",\\n \\"start_at_step\\": 0,\\n \\"end_at_step\\": 10,\\n \\"return_with_leftover_noise\\": \\"enable\\",\\n \\"model\\": [\\n \\"53\\",\\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\\": \\"KSamplerAdvanced\\",\\n \\"_meta\\": {\\n \\"title\\": \\"KSampler (Advanced)\\"\\n }\\n },\\n \\"21\\": {\\n \\"inputs\\": {\\n \\"add_noise\\": \\"disable\\",\\n \\"noise_seed\\": 816687600925376,\\n \\"steps\\": 20,\\n \\"cfg\\": 5,\\n \\"sampler_name\\": \\"euler\\",\\n \\"scheduler\\": \\"normal\\",\\n \\"start_at_step\\": 10,\\n \\"end_at_step\\": 10000,\\n \\"return_with_leftover_noise\\": \\"disable\\",\\n \\"model\\": [\\n \\"53\\",\\n 0\\n ],\\n \\"positive\\": [\\n \\"54\\",\\n 0\\n ],\\n \\"negative\\": [\\n \\"7\\",\\n 0\\n ],\\n \\"latent_image\\": [\\n \\"20\\",\\n 0\\n ]\\n },\\n \\"class_type\\": \\"KSamplerAdvanced\\",\\n \\"_meta\\": {\\n \\"title\\": \\"KSampler (Advanced)\\"\\n }\\n },\\n \\"26\\": {\\n \\"inputs\\": {\\n \\"samples\\": [\\n \\"21\\",\\n 0\\n ],\\n \\"vae\\": [\\n \\"4\\",\\n 2\\n ]\\n },\\n \\"class_type\\": \\"VAEDecode\\",\\n \\"_meta\\": {\\n \\"title\\": \\"VAE Decode\\"\\n }\\n },\\n \\"29\\": {\\n \\"inputs\\": {\\n \\"action\\": \\"replace\\",\\n \\"tidy_tags\\": \\"no\\",\\n \\"text_a\\": [\\n \\"70\\",\\n 0\\n ],\\n \\"text_b\\": \\"/ img/\\",\\n \\"text_c\\": \\"\\"\\n },\\n \\"class_type\\": \\"StringFunction|pysssss\\",\\n \\"_meta\\": {\\n \\"title\\": \\"String Function š\\"\\n }\\n },\\n \\"31\\": {\\n \\"inputs\\": {\\n \\"image1\\": [\\n \\"32\\",\\n 0\\n ],\\n \\"image2\\": [\\n \\"33\\",\\n 0\\n ]\\n },\\n \\"class_type\\": \\"ImageBatch\\",\\n \\"_meta\\": {\\n \\"title\\": \\"Batch Images\\"\\n }\\n },\\n \\"32\\": {\\n \\"inputs\\": {\\n \\"image\\": \\"https://replicate.delivery/pbxt/KFNauNDOaImWQhgoxtVSVCvBg5nk32c2x6CdclmSOGm8m5e0/Screenshot%202024-01-18%20at%2009.44.44.png\\",\\n \\"upload\\": \\"image\\"\\n },\\n \\"class_type\\": \\"LoadImage\\",\\n \\"_meta\\": {\\n \\"title\\": \\"Load Image\\"\\n }\\n },\\n \\"33\\": {\\n \\"inputs\\": {\\n \\"image\\": \\"https://replicate.delivery/pbxt/KFNaudqUV40O5ua2X6F52W7uw7dCkAn8bPTczl7mzZWBbgKY/Screenshot%202024-01-18%20at%2009.44.50.png\\",\\n \\"upload\\": \\"image\\"\\n },\\n \\"class_type\\": \\"LoadImage\\",\\n \\"_meta\\": {\\n \\"title\\": \\"Load Image\\"\\n }\\n },\\n \\"34\\": {\\n \\"inputs\\": {\\n \\"images\\": [\\n \\"47\\",\\n 0\\n ]\\n },\\n \\"class_type\\": \\"PreviewImage\\",\\n \\"_meta\\": {\\n \\"title\\": \\"Preview Image\\"\\n }\\n },\\n \\"38\\": {\\n \\"inputs\\": {\\n \\"interpolation\\": \\"LANCZOS\\",\\n \\"crop_position\\": \\"top\\",\\n \\"sharpening\\": 0,\\n \\"image\\": [\\n \\"32\\",\\n 0\\n ]\\n },\\n \\"class_type\\": \\"PrepImageForClipVision\\",\\n \\"_meta\\": {\\n \\"title\\": \\"Prepare Image For Clip Vision\\"\\n }\\n },\\n \\"39\\": {\\n \\"inputs\\": {\\n \\"interpolation\\": \\"LANCZOS\\",\\n \\"crop_position\\": \\"top\\",\\n \\"sharpening\\": 0,\\n \\"image\\": [\\n \\"33\\",\\n 0\\n ]\\n },\\n \\"class_type\\": \\"PrepImageForClipVision\\",\\n \\"_meta\\": {\\n \\"title\\": \\"Prepare Image For Clip Vision\\"\\n }\\n },\\n \\"42\\": {\\n \\"inputs\\": {\\n \\"image1\\": [\\n \\"38\\",\\n 0\\n ],\\n \\"image2\\": [\\n \\"39\\",\\n 0\\n ]\\n },\\n \\"class_type\\": \\"ImageBatch\\",\\n \\"_meta\\": {\\n \\"title\\": \\"Batch Images\\"\\n }\\n },\\n \\"45\\": {\\n \\"inputs\\": {\\n \\"image\\": \\"https://replicate.delivery/pbxt/KFNauL1WWGAsKYtrxKwCP4wvv66ecsYIepNikgMRe7vVR58q/Screenshot%202024-01-18%20at%2009.45.06.png\\",\\n \\"upload\\": \\"image\\"\\n },\\n \\"class_type\\": \\"LoadImage\\",\\n \\"_meta\\": {\\n \\"title\\": \\"Load Image\\"\\n }\\n },\\n \\"46\\": {\\n \\"inputs\\": {\\n \\"interpolation\\": \\"LANCZOS\\",\\n \\"crop_position\\": \\"top\\",\\n \\"sharpening\\": 0,\\n \\"image\\": [\\n \\"45\\",\\n 0\\n ]\\n },\\n \\"class_type\\": \\"PrepImageForClipVision\\",\\n \\"_meta\\": {\\n \\"title\\": \\"Prepare Image For Clip Vision\\"\\n }\\n },\\n \\"47\\": {\\n \\"inputs\\": {\\n \\"image1\\": [\\n \\"42\\",\\n 0\\n ],\\n \\"image2\\": [\\n \\"46\\",\\n 0\\n ]\\n },\\n \\"class_type\\": \\"ImageBatch\\",\\n \\"_meta\\": {\\n \\"title\\": \\"Batch Images\\"\\n }\\n },\\n \\"48\\": {\\n \\"inputs\\": {\\n \\"image1\\": [\\n \\"31\\",\\n 0\\n ],\\n \\"image2\\": [\\n \\"45\\",\\n 0\\n ]\\n },\\n \\"class_type\\": \\"ImageBatch\\",\\n \\"_meta\\": {\\n \\"title\\": \\"Batch Images\\"\\n }\\n },\\n \\"53\\": {\\n \\"inputs\\": {\\n \\"lora_name\\": \\"photomaker-v1.bin\\",\\n \\"strength_model\\": 1,\\n \\"model\\": [\\n \\"4\\",\\n 0\\n ]\\n },\\n \\"class_type\\": \\"LoraLoaderModelOnly\\",\\n \\"_meta\\": {\\n \\"title\\": \\"LoraLoaderModelOnly\\"\\n }\\n },\\n \\"54\\": {\\n \\"inputs\\": {\\n \\"trigger_word\\": \\"img\\",\\n \\"text\\": [\\n \\"70\\",\\n 0\\n ],\\n \\"clip\\": [\\n \\"4\\",\\n 1\\n ],\\n \\"photomaker\\": [\\n \\"56\\",\\n 0\\n ],\\n \\"image\\": [\\n \\"47\\",\\n 0\\n ]\\n },\\n \\"class_type\\": \\"PhotoMakerEncode\\",\\n \\"_meta\\": {\\n \\"title\\": \\"PhotoMaker Encode\\"\\n }\\n },\\n \\"56\\": {\\n \\"inputs\\": {\\n \\"name\\": \\"photomaker-v1.bin\\"\\n },\\n \\"class_type\\": \\"PhotoMakerLoader\\",\\n \\"_meta\\": {\\n \\"title\\": \\"Load PhotoMaker\\"\\n }\\n },\\n \\"57\\": {\\n \\"inputs\\": {\\n \\"path\\": \\"\\",\\n \\"interpolation\\": \\"lanczos\\",\\n \\"crop_position\\": \\"center\\"\\n },\\n \\"class_type\\": \\"PrepImagesForClipVisionFromPath\\",\\n \\"_meta\\": {\\n \\"title\\": \\"Prepare Images For ClipVision From Path\\"\\n }\\n },\\n \\"59\\": {\\n \\"inputs\\": {\\n \\"conditioning_1\\": [\\n \\"60\\",\\n 0\\n ],\\n \\"conditioning_2\\": [\\n \\"62\\",\\n 0\\n ]\\n },\\n \\"class_type\\": \\"ConditioningCombine\\",\\n \\"_meta\\": {\\n \\"title\\": \\"Conditioning (Combine)\\"\\n }\\n },\\n \\"60\\": {\\n \\"inputs\\": {\\n \\"start\\": 0,\\n \\"end\\": 0.5,\\n \\"conditioning\\": [\\n \\"6\\",\\n 0\\n ]\\n },\\n \\"class_type\\": \\"ConditioningSetTimestepRange\\",\\n \\"_meta\\": {\\n \\"title\\": \\"ConditioningSetTimestepRange\\"\\n }\\n },\\n \\"62\\": {\\n \\"inputs\\": {\\n \\"start\\": 0.5,\\n \\"end\\": 1,\\n \\"conditioning\\": [\\n \\"54\\",\\n 0\\n ]\\n },\\n \\"class_type\\": \\"ConditioningSetTimestepRange\\",\\n \\"_meta\\": {\\n \\"title\\": \\"ConditioningSetTimestepRange\\"\\n }\\n },\\n \\"63\\": {\\n \\"inputs\\": {\\n \\"seed\\": 816687600925376,\\n \\"steps\\": 20,\\n \\"cfg\\": 5,\\n \\"sampler_name\\": \\"euler\\",\\n \\"scheduler\\": \\"normal\\",\\n \\"denoise\\": 1,\\n \\"model\\": [\\n \\"53\\",\\n 0\\n ],\\n \\"positive\\": [\\n \\"59\\",\\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 \\"65\\": {\\n \\"inputs\\": {\\n \\"samples\\": [\\n \\"63\\",\\n 0\\n ],\\n \\"vae\\": [\\n \\"4\\",\\n 2\\n ]\\n },\\n \\"class_type\\": \\"VAEDecode\\",\\n \\"_meta\\": {\\n \\"title\\": \\"VAE Decode\\"\\n }\\n },\\n \\"67\\": {\\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 \\"68\\": {\\n \\"inputs\\": {\\n \\"filename_prefix\\": \\"ComfyUI\\",\\n \\"images\\": [\\n \\"26\\",\\n 0\\n ]\\n },\\n \\"class_type\\": \\"SaveImage\\",\\n \\"_meta\\": {\\n \\"title\\": \\"Save Image\\"\\n }\\n },\\n \\"69\\": {\\n \\"inputs\\": {\\n \\"filename_prefix\\": \\"ComfyUI\\",\\n \\"images\\": [\\n \\"65\\",\\n 0\\n ]\\n },\\n \\"class_type\\": \\"SaveImage\\",\\n \\"_meta\\": {\\n \\"title\\": \\"Save Image\\"\\n }\\n },\\n \\"70\\": {\\n \\"inputs\\": {\\n \\"style_name\\": \\"Photographic (Default)\\",\\n \\"positive\\": \\"photo of a man img, high quality, film grain\\",\\n \\"negative\\": \\"asymmetry, worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch), open mouth\\"\\n },\\n \\"class_type\\": \\"PhotoMakerStyles\\",\\n \\"_meta\\": {\\n \\"title\\": \\"Apply PhotoMaker Style\\"\\n }\\n },\\n \\"72\\": {\\n \\"inputs\\": {\\n \\"value\\": \\"\\"\\n },\\n \\"class_type\\": \\"String\\",\\n \\"_meta\\": {\\n \\"title\\": \\"String\\"\\n }\\n }\\n}",
"output_quality": 95,
"randomise_seeds": true,
"force_reset_cache": false,
"return_temp_files": false
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicateās HTTP API reference docs.
brew install cog
If you donāt have Homebrew, there are other installation options available.
Run this to download the model and run it in your local environment:
cog predict r8.im/fofr/any-comfyui-workflow@sha256:8d7883b5a9e7968b4c85dd59c8b4e87351f4a04ac390a426b3b0421e05596e4c \
-i 'output_format="webp"' \
-i $'workflow_json="{\\n \\"3\\": {\\n \\"inputs\\": {\\n \\"seed\\": 816687600925376,\\n \\"steps\\": 20,\\n \\"cfg\\": 5,\\n \\"sampler_name\\": \\"euler\\",\\n \\"scheduler\\": \\"normal\\",\\n \\"denoise\\": 1,\\n \\"model\\": [\\n \\"53\\",\\n 0\\n ],\\n \\"positive\\": [\\n \\"54\\",\\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\\": \\"RealVisXL_V3.0.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\\": [\\n \\"29\\",\\n 0\\n ],\\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\\": [\\n \\"70\\",\\n 1\\n ],\\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 \\"20\\": {\\n \\"inputs\\": {\\n \\"add_noise\\": \\"enable\\",\\n \\"noise_seed\\": 816687600925376,\\n \\"steps\\": 20,\\n \\"cfg\\": 5,\\n \\"sampler_name\\": \\"euler\\",\\n \\"scheduler\\": \\"normal\\",\\n \\"start_at_step\\": 0,\\n \\"end_at_step\\": 10,\\n \\"return_with_leftover_noise\\": \\"enable\\",\\n \\"model\\": [\\n \\"53\\",\\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\\": \\"KSamplerAdvanced\\",\\n \\"_meta\\": {\\n \\"title\\": \\"KSampler (Advanced)\\"\\n }\\n },\\n \\"21\\": {\\n \\"inputs\\": {\\n \\"add_noise\\": \\"disable\\",\\n \\"noise_seed\\": 816687600925376,\\n \\"steps\\": 20,\\n \\"cfg\\": 5,\\n \\"sampler_name\\": \\"euler\\",\\n \\"scheduler\\": \\"normal\\",\\n \\"start_at_step\\": 10,\\n \\"end_at_step\\": 10000,\\n \\"return_with_leftover_noise\\": \\"disable\\",\\n \\"model\\": [\\n \\"53\\",\\n 0\\n ],\\n \\"positive\\": [\\n \\"54\\",\\n 0\\n ],\\n \\"negative\\": [\\n \\"7\\",\\n 0\\n ],\\n \\"latent_image\\": [\\n \\"20\\",\\n 0\\n ]\\n },\\n \\"class_type\\": \\"KSamplerAdvanced\\",\\n \\"_meta\\": {\\n \\"title\\": \\"KSampler (Advanced)\\"\\n }\\n },\\n \\"26\\": {\\n \\"inputs\\": {\\n \\"samples\\": [\\n \\"21\\",\\n 0\\n ],\\n \\"vae\\": [\\n \\"4\\",\\n 2\\n ]\\n },\\n \\"class_type\\": \\"VAEDecode\\",\\n \\"_meta\\": {\\n \\"title\\": \\"VAE Decode\\"\\n }\\n },\\n \\"29\\": {\\n \\"inputs\\": {\\n \\"action\\": \\"replace\\",\\n \\"tidy_tags\\": \\"no\\",\\n \\"text_a\\": [\\n \\"70\\",\\n 0\\n ],\\n \\"text_b\\": \\"/ img/\\",\\n \\"text_c\\": \\"\\"\\n },\\n \\"class_type\\": \\"StringFunction|pysssss\\",\\n \\"_meta\\": {\\n \\"title\\": \\"String Function š\\"\\n }\\n },\\n \\"31\\": {\\n \\"inputs\\": {\\n \\"image1\\": [\\n \\"32\\",\\n 0\\n ],\\n \\"image2\\": [\\n \\"33\\",\\n 0\\n ]\\n },\\n \\"class_type\\": \\"ImageBatch\\",\\n \\"_meta\\": {\\n \\"title\\": \\"Batch Images\\"\\n }\\n },\\n \\"32\\": {\\n \\"inputs\\": {\\n \\"image\\": \\"https://replicate.delivery/pbxt/KFNauNDOaImWQhgoxtVSVCvBg5nk32c2x6CdclmSOGm8m5e0/Screenshot%202024-01-18%20at%2009.44.44.png\\",\\n \\"upload\\": \\"image\\"\\n },\\n \\"class_type\\": \\"LoadImage\\",\\n \\"_meta\\": {\\n \\"title\\": \\"Load Image\\"\\n }\\n },\\n \\"33\\": {\\n \\"inputs\\": {\\n \\"image\\": \\"https://replicate.delivery/pbxt/KFNaudqUV40O5ua2X6F52W7uw7dCkAn8bPTczl7mzZWBbgKY/Screenshot%202024-01-18%20at%2009.44.50.png\\",\\n \\"upload\\": \\"image\\"\\n },\\n \\"class_type\\": \\"LoadImage\\",\\n \\"_meta\\": {\\n \\"title\\": \\"Load Image\\"\\n }\\n },\\n \\"34\\": {\\n \\"inputs\\": {\\n \\"images\\": [\\n \\"47\\",\\n 0\\n ]\\n },\\n \\"class_type\\": \\"PreviewImage\\",\\n \\"_meta\\": {\\n \\"title\\": \\"Preview Image\\"\\n }\\n },\\n \\"38\\": {\\n \\"inputs\\": {\\n \\"interpolation\\": \\"LANCZOS\\",\\n \\"crop_position\\": \\"top\\",\\n \\"sharpening\\": 0,\\n \\"image\\": [\\n \\"32\\",\\n 0\\n ]\\n },\\n \\"class_type\\": \\"PrepImageForClipVision\\",\\n \\"_meta\\": {\\n \\"title\\": \\"Prepare Image For Clip Vision\\"\\n }\\n },\\n \\"39\\": {\\n \\"inputs\\": {\\n \\"interpolation\\": \\"LANCZOS\\",\\n \\"crop_position\\": \\"top\\",\\n \\"sharpening\\": 0,\\n \\"image\\": [\\n \\"33\\",\\n 0\\n ]\\n },\\n \\"class_type\\": \\"PrepImageForClipVision\\",\\n \\"_meta\\": {\\n \\"title\\": \\"Prepare Image For Clip Vision\\"\\n }\\n },\\n \\"42\\": {\\n \\"inputs\\": {\\n \\"image1\\": [\\n \\"38\\",\\n 0\\n ],\\n \\"image2\\": [\\n \\"39\\",\\n 0\\n ]\\n },\\n \\"class_type\\": \\"ImageBatch\\",\\n \\"_meta\\": {\\n \\"title\\": \\"Batch Images\\"\\n }\\n },\\n \\"45\\": {\\n \\"inputs\\": {\\n \\"image\\": \\"https://replicate.delivery/pbxt/KFNauL1WWGAsKYtrxKwCP4wvv66ecsYIepNikgMRe7vVR58q/Screenshot%202024-01-18%20at%2009.45.06.png\\",\\n \\"upload\\": \\"image\\"\\n },\\n \\"class_type\\": \\"LoadImage\\",\\n \\"_meta\\": {\\n \\"title\\": \\"Load Image\\"\\n }\\n },\\n \\"46\\": {\\n \\"inputs\\": {\\n \\"interpolation\\": \\"LANCZOS\\",\\n \\"crop_position\\": \\"top\\",\\n \\"sharpening\\": 0,\\n \\"image\\": [\\n \\"45\\",\\n 0\\n ]\\n },\\n \\"class_type\\": \\"PrepImageForClipVision\\",\\n \\"_meta\\": {\\n \\"title\\": \\"Prepare Image For Clip Vision\\"\\n }\\n },\\n \\"47\\": {\\n \\"inputs\\": {\\n \\"image1\\": [\\n \\"42\\",\\n 0\\n ],\\n \\"image2\\": [\\n \\"46\\",\\n 0\\n ]\\n },\\n \\"class_type\\": \\"ImageBatch\\",\\n \\"_meta\\": {\\n \\"title\\": \\"Batch Images\\"\\n }\\n },\\n \\"48\\": {\\n \\"inputs\\": {\\n \\"image1\\": [\\n \\"31\\",\\n 0\\n ],\\n \\"image2\\": [\\n \\"45\\",\\n 0\\n ]\\n },\\n \\"class_type\\": \\"ImageBatch\\",\\n \\"_meta\\": {\\n \\"title\\": \\"Batch Images\\"\\n }\\n },\\n \\"53\\": {\\n \\"inputs\\": {\\n \\"lora_name\\": \\"photomaker-v1.bin\\",\\n \\"strength_model\\": 1,\\n \\"model\\": [\\n \\"4\\",\\n 0\\n ]\\n },\\n \\"class_type\\": \\"LoraLoaderModelOnly\\",\\n \\"_meta\\": {\\n \\"title\\": \\"LoraLoaderModelOnly\\"\\n }\\n },\\n \\"54\\": {\\n \\"inputs\\": {\\n \\"trigger_word\\": \\"img\\",\\n \\"text\\": [\\n \\"70\\",\\n 0\\n ],\\n \\"clip\\": [\\n \\"4\\",\\n 1\\n ],\\n \\"photomaker\\": [\\n \\"56\\",\\n 0\\n ],\\n \\"image\\": [\\n \\"47\\",\\n 0\\n ]\\n },\\n \\"class_type\\": \\"PhotoMakerEncode\\",\\n \\"_meta\\": {\\n \\"title\\": \\"PhotoMaker Encode\\"\\n }\\n },\\n \\"56\\": {\\n \\"inputs\\": {\\n \\"name\\": \\"photomaker-v1.bin\\"\\n },\\n \\"class_type\\": \\"PhotoMakerLoader\\",\\n \\"_meta\\": {\\n \\"title\\": \\"Load PhotoMaker\\"\\n }\\n },\\n \\"57\\": {\\n \\"inputs\\": {\\n \\"path\\": \\"\\",\\n \\"interpolation\\": \\"lanczos\\",\\n \\"crop_position\\": \\"center\\"\\n },\\n \\"class_type\\": \\"PrepImagesForClipVisionFromPath\\",\\n \\"_meta\\": {\\n \\"title\\": \\"Prepare Images For ClipVision From Path\\"\\n }\\n },\\n \\"59\\": {\\n \\"inputs\\": {\\n \\"conditioning_1\\": [\\n \\"60\\",\\n 0\\n ],\\n \\"conditioning_2\\": [\\n \\"62\\",\\n 0\\n ]\\n },\\n \\"class_type\\": \\"ConditioningCombine\\",\\n \\"_meta\\": {\\n \\"title\\": \\"Conditioning (Combine)\\"\\n }\\n },\\n \\"60\\": {\\n \\"inputs\\": {\\n \\"start\\": 0,\\n \\"end\\": 0.5,\\n \\"conditioning\\": [\\n \\"6\\",\\n 0\\n ]\\n },\\n \\"class_type\\": \\"ConditioningSetTimestepRange\\",\\n \\"_meta\\": {\\n \\"title\\": \\"ConditioningSetTimestepRange\\"\\n }\\n },\\n \\"62\\": {\\n \\"inputs\\": {\\n \\"start\\": 0.5,\\n \\"end\\": 1,\\n \\"conditioning\\": [\\n \\"54\\",\\n 0\\n ]\\n },\\n \\"class_type\\": \\"ConditioningSetTimestepRange\\",\\n \\"_meta\\": {\\n \\"title\\": \\"ConditioningSetTimestepRange\\"\\n }\\n },\\n \\"63\\": {\\n \\"inputs\\": {\\n \\"seed\\": 816687600925376,\\n \\"steps\\": 20,\\n \\"cfg\\": 5,\\n \\"sampler_name\\": \\"euler\\",\\n \\"scheduler\\": \\"normal\\",\\n \\"denoise\\": 1,\\n \\"model\\": [\\n \\"53\\",\\n 0\\n ],\\n \\"positive\\": [\\n \\"59\\",\\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 \\"65\\": {\\n \\"inputs\\": {\\n \\"samples\\": [\\n \\"63\\",\\n 0\\n ],\\n \\"vae\\": [\\n \\"4\\",\\n 2\\n ]\\n },\\n \\"class_type\\": \\"VAEDecode\\",\\n \\"_meta\\": {\\n \\"title\\": \\"VAE Decode\\"\\n }\\n },\\n \\"67\\": {\\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 \\"68\\": {\\n \\"inputs\\": {\\n \\"filename_prefix\\": \\"ComfyUI\\",\\n \\"images\\": [\\n \\"26\\",\\n 0\\n ]\\n },\\n \\"class_type\\": \\"SaveImage\\",\\n \\"_meta\\": {\\n \\"title\\": \\"Save Image\\"\\n }\\n },\\n \\"69\\": {\\n \\"inputs\\": {\\n \\"filename_prefix\\": \\"ComfyUI\\",\\n \\"images\\": [\\n \\"65\\",\\n 0\\n ]\\n },\\n \\"class_type\\": \\"SaveImage\\",\\n \\"_meta\\": {\\n \\"title\\": \\"Save Image\\"\\n }\\n },\\n \\"70\\": {\\n \\"inputs\\": {\\n \\"style_name\\": \\"Photographic (Default)\\",\\n \\"positive\\": \\"photo of a man img, high quality, film grain\\",\\n \\"negative\\": \\"asymmetry, worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch), open mouth\\"\\n },\\n \\"class_type\\": \\"PhotoMakerStyles\\",\\n \\"_meta\\": {\\n \\"title\\": \\"Apply PhotoMaker Style\\"\\n }\\n },\\n \\"72\\": {\\n \\"inputs\\": {\\n \\"value\\": \\"\\"\\n },\\n \\"class_type\\": \\"String\\",\\n \\"_meta\\": {\\n \\"title\\": \\"String\\"\\n }\\n }\\n}"' \
-i 'output_quality=95' \
-i 'randomise_seeds=true' \
-i 'force_reset_cache=false' \
-i 'return_temp_files=false'
To learn more, take a look at the Cog documentation.
Run this to download the model and run it in your local environment:
docker run -d -p 5000:5000 --gpus=all r8.im/fofr/any-comfyui-workflow@sha256:8d7883b5a9e7968b4c85dd59c8b4e87351f4a04ac390a426b3b0421e05596e4c
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "output_format": "webp", "workflow_json": "{\\n \\"3\\": {\\n \\"inputs\\": {\\n \\"seed\\": 816687600925376,\\n \\"steps\\": 20,\\n \\"cfg\\": 5,\\n \\"sampler_name\\": \\"euler\\",\\n \\"scheduler\\": \\"normal\\",\\n \\"denoise\\": 1,\\n \\"model\\": [\\n \\"53\\",\\n 0\\n ],\\n \\"positive\\": [\\n \\"54\\",\\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\\": \\"RealVisXL_V3.0.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\\": [\\n \\"29\\",\\n 0\\n ],\\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\\": [\\n \\"70\\",\\n 1\\n ],\\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 \\"20\\": {\\n \\"inputs\\": {\\n \\"add_noise\\": \\"enable\\",\\n \\"noise_seed\\": 816687600925376,\\n \\"steps\\": 20,\\n \\"cfg\\": 5,\\n \\"sampler_name\\": \\"euler\\",\\n \\"scheduler\\": \\"normal\\",\\n \\"start_at_step\\": 0,\\n \\"end_at_step\\": 10,\\n \\"return_with_leftover_noise\\": \\"enable\\",\\n \\"model\\": [\\n \\"53\\",\\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\\": \\"KSamplerAdvanced\\",\\n \\"_meta\\": {\\n \\"title\\": \\"KSampler (Advanced)\\"\\n }\\n },\\n \\"21\\": {\\n \\"inputs\\": {\\n \\"add_noise\\": \\"disable\\",\\n \\"noise_seed\\": 816687600925376,\\n \\"steps\\": 20,\\n \\"cfg\\": 5,\\n \\"sampler_name\\": \\"euler\\",\\n \\"scheduler\\": \\"normal\\",\\n \\"start_at_step\\": 10,\\n \\"end_at_step\\": 10000,\\n \\"return_with_leftover_noise\\": \\"disable\\",\\n \\"model\\": [\\n \\"53\\",\\n 0\\n ],\\n \\"positive\\": [\\n \\"54\\",\\n 0\\n ],\\n \\"negative\\": [\\n \\"7\\",\\n 0\\n ],\\n \\"latent_image\\": [\\n \\"20\\",\\n 0\\n ]\\n },\\n \\"class_type\\": \\"KSamplerAdvanced\\",\\n \\"_meta\\": {\\n \\"title\\": \\"KSampler (Advanced)\\"\\n }\\n },\\n \\"26\\": {\\n \\"inputs\\": {\\n \\"samples\\": [\\n \\"21\\",\\n 0\\n ],\\n \\"vae\\": [\\n \\"4\\",\\n 2\\n ]\\n },\\n \\"class_type\\": \\"VAEDecode\\",\\n \\"_meta\\": {\\n \\"title\\": \\"VAE Decode\\"\\n }\\n },\\n \\"29\\": {\\n \\"inputs\\": {\\n \\"action\\": \\"replace\\",\\n \\"tidy_tags\\": \\"no\\",\\n \\"text_a\\": [\\n \\"70\\",\\n 0\\n ],\\n \\"text_b\\": \\"/ img/\\",\\n \\"text_c\\": \\"\\"\\n },\\n \\"class_type\\": \\"StringFunction|pysssss\\",\\n \\"_meta\\": {\\n \\"title\\": \\"String Function š\\"\\n }\\n },\\n \\"31\\": {\\n \\"inputs\\": {\\n \\"image1\\": [\\n \\"32\\",\\n 0\\n ],\\n \\"image2\\": [\\n \\"33\\",\\n 0\\n ]\\n },\\n \\"class_type\\": \\"ImageBatch\\",\\n \\"_meta\\": {\\n \\"title\\": \\"Batch Images\\"\\n }\\n },\\n \\"32\\": {\\n \\"inputs\\": {\\n \\"image\\": \\"https://replicate.delivery/pbxt/KFNauNDOaImWQhgoxtVSVCvBg5nk32c2x6CdclmSOGm8m5e0/Screenshot%202024-01-18%20at%2009.44.44.png\\",\\n \\"upload\\": \\"image\\"\\n },\\n \\"class_type\\": \\"LoadImage\\",\\n \\"_meta\\": {\\n \\"title\\": \\"Load Image\\"\\n }\\n },\\n \\"33\\": {\\n \\"inputs\\": {\\n \\"image\\": \\"https://replicate.delivery/pbxt/KFNaudqUV40O5ua2X6F52W7uw7dCkAn8bPTczl7mzZWBbgKY/Screenshot%202024-01-18%20at%2009.44.50.png\\",\\n \\"upload\\": \\"image\\"\\n },\\n \\"class_type\\": \\"LoadImage\\",\\n \\"_meta\\": {\\n \\"title\\": \\"Load Image\\"\\n }\\n },\\n \\"34\\": {\\n \\"inputs\\": {\\n \\"images\\": [\\n \\"47\\",\\n 0\\n ]\\n },\\n \\"class_type\\": \\"PreviewImage\\",\\n \\"_meta\\": {\\n \\"title\\": \\"Preview Image\\"\\n }\\n },\\n \\"38\\": {\\n \\"inputs\\": {\\n \\"interpolation\\": \\"LANCZOS\\",\\n \\"crop_position\\": \\"top\\",\\n \\"sharpening\\": 0,\\n \\"image\\": [\\n \\"32\\",\\n 0\\n ]\\n },\\n \\"class_type\\": \\"PrepImageForClipVision\\",\\n \\"_meta\\": {\\n \\"title\\": \\"Prepare Image For Clip Vision\\"\\n }\\n },\\n \\"39\\": {\\n \\"inputs\\": {\\n \\"interpolation\\": \\"LANCZOS\\",\\n \\"crop_position\\": \\"top\\",\\n \\"sharpening\\": 0,\\n \\"image\\": [\\n \\"33\\",\\n 0\\n ]\\n },\\n \\"class_type\\": \\"PrepImageForClipVision\\",\\n \\"_meta\\": {\\n \\"title\\": \\"Prepare Image For Clip Vision\\"\\n }\\n },\\n \\"42\\": {\\n \\"inputs\\": {\\n \\"image1\\": [\\n \\"38\\",\\n 0\\n ],\\n \\"image2\\": [\\n \\"39\\",\\n 0\\n ]\\n },\\n \\"class_type\\": \\"ImageBatch\\",\\n \\"_meta\\": {\\n \\"title\\": \\"Batch Images\\"\\n }\\n },\\n \\"45\\": {\\n \\"inputs\\": {\\n \\"image\\": \\"https://replicate.delivery/pbxt/KFNauL1WWGAsKYtrxKwCP4wvv66ecsYIepNikgMRe7vVR58q/Screenshot%202024-01-18%20at%2009.45.06.png\\",\\n \\"upload\\": \\"image\\"\\n },\\n \\"class_type\\": \\"LoadImage\\",\\n \\"_meta\\": {\\n \\"title\\": \\"Load Image\\"\\n }\\n },\\n \\"46\\": {\\n \\"inputs\\": {\\n \\"interpolation\\": \\"LANCZOS\\",\\n \\"crop_position\\": \\"top\\",\\n \\"sharpening\\": 0,\\n \\"image\\": [\\n \\"45\\",\\n 0\\n ]\\n },\\n \\"class_type\\": \\"PrepImageForClipVision\\",\\n \\"_meta\\": {\\n \\"title\\": \\"Prepare Image For Clip Vision\\"\\n }\\n },\\n \\"47\\": {\\n \\"inputs\\": {\\n \\"image1\\": [\\n \\"42\\",\\n 0\\n ],\\n \\"image2\\": [\\n \\"46\\",\\n 0\\n ]\\n },\\n \\"class_type\\": \\"ImageBatch\\",\\n \\"_meta\\": {\\n \\"title\\": \\"Batch Images\\"\\n }\\n },\\n \\"48\\": {\\n \\"inputs\\": {\\n \\"image1\\": [\\n \\"31\\",\\n 0\\n ],\\n \\"image2\\": [\\n \\"45\\",\\n 0\\n ]\\n },\\n \\"class_type\\": \\"ImageBatch\\",\\n \\"_meta\\": {\\n \\"title\\": \\"Batch Images\\"\\n }\\n },\\n \\"53\\": {\\n \\"inputs\\": {\\n \\"lora_name\\": \\"photomaker-v1.bin\\",\\n \\"strength_model\\": 1,\\n \\"model\\": [\\n \\"4\\",\\n 0\\n ]\\n },\\n \\"class_type\\": \\"LoraLoaderModelOnly\\",\\n \\"_meta\\": {\\n \\"title\\": \\"LoraLoaderModelOnly\\"\\n }\\n },\\n \\"54\\": {\\n \\"inputs\\": {\\n \\"trigger_word\\": \\"img\\",\\n \\"text\\": [\\n \\"70\\",\\n 0\\n ],\\n \\"clip\\": [\\n \\"4\\",\\n 1\\n ],\\n \\"photomaker\\": [\\n \\"56\\",\\n 0\\n ],\\n \\"image\\": [\\n \\"47\\",\\n 0\\n ]\\n },\\n \\"class_type\\": \\"PhotoMakerEncode\\",\\n \\"_meta\\": {\\n \\"title\\": \\"PhotoMaker Encode\\"\\n }\\n },\\n \\"56\\": {\\n \\"inputs\\": {\\n \\"name\\": \\"photomaker-v1.bin\\"\\n },\\n \\"class_type\\": \\"PhotoMakerLoader\\",\\n \\"_meta\\": {\\n \\"title\\": \\"Load PhotoMaker\\"\\n }\\n },\\n \\"57\\": {\\n \\"inputs\\": {\\n \\"path\\": \\"\\",\\n \\"interpolation\\": \\"lanczos\\",\\n \\"crop_position\\": \\"center\\"\\n },\\n \\"class_type\\": \\"PrepImagesForClipVisionFromPath\\",\\n \\"_meta\\": {\\n \\"title\\": \\"Prepare Images For ClipVision From Path\\"\\n }\\n },\\n \\"59\\": {\\n \\"inputs\\": {\\n \\"conditioning_1\\": [\\n \\"60\\",\\n 0\\n ],\\n \\"conditioning_2\\": [\\n \\"62\\",\\n 0\\n ]\\n },\\n \\"class_type\\": \\"ConditioningCombine\\",\\n \\"_meta\\": {\\n \\"title\\": \\"Conditioning (Combine)\\"\\n }\\n },\\n \\"60\\": {\\n \\"inputs\\": {\\n \\"start\\": 0,\\n \\"end\\": 0.5,\\n \\"conditioning\\": [\\n \\"6\\",\\n 0\\n ]\\n },\\n \\"class_type\\": \\"ConditioningSetTimestepRange\\",\\n \\"_meta\\": {\\n \\"title\\": \\"ConditioningSetTimestepRange\\"\\n }\\n },\\n \\"62\\": {\\n \\"inputs\\": {\\n \\"start\\": 0.5,\\n \\"end\\": 1,\\n \\"conditioning\\": [\\n \\"54\\",\\n 0\\n ]\\n },\\n \\"class_type\\": \\"ConditioningSetTimestepRange\\",\\n \\"_meta\\": {\\n \\"title\\": \\"ConditioningSetTimestepRange\\"\\n }\\n },\\n \\"63\\": {\\n \\"inputs\\": {\\n \\"seed\\": 816687600925376,\\n \\"steps\\": 20,\\n \\"cfg\\": 5,\\n \\"sampler_name\\": \\"euler\\",\\n \\"scheduler\\": \\"normal\\",\\n \\"denoise\\": 1,\\n \\"model\\": [\\n \\"53\\",\\n 0\\n ],\\n \\"positive\\": [\\n \\"59\\",\\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 \\"65\\": {\\n \\"inputs\\": {\\n \\"samples\\": [\\n \\"63\\",\\n 0\\n ],\\n \\"vae\\": [\\n \\"4\\",\\n 2\\n ]\\n },\\n \\"class_type\\": \\"VAEDecode\\",\\n \\"_meta\\": {\\n \\"title\\": \\"VAE Decode\\"\\n }\\n },\\n \\"67\\": {\\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 \\"68\\": {\\n \\"inputs\\": {\\n \\"filename_prefix\\": \\"ComfyUI\\",\\n \\"images\\": [\\n \\"26\\",\\n 0\\n ]\\n },\\n \\"class_type\\": \\"SaveImage\\",\\n \\"_meta\\": {\\n \\"title\\": \\"Save Image\\"\\n }\\n },\\n \\"69\\": {\\n \\"inputs\\": {\\n \\"filename_prefix\\": \\"ComfyUI\\",\\n \\"images\\": [\\n \\"65\\",\\n 0\\n ]\\n },\\n \\"class_type\\": \\"SaveImage\\",\\n \\"_meta\\": {\\n \\"title\\": \\"Save Image\\"\\n }\\n },\\n \\"70\\": {\\n \\"inputs\\": {\\n \\"style_name\\": \\"Photographic (Default)\\",\\n \\"positive\\": \\"photo of a man img, high quality, film grain\\",\\n \\"negative\\": \\"asymmetry, worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch), open mouth\\"\\n },\\n \\"class_type\\": \\"PhotoMakerStyles\\",\\n \\"_meta\\": {\\n \\"title\\": \\"Apply PhotoMaker Style\\"\\n }\\n },\\n \\"72\\": {\\n \\"inputs\\": {\\n \\"value\\": \\"\\"\\n },\\n \\"class_type\\": \\"String\\",\\n \\"_meta\\": {\\n \\"title\\": \\"String\\"\\n }\\n }\\n}", "output_quality": 95, "randomise_seeds": true, "force_reset_cache": false, "return_temp_files": false } }' \ http://localhost:5000/predictions
To learn more, take a look at the Cog documentation.
Add a payment method to run this model.
Each run costs approximately $0.013. Alternatively, try out our featured models for free.
By signing in, you agree to our
terms of service and privacy policy
Output
{
"completed_at": "2024-01-22T15:19:29.288347Z",
"created_at": "2024-01-22T15:19:13.803971Z",
"data_removed": false,
"error": null,
"id": "fmquundbilavgmvyswtzynbtam",
"input": {
"workflow_json": "{\n \"3\": {\n \"inputs\": {\n \"seed\": 816687600925376,\n \"steps\": 20,\n \"cfg\": 5,\n \"sampler_name\": \"euler\",\n \"scheduler\": \"normal\",\n \"denoise\": 1,\n \"model\": [\n \"53\",\n 0\n ],\n \"positive\": [\n \"54\",\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\": \"RealVisXL_V3.0.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\": [\n \"29\",\n 0\n ],\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\": [\n \"70\",\n 1\n ],\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 \"20\": {\n \"inputs\": {\n \"add_noise\": \"enable\",\n \"noise_seed\": 816687600925376,\n \"steps\": 20,\n \"cfg\": 5,\n \"sampler_name\": \"euler\",\n \"scheduler\": \"normal\",\n \"start_at_step\": 0,\n \"end_at_step\": 10,\n \"return_with_leftover_noise\": \"enable\",\n \"model\": [\n \"53\",\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\": \"KSamplerAdvanced\",\n \"_meta\": {\n \"title\": \"KSampler (Advanced)\"\n }\n },\n \"21\": {\n \"inputs\": {\n \"add_noise\": \"disable\",\n \"noise_seed\": 816687600925376,\n \"steps\": 20,\n \"cfg\": 5,\n \"sampler_name\": \"euler\",\n \"scheduler\": \"normal\",\n \"start_at_step\": 10,\n \"end_at_step\": 10000,\n \"return_with_leftover_noise\": \"disable\",\n \"model\": [\n \"53\",\n 0\n ],\n \"positive\": [\n \"54\",\n 0\n ],\n \"negative\": [\n \"7\",\n 0\n ],\n \"latent_image\": [\n \"20\",\n 0\n ]\n },\n \"class_type\": \"KSamplerAdvanced\",\n \"_meta\": {\n \"title\": \"KSampler (Advanced)\"\n }\n },\n \"26\": {\n \"inputs\": {\n \"samples\": [\n \"21\",\n 0\n ],\n \"vae\": [\n \"4\",\n 2\n ]\n },\n \"class_type\": \"VAEDecode\",\n \"_meta\": {\n \"title\": \"VAE Decode\"\n }\n },\n \"29\": {\n \"inputs\": {\n \"action\": \"replace\",\n \"tidy_tags\": \"no\",\n \"text_a\": [\n \"70\",\n 0\n ],\n \"text_b\": \"/ img/\",\n \"text_c\": \"\"\n },\n \"class_type\": \"StringFunction|pysssss\",\n \"_meta\": {\n \"title\": \"String Function š\"\n }\n },\n \"31\": {\n \"inputs\": {\n \"image1\": [\n \"32\",\n 0\n ],\n \"image2\": [\n \"33\",\n 0\n ]\n },\n \"class_type\": \"ImageBatch\",\n \"_meta\": {\n \"title\": \"Batch Images\"\n }\n },\n \"32\": {\n \"inputs\": {\n \"image\": \"https://replicate.delivery/pbxt/KFNauNDOaImWQhgoxtVSVCvBg5nk32c2x6CdclmSOGm8m5e0/Screenshot%202024-01-18%20at%2009.44.44.png\",\n \"upload\": \"image\"\n },\n \"class_type\": \"LoadImage\",\n \"_meta\": {\n \"title\": \"Load Image\"\n }\n },\n \"33\": {\n \"inputs\": {\n \"image\": \"https://replicate.delivery/pbxt/KFNaudqUV40O5ua2X6F52W7uw7dCkAn8bPTczl7mzZWBbgKY/Screenshot%202024-01-18%20at%2009.44.50.png\",\n \"upload\": \"image\"\n },\n \"class_type\": \"LoadImage\",\n \"_meta\": {\n \"title\": \"Load Image\"\n }\n },\n \"34\": {\n \"inputs\": {\n \"images\": [\n \"47\",\n 0\n ]\n },\n \"class_type\": \"PreviewImage\",\n \"_meta\": {\n \"title\": \"Preview Image\"\n }\n },\n \"38\": {\n \"inputs\": {\n \"interpolation\": \"LANCZOS\",\n \"crop_position\": \"top\",\n \"sharpening\": 0,\n \"image\": [\n \"32\",\n 0\n ]\n },\n \"class_type\": \"PrepImageForClipVision\",\n \"_meta\": {\n \"title\": \"Prepare Image For Clip Vision\"\n }\n },\n \"39\": {\n \"inputs\": {\n \"interpolation\": \"LANCZOS\",\n \"crop_position\": \"top\",\n \"sharpening\": 0,\n \"image\": [\n \"33\",\n 0\n ]\n },\n \"class_type\": \"PrepImageForClipVision\",\n \"_meta\": {\n \"title\": \"Prepare Image For Clip Vision\"\n }\n },\n \"42\": {\n \"inputs\": {\n \"image1\": [\n \"38\",\n 0\n ],\n \"image2\": [\n \"39\",\n 0\n ]\n },\n \"class_type\": \"ImageBatch\",\n \"_meta\": {\n \"title\": \"Batch Images\"\n }\n },\n \"45\": {\n \"inputs\": {\n \"image\": \"https://replicate.delivery/pbxt/KFNauL1WWGAsKYtrxKwCP4wvv66ecsYIepNikgMRe7vVR58q/Screenshot%202024-01-18%20at%2009.45.06.png\",\n \"upload\": \"image\"\n },\n \"class_type\": \"LoadImage\",\n \"_meta\": {\n \"title\": \"Load Image\"\n }\n },\n \"46\": {\n \"inputs\": {\n \"interpolation\": \"LANCZOS\",\n \"crop_position\": \"top\",\n \"sharpening\": 0,\n \"image\": [\n \"45\",\n 0\n ]\n },\n \"class_type\": \"PrepImageForClipVision\",\n \"_meta\": {\n \"title\": \"Prepare Image For Clip Vision\"\n }\n },\n \"47\": {\n \"inputs\": {\n \"image1\": [\n \"42\",\n 0\n ],\n \"image2\": [\n \"46\",\n 0\n ]\n },\n \"class_type\": \"ImageBatch\",\n \"_meta\": {\n \"title\": \"Batch Images\"\n }\n },\n \"48\": {\n \"inputs\": {\n \"image1\": [\n \"31\",\n 0\n ],\n \"image2\": [\n \"45\",\n 0\n ]\n },\n \"class_type\": \"ImageBatch\",\n \"_meta\": {\n \"title\": \"Batch Images\"\n }\n },\n \"53\": {\n \"inputs\": {\n \"lora_name\": \"photomaker-v1.bin\",\n \"strength_model\": 1,\n \"model\": [\n \"4\",\n 0\n ]\n },\n \"class_type\": \"LoraLoaderModelOnly\",\n \"_meta\": {\n \"title\": \"LoraLoaderModelOnly\"\n }\n },\n \"54\": {\n \"inputs\": {\n \"trigger_word\": \"img\",\n \"text\": [\n \"70\",\n 0\n ],\n \"clip\": [\n \"4\",\n 1\n ],\n \"photomaker\": [\n \"56\",\n 0\n ],\n \"image\": [\n \"47\",\n 0\n ]\n },\n \"class_type\": \"PhotoMakerEncode\",\n \"_meta\": {\n \"title\": \"PhotoMaker Encode\"\n }\n },\n \"56\": {\n \"inputs\": {\n \"name\": \"photomaker-v1.bin\"\n },\n \"class_type\": \"PhotoMakerLoader\",\n \"_meta\": {\n \"title\": \"Load PhotoMaker\"\n }\n },\n \"57\": {\n \"inputs\": {\n \"path\": \"\",\n \"interpolation\": \"lanczos\",\n \"crop_position\": \"center\"\n },\n \"class_type\": \"PrepImagesForClipVisionFromPath\",\n \"_meta\": {\n \"title\": \"Prepare Images For ClipVision From Path\"\n }\n },\n \"59\": {\n \"inputs\": {\n \"conditioning_1\": [\n \"60\",\n 0\n ],\n \"conditioning_2\": [\n \"62\",\n 0\n ]\n },\n \"class_type\": \"ConditioningCombine\",\n \"_meta\": {\n \"title\": \"Conditioning (Combine)\"\n }\n },\n \"60\": {\n \"inputs\": {\n \"start\": 0,\n \"end\": 0.5,\n \"conditioning\": [\n \"6\",\n 0\n ]\n },\n \"class_type\": \"ConditioningSetTimestepRange\",\n \"_meta\": {\n \"title\": \"ConditioningSetTimestepRange\"\n }\n },\n \"62\": {\n \"inputs\": {\n \"start\": 0.5,\n \"end\": 1,\n \"conditioning\": [\n \"54\",\n 0\n ]\n },\n \"class_type\": \"ConditioningSetTimestepRange\",\n \"_meta\": {\n \"title\": \"ConditioningSetTimestepRange\"\n }\n },\n \"63\": {\n \"inputs\": {\n \"seed\": 816687600925376,\n \"steps\": 20,\n \"cfg\": 5,\n \"sampler_name\": \"euler\",\n \"scheduler\": \"normal\",\n \"denoise\": 1,\n \"model\": [\n \"53\",\n 0\n ],\n \"positive\": [\n \"59\",\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 \"65\": {\n \"inputs\": {\n \"samples\": [\n \"63\",\n 0\n ],\n \"vae\": [\n \"4\",\n 2\n ]\n },\n \"class_type\": \"VAEDecode\",\n \"_meta\": {\n \"title\": \"VAE Decode\"\n }\n },\n \"67\": {\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 \"68\": {\n \"inputs\": {\n \"filename_prefix\": \"ComfyUI\",\n \"images\": [\n \"26\",\n 0\n ]\n },\n \"class_type\": \"SaveImage\",\n \"_meta\": {\n \"title\": \"Save Image\"\n }\n },\n \"69\": {\n \"inputs\": {\n \"filename_prefix\": \"ComfyUI\",\n \"images\": [\n \"65\",\n 0\n ]\n },\n \"class_type\": \"SaveImage\",\n \"_meta\": {\n \"title\": \"Save Image\"\n }\n },\n \"70\": {\n \"inputs\": {\n \"style_name\": \"Photographic (Default)\",\n \"positive\": \"photo of a man img, high quality, film grain\",\n \"negative\": \"asymmetry, worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch), open mouth\"\n },\n \"class_type\": \"PhotoMakerStyles\",\n \"_meta\": {\n \"title\": \"Apply PhotoMaker Style\"\n }\n },\n \"72\": {\n \"inputs\": {\n \"value\": \"\"\n },\n \"class_type\": \"String\",\n \"_meta\": {\n \"title\": \"String\"\n }\n }\n}",
"randomise_seeds": true,
"return_temp_files": false
},
"logs": "Checking weights\nā
photomaker-v1.bin\nā
RealVisXL_V3.0.safetensors\n====================================\nChecking inputs\nDownloading https://replicate.delivery/pbxt/KFNauNDOaImWQhgoxtVSVCvBg5nk32c2x6CdclmSOGm8m5e0/Screenshot%202024-01-18%20at%2009.44.44.png to /tmp/inputs/Screenshot%202024-01-18%20at%2009.44.44.png\nā
/tmp/inputs/Screenshot%202024-01-18%20at%2009.44.44.png\nDownloading https://replicate.delivery/pbxt/KFNaudqUV40O5ua2X6F52W7uw7dCkAn8bPTczl7mzZWBbgKY/Screenshot%202024-01-18%20at%2009.44.50.png to /tmp/inputs/Screenshot%202024-01-18%20at%2009.44.50.png\nā
/tmp/inputs/Screenshot%202024-01-18%20at%2009.44.50.png\nDownloading https://replicate.delivery/pbxt/KFNauL1WWGAsKYtrxKwCP4wvv66ecsYIepNikgMRe7vVR58q/Screenshot%202024-01-18%20at%2009.45.06.png to /tmp/inputs/Screenshot%202024-01-18%20at%2009.45.06.png\nā
/tmp/inputs/Screenshot%202024-01-18%20at%2009.45.06.png\n====================================\nRandomising seed to 1060624196\nRandomising noise_seed to 3974953430\nRandomising noise_seed to 1779374291\nRandomising seed to 4027554927\nRunning workflow\ngot prompt\nExecuting node 3, title: KSampler, class type: KSampler\n 0%| | 0/20 [00:00<?, ?it/s]\n 10%|ā | 2/20 [00:00<00:02, 7.09it/s]\n 15%|āā | 3/20 [00:00<00:02, 6.08it/s]\n 20%|āā | 4/20 [00:00<00:02, 5.66it/s]\n 25%|āāā | 5/20 [00:00<00:02, 5.44it/s]\n 30%|āāā | 6/20 [00:01<00:02, 5.27it/s]\n 35%|āāāā | 7/20 [00:01<00:02, 5.19it/s]\n 40%|āāāā | 8/20 [00:01<00:02, 5.13it/s]\n 45%|āāāāā | 9/20 [00:01<00:02, 5.10it/s]\n 50%|āāāāā | 10/20 [00:01<00:01, 5.08it/s]\n 55%|āāāāāā | 11/20 [00:02<00:01, 5.06it/s]\n 60%|āāāāāā | 12/20 [00:02<00:01, 5.04it/s]\n 65%|āāāāāāā | 13/20 [00:02<00:01, 5.03it/s]\n 70%|āāāāāāā | 14/20 [00:02<00:01, 5.02it/s]\n 75%|āāāāāāāā | 15/20 [00:02<00:00, 5.05it/s]\n 80%|āāāāāāāā | 16/20 [00:03<00:00, 5.06it/s]\n 85%|āāāāāāāāā | 17/20 [00:03<00:00, 5.06it/s]\n 90%|āāāāāāāāā | 18/20 [00:03<00:00, 5.06it/s]\n 95%|āāāāāāāāāā| 19/20 [00:03<00:00, 5.06it/s]\n100%|āāāāāāāāāā| 20/20 [00:03<00:00, 5.06it/s]\n100%|āāāāāāāāāā| 20/20 [00:03<00:00, 5.19it/s]\nExecuting node 8, title: VAE Decode, class type: VAEDecode\nExecuting node 67, title: Save Image, class type: SaveImage\nExecuting node 63, title: KSampler, class type: KSampler\n 0%| | 0/20 [00:00<?, ?it/s]\n 10%|ā | 2/20 [00:00<00:02, 7.10it/s]\n 15%|āā | 3/20 [00:00<00:02, 6.10it/s]\n 20%|āā | 4/20 [00:00<00:02, 5.68it/s]\n 25%|āāā | 5/20 [00:00<00:02, 5.46it/s]\n 30%|āāā | 6/20 [00:01<00:02, 5.29it/s]\n 35%|āāāā | 7/20 [00:01<00:02, 5.22it/s]\n 40%|āāāā | 8/20 [00:01<00:02, 5.17it/s]\n 45%|āāāāā | 9/20 [00:01<00:02, 5.14it/s]\n 50%|āāāāā | 10/20 [00:01<00:01, 5.12it/s]\n 55%|āāāāāā | 11/20 [00:02<00:01, 5.09it/s]\n 60%|āāāāāā | 12/20 [00:02<00:01, 5.08it/s]\n 65%|āāāāāāā | 13/20 [00:02<00:01, 5.07it/s]\n 70%|āāāāāāā | 14/20 [00:02<00:01, 5.07it/s]\n 75%|āāāāāāāā | 15/20 [00:02<00:00, 5.06it/s]\n 80%|āāāāāāāā | 16/20 [00:03<00:00, 5.06it/s]\n 85%|āāāāāāāāā | 17/20 [00:03<00:00, 5.06it/s]\n 90%|āāāāāāāāā | 18/20 [00:03<00:00, 5.06it/s]\n 95%|āāāāāāāāāā| 19/20 [00:03<00:00, 5.06it/s]\n100%|āāāāāāāāāā| 20/20 [00:03<00:00, 5.05it/s]\n100%|āāāāāāāāāā| 20/20 [00:03<00:00, 5.21it/s]\nExecuting node 65, title: VAE Decode, class type: VAEDecode\nExecuting node 69, title: Save Image, class type: SaveImage\nExecuting node 20, title: KSampler (Advanced), class type: KSamplerAdvanced\n 0%| | 0/10 [00:00<?, ?it/s]\n 20%|āā | 2/10 [00:00<00:01, 7.09it/s]\n 30%|āāā | 3/10 [00:00<00:01, 6.08it/s]\n 40%|āāāā | 4/10 [00:00<00:01, 5.65it/s]\n 50%|āāāāā | 5/10 [00:00<00:00, 5.43it/s]\n 60%|āāāāāā | 6/10 [00:01<00:00, 5.29it/s]\n 70%|āāāāāāā | 7/10 [00:01<00:00, 5.22it/s]\n 80%|āāāāāāāā | 8/10 [00:01<00:00, 5.16it/s]\n 90%|āāāāāāāāā | 9/10 [00:01<00:00, 5.13it/s]\n100%|āāāāāāāāāā| 10/10 [00:01<00:00, 5.11it/s]\n100%|āāāāāāāāāā| 10/10 [00:01<00:00, 5.36it/s]\nExecuting node 21, title: KSampler (Advanced), class type: KSamplerAdvanced\n 0%| | 0/10 [00:00<?, ?it/s]\n 20%|āā | 2/10 [00:00<00:01, 7.05it/s]\n 30%|āāā | 3/10 [00:00<00:01, 6.06it/s]\n 40%|āāāā | 4/10 [00:00<00:01, 5.64it/s]\n 50%|āāāāā | 5/10 [00:00<00:00, 5.42it/s]\n 60%|āāāāāā | 6/10 [00:01<00:00, 5.29it/s]\n 70%|āāāāāāā | 7/10 [00:01<00:00, 5.21it/s]\n 80%|āāāāāāāā | 8/10 [00:01<00:00, 5.16it/s]\n 90%|āāāāāāāāā | 9/10 [00:01<00:00, 5.12it/s]\n100%|āāāāāāāāāā| 10/10 [00:01<00:00, 5.09it/s]\n100%|āāāāāāāāāā| 10/10 [00:01<00:00, 5.35it/s]\nExecuting node 26, title: VAE Decode, class type: VAEDecode\nExecuting node 68, title: Save Image, class type: SaveImage\nPrompt executed in 13.12 seconds\noutputs: {'29': {'text': ['cinematic photo photo of a man, high quality, film grain . 35mm photograph, film, bokeh, professional, 4k, highly detailed']}, '34': {'images': [{'filename': 'ComfyUI_temp_cuazv_00001_.png', 'subfolder': '', 'type': 'temp'}, {'filename': 'ComfyUI_temp_cuazv_00002_.png', 'subfolder': '', 'type': 'temp'}, {'filename': 'ComfyUI_temp_cuazv_00003_.png', 'subfolder': '', 'type': 'temp'}]}, '67': {'images': [{'filename': 'ComfyUI_00001_.png', 'subfolder': '', 'type': 'output'}]}, '69': {'images': [{'filename': 'ComfyUI_00002_.png', 'subfolder': '', 'type': 'output'}]}, '68': {'images': [{'filename': 'ComfyUI_00003_.png', 'subfolder': '', 'type': 'output'}]}}\n====================================\nContents of /tmp/outputs:\nComfyUI_00001_.png\nComfyUI_00002_.png\nComfyUI_00003_.png",
"metrics": {
"predict_time": 15.472815,
"total_time": 15.484376
},
"output": [
"https://replicate.delivery/pbxt/YbeAK6ZmjvSsb6Dkf0WSQLvtnpeAT6fRzVDC5tKdYceefyhHJA/ComfyUI_00001_.png",
"https://replicate.delivery/pbxt/lstKJyqpGHoOGB5KTrxhYJjU1lOygaf759lkvveiOzTAmDPSA/ComfyUI_00002_.png",
"https://replicate.delivery/pbxt/MyRv4zkLcZ7jM1QJUZEa7wFMrckKVfPyOSkXJ5age37AmDPSA/ComfyUI_00003_.png"
],
"started_at": "2024-01-22T15:19:13.815532Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/fmquundbilavgmvyswtzynbtam",
"cancel": "https://api.replicate.com/v1/predictions/fmquundbilavgmvyswtzynbtam/cancel"
},
"version": "b1e167ff5cd892acfb2a2698588d899360911b7569503789f558cc818189e7ff"
}
Checking weights
ā
photomaker-v1.bin
ā
RealVisXL_V3.0.safetensors
====================================
Checking inputs
Downloading https://replicate.delivery/pbxt/KFNauNDOaImWQhgoxtVSVCvBg5nk32c2x6CdclmSOGm8m5e0/Screenshot%202024-01-18%20at%2009.44.44.png to /tmp/inputs/Screenshot%202024-01-18%20at%2009.44.44.png
ā
/tmp/inputs/Screenshot%202024-01-18%20at%2009.44.44.png
Downloading https://replicate.delivery/pbxt/KFNaudqUV40O5ua2X6F52W7uw7dCkAn8bPTczl7mzZWBbgKY/Screenshot%202024-01-18%20at%2009.44.50.png to /tmp/inputs/Screenshot%202024-01-18%20at%2009.44.50.png
ā
/tmp/inputs/Screenshot%202024-01-18%20at%2009.44.50.png
Downloading https://replicate.delivery/pbxt/KFNauL1WWGAsKYtrxKwCP4wvv66ecsYIepNikgMRe7vVR58q/Screenshot%202024-01-18%20at%2009.45.06.png to /tmp/inputs/Screenshot%202024-01-18%20at%2009.45.06.png
ā
/tmp/inputs/Screenshot%202024-01-18%20at%2009.45.06.png
====================================
Randomising seed to 1060624196
Randomising noise_seed to 3974953430
Randomising noise_seed to 1779374291
Randomising seed to 4027554927
Running workflow
got prompt
Executing node 3, title: KSampler, class type: KSampler
0%| | 0/20 [00:00<?, ?it/s]
10%|ā | 2/20 [00:00<00:02, 7.09it/s]
15%|āā | 3/20 [00:00<00:02, 6.08it/s]
20%|āā | 4/20 [00:00<00:02, 5.66it/s]
25%|āāā | 5/20 [00:00<00:02, 5.44it/s]
30%|āāā | 6/20 [00:01<00:02, 5.27it/s]
35%|āāāā | 7/20 [00:01<00:02, 5.19it/s]
40%|āāāā | 8/20 [00:01<00:02, 5.13it/s]
45%|āāāāā | 9/20 [00:01<00:02, 5.10it/s]
50%|āāāāā | 10/20 [00:01<00:01, 5.08it/s]
55%|āāāāāā | 11/20 [00:02<00:01, 5.06it/s]
60%|āāāāāā | 12/20 [00:02<00:01, 5.04it/s]
65%|āāāāāāā | 13/20 [00:02<00:01, 5.03it/s]
70%|āāāāāāā | 14/20 [00:02<00:01, 5.02it/s]
75%|āāāāāāāā | 15/20 [00:02<00:00, 5.05it/s]
80%|āāāāāāāā | 16/20 [00:03<00:00, 5.06it/s]
85%|āāāāāāāāā | 17/20 [00:03<00:00, 5.06it/s]
90%|āāāāāāāāā | 18/20 [00:03<00:00, 5.06it/s]
95%|āāāāāāāāāā| 19/20 [00:03<00:00, 5.06it/s]
100%|āāāāāāāāāā| 20/20 [00:03<00:00, 5.06it/s]
100%|āāāāāāāāāā| 20/20 [00:03<00:00, 5.19it/s]
Executing node 8, title: VAE Decode, class type: VAEDecode
Executing node 67, title: Save Image, class type: SaveImage
Executing node 63, title: KSampler, class type: KSampler
0%| | 0/20 [00:00<?, ?it/s]
10%|ā | 2/20 [00:00<00:02, 7.10it/s]
15%|āā | 3/20 [00:00<00:02, 6.10it/s]
20%|āā | 4/20 [00:00<00:02, 5.68it/s]
25%|āāā | 5/20 [00:00<00:02, 5.46it/s]
30%|āāā | 6/20 [00:01<00:02, 5.29it/s]
35%|āāāā | 7/20 [00:01<00:02, 5.22it/s]
40%|āāāā | 8/20 [00:01<00:02, 5.17it/s]
45%|āāāāā | 9/20 [00:01<00:02, 5.14it/s]
50%|āāāāā | 10/20 [00:01<00:01, 5.12it/s]
55%|āāāāāā | 11/20 [00:02<00:01, 5.09it/s]
60%|āāāāāā | 12/20 [00:02<00:01, 5.08it/s]
65%|āāāāāāā | 13/20 [00:02<00:01, 5.07it/s]
70%|āāāāāāā | 14/20 [00:02<00:01, 5.07it/s]
75%|āāāāāāāā | 15/20 [00:02<00:00, 5.06it/s]
80%|āāāāāāāā | 16/20 [00:03<00:00, 5.06it/s]
85%|āāāāāāāāā | 17/20 [00:03<00:00, 5.06it/s]
90%|āāāāāāāāā | 18/20 [00:03<00:00, 5.06it/s]
95%|āāāāāāāāāā| 19/20 [00:03<00:00, 5.06it/s]
100%|āāāāāāāāāā| 20/20 [00:03<00:00, 5.05it/s]
100%|āāāāāāāāāā| 20/20 [00:03<00:00, 5.21it/s]
Executing node 65, title: VAE Decode, class type: VAEDecode
Executing node 69, title: Save Image, class type: SaveImage
Executing node 20, title: KSampler (Advanced), class type: KSamplerAdvanced
0%| | 0/10 [00:00<?, ?it/s]
20%|āā | 2/10 [00:00<00:01, 7.09it/s]
30%|āāā | 3/10 [00:00<00:01, 6.08it/s]
40%|āāāā | 4/10 [00:00<00:01, 5.65it/s]
50%|āāāāā | 5/10 [00:00<00:00, 5.43it/s]
60%|āāāāāā | 6/10 [00:01<00:00, 5.29it/s]
70%|āāāāāāā | 7/10 [00:01<00:00, 5.22it/s]
80%|āāāāāāāā | 8/10 [00:01<00:00, 5.16it/s]
90%|āāāāāāāāā | 9/10 [00:01<00:00, 5.13it/s]
100%|āāāāāāāāāā| 10/10 [00:01<00:00, 5.11it/s]
100%|āāāāāāāāāā| 10/10 [00:01<00:00, 5.36it/s]
Executing node 21, title: KSampler (Advanced), class type: KSamplerAdvanced
0%| | 0/10 [00:00<?, ?it/s]
20%|āā | 2/10 [00:00<00:01, 7.05it/s]
30%|āāā | 3/10 [00:00<00:01, 6.06it/s]
40%|āāāā | 4/10 [00:00<00:01, 5.64it/s]
50%|āāāāā | 5/10 [00:00<00:00, 5.42it/s]
60%|āāāāāā | 6/10 [00:01<00:00, 5.29it/s]
70%|āāāāāāā | 7/10 [00:01<00:00, 5.21it/s]
80%|āāāāāāāā | 8/10 [00:01<00:00, 5.16it/s]
90%|āāāāāāāāā | 9/10 [00:01<00:00, 5.12it/s]
100%|āāāāāāāāāā| 10/10 [00:01<00:00, 5.09it/s]
100%|āāāāāāāāāā| 10/10 [00:01<00:00, 5.35it/s]
Executing node 26, title: VAE Decode, class type: VAEDecode
Executing node 68, title: Save Image, class type: SaveImage
Prompt executed in 13.12 seconds
outputs: {'29': {'text': ['cinematic photo photo of a man, high quality, film grain . 35mm photograph, film, bokeh, professional, 4k, highly detailed']}, '34': {'images': [{'filename': 'ComfyUI_temp_cuazv_00001_.png', 'subfolder': '', 'type': 'temp'}, {'filename': 'ComfyUI_temp_cuazv_00002_.png', 'subfolder': '', 'type': 'temp'}, {'filename': 'ComfyUI_temp_cuazv_00003_.png', 'subfolder': '', 'type': 'temp'}]}, '67': {'images': [{'filename': 'ComfyUI_00001_.png', 'subfolder': '', 'type': 'output'}]}, '69': {'images': [{'filename': 'ComfyUI_00002_.png', 'subfolder': '', 'type': 'output'}]}, '68': {'images': [{'filename': 'ComfyUI_00003_.png', 'subfolder': '', 'type': 'output'}]}}
====================================
Contents of /tmp/outputs:
ComfyUI_00001_.png
ComfyUI_00002_.png
ComfyUI_00003_.png
This example was created by a different version, fofr/any-comfyui-workflow:b1e167ff.