Failed to load versions. Head to the versions page to see all versions for this model.
You're looking at a specific version of this model. Jump to the model overview.
camenduru /comfyui-ipadapter-latentupscale:64ad9997
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 camenduru/comfyui-ipadapter-latentupscale using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"camenduru/comfyui-ipadapter-latentupscale:64ad99977f7d5ae0bcb4834f5054cfa908cacbcf91c7057459059159c0f5f036",
{
input: {
cfg: 7,
seed: 543543,
steps: 30,
width: 768,
height: 512,
red_part: "https://replicate.delivery/pbxt/KnCUmBJZ15hL58SBXi3Zq4hBbP63JMGZnbe2fvYXMbKrWMw0/ip2.png",
scheduler: "karras",
black_part: "https://replicate.delivery/pbxt/KnDFWvI5QOMLFHwgd4OoFFdzTypwB1RNDNCli0GywBawg95z/back.png",
color_mask: "https://replicate.delivery/pbxt/KnCUm5kj7SpIS07PI5YUoQrh0sMQhcNCTpuolCRfPYZkEW9R/color_mask.png",
green_part: "https://replicate.delivery/pbxt/KnCUm5g0IpEl3iZcWF2TkhMebfHdwHBJ44A9yiR8zfMGQheK/ip.png",
sampler_name: "dpmpp_2m",
image_denoise: 1,
latent_upscale: true,
latent_upscale_size: 1.5,
red_negative_prompt: "",
red_positive_prompt: "anime illustration of a young woman with a black jacket",
black_negative_prompt: "blurry, lowres, bad art, ill, distorted, malformed, horror",
black_positive_prompt: "closeup of two girl friends shopping in a sci-fi space station",
green_negative_prompt: "anime",
green_positive_prompt: "illustration of a blond woman",
latent_upscale_denoise: 0.55
}
}
);
// To access the file URL:
console.log(output[0].url()); //=> "http://example.com"
// To write the file to disk:
fs.writeFile("my-image.png", output[0]);
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 camenduru/comfyui-ipadapter-latentupscale using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"camenduru/comfyui-ipadapter-latentupscale:64ad99977f7d5ae0bcb4834f5054cfa908cacbcf91c7057459059159c0f5f036",
input={
"cfg": 7,
"seed": 543543,
"steps": 30,
"width": 768,
"height": 512,
"red_part": "https://replicate.delivery/pbxt/KnCUmBJZ15hL58SBXi3Zq4hBbP63JMGZnbe2fvYXMbKrWMw0/ip2.png",
"scheduler": "karras",
"black_part": "https://replicate.delivery/pbxt/KnDFWvI5QOMLFHwgd4OoFFdzTypwB1RNDNCli0GywBawg95z/back.png",
"color_mask": "https://replicate.delivery/pbxt/KnCUm5kj7SpIS07PI5YUoQrh0sMQhcNCTpuolCRfPYZkEW9R/color_mask.png",
"green_part": "https://replicate.delivery/pbxt/KnCUm5g0IpEl3iZcWF2TkhMebfHdwHBJ44A9yiR8zfMGQheK/ip.png",
"sampler_name": "dpmpp_2m",
"image_denoise": 1,
"latent_upscale": True,
"latent_upscale_size": 1.5,
"red_negative_prompt": "",
"red_positive_prompt": "anime illustration of a young woman with a black jacket",
"black_negative_prompt": "blurry, lowres, bad art, ill, distorted, malformed, horror",
"black_positive_prompt": "closeup of two girl friends shopping in a sci-fi space station",
"green_negative_prompt": "anime",
"green_positive_prompt": "illustration of a blond woman",
"latent_upscale_denoise": 0.55
}
)
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 camenduru/comfyui-ipadapter-latentupscale 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": "camenduru/comfyui-ipadapter-latentupscale:64ad99977f7d5ae0bcb4834f5054cfa908cacbcf91c7057459059159c0f5f036",
"input": {
"cfg": 7,
"seed": 543543,
"steps": 30,
"width": 768,
"height": 512,
"red_part": "https://replicate.delivery/pbxt/KnCUmBJZ15hL58SBXi3Zq4hBbP63JMGZnbe2fvYXMbKrWMw0/ip2.png",
"scheduler": "karras",
"black_part": "https://replicate.delivery/pbxt/KnDFWvI5QOMLFHwgd4OoFFdzTypwB1RNDNCli0GywBawg95z/back.png",
"color_mask": "https://replicate.delivery/pbxt/KnCUm5kj7SpIS07PI5YUoQrh0sMQhcNCTpuolCRfPYZkEW9R/color_mask.png",
"green_part": "https://replicate.delivery/pbxt/KnCUm5g0IpEl3iZcWF2TkhMebfHdwHBJ44A9yiR8zfMGQheK/ip.png",
"sampler_name": "dpmpp_2m",
"image_denoise": 1,
"latent_upscale": true,
"latent_upscale_size": 1.5,
"red_negative_prompt": "",
"red_positive_prompt": "anime illustration of a young woman with a black jacket",
"black_negative_prompt": "blurry, lowres, bad art, ill, distorted, malformed, horror",
"black_positive_prompt": "closeup of two girl friends shopping in a sci-fi space station",
"green_negative_prompt": "anime",
"green_positive_prompt": "illustration of a blond woman",
"latent_upscale_denoise": 0.55
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Add a payment method to run this model.
By signing in, you agree to our
terms of service and privacy policy
Output
{
"completed_at": "2024-04-22T18:35:24.348026Z",
"created_at": "2024-04-22T18:34:56.922000Z",
"data_removed": false,
"error": null,
"id": "dpra6jfr39rgp0cf0wbbpnmjdc",
"input": {
"cfg": 7,
"seed": 543543,
"steps": 30,
"width": 768,
"height": 512,
"red_part": "https://replicate.delivery/pbxt/KnCUmBJZ15hL58SBXi3Zq4hBbP63JMGZnbe2fvYXMbKrWMw0/ip2.png",
"scheduler": "karras",
"black_part": "https://replicate.delivery/pbxt/KnDFWvI5QOMLFHwgd4OoFFdzTypwB1RNDNCli0GywBawg95z/back.png",
"color_mask": "https://replicate.delivery/pbxt/KnCUm5kj7SpIS07PI5YUoQrh0sMQhcNCTpuolCRfPYZkEW9R/color_mask.png",
"green_part": "https://replicate.delivery/pbxt/KnCUm5g0IpEl3iZcWF2TkhMebfHdwHBJ44A9yiR8zfMGQheK/ip.png",
"sampler_name": "dpmpp_2m",
"image_denoise": 1,
"latent_upscale": true,
"latent_upscale_size": 1.5,
"red_negative_prompt": "",
"red_positive_prompt": "anime illustration of a young woman with a black jacket",
"black_negative_prompt": "blurry, lowres, bad art, ill, distorted, malformed, horror",
"black_positive_prompt": "closeup of two girl friends shopping in a sci-fi space station",
"green_negative_prompt": "anime",
"green_positive_prompt": "illustration of a blond woman",
"latent_upscale_denoise": 0.55
},
"logs": "Requested to load BaseModel\nLoading 1 new model\n 0%| | 0/30 [00:00<?, ?it/s]\n 3%|▎ | 1/30 [00:00<00:04, 5.90it/s]\n 7%|▋ | 2/30 [00:00<00:04, 5.80it/s]\n 10%|█ | 3/30 [00:00<00:04, 5.83it/s]\n 13%|█▎ | 4/30 [00:00<00:06, 4.07it/s]\n 17%|█▋ | 5/30 [00:01<00:05, 4.57it/s]\n 20%|██ | 6/30 [00:01<00:05, 4.26it/s]\n 23%|██▎ | 7/30 [00:01<00:07, 3.17it/s]\n 27%|██▋ | 8/30 [00:02<00:10, 2.03it/s]\n 30%|███ | 9/30 [00:02<00:08, 2.55it/s]\n 33%|███▎ | 10/30 [00:03<00:07, 2.55it/s]\n 37%|███▋ | 11/30 [00:03<00:07, 2.58it/s]\n 40%|████ | 12/30 [00:03<00:05, 3.11it/s]\n 43%|████▎ | 13/30 [00:04<00:06, 2.67it/s]\n 47%|████▋ | 14/30 [00:04<00:05, 3.19it/s]\n 50%|█████ | 15/30 [00:04<00:04, 3.69it/s]\n 53%|█████▎ | 16/30 [00:04<00:03, 4.15it/s]\n 57%|█████▋ | 17/30 [00:04<00:02, 4.54it/s]\n 60%|██████ | 18/30 [00:05<00:03, 3.42it/s]\n 63%|██████▎ | 19/30 [00:05<00:02, 3.90it/s]\n 67%|██████▋ | 20/30 [00:05<00:02, 4.33it/s]\n 70%|███████ | 21/30 [00:05<00:01, 4.68it/s]\n 73%|███████▎ | 22/30 [00:06<00:01, 4.80it/s]\n 77%|███████▋ | 23/30 [00:06<00:01, 3.93it/s]\n 80%|████████ | 24/30 [00:06<00:01, 4.34it/s]\n 83%|████████▎ | 25/30 [00:07<00:01, 3.61it/s]\n 87%|████████▋ | 26/30 [00:07<00:00, 4.07it/s]\n 90%|█████████ | 27/30 [00:07<00:01, 2.97it/s]\n 93%|█████████▎| 28/30 [00:07<00:00, 3.48it/s]\n 97%|█████████▋| 29/30 [00:08<00:00, 2.86it/s]\n100%|██████████| 30/30 [00:08<00:00, 3.37it/s]\n100%|██████████| 30/30 [00:08<00:00, 3.48it/s]\n5309988864\n4102029312\n 0%| | 0/30 [00:00<?, ?it/s]\n 3%|▎ | 1/30 [00:00<00:11, 2.58it/s]\n 7%|▋ | 2/30 [00:00<00:11, 2.50it/s]\n 10%|█ | 3/30 [00:01<00:10, 2.51it/s]\n 13%|█▎ | 4/30 [00:01<00:10, 2.52it/s]\n 17%|█▋ | 5/30 [00:01<00:09, 2.52it/s]\n 20%|██ | 6/30 [00:02<00:09, 2.52it/s]\n 23%|██▎ | 7/30 [00:02<00:09, 2.52it/s]\n 27%|██▋ | 8/30 [00:03<00:08, 2.52it/s]\n 30%|███ | 9/30 [00:03<00:08, 2.52it/s]\n 33%|███▎ | 10/30 [00:03<00:07, 2.52it/s]\n 37%|███▋ | 11/30 [00:04<00:07, 2.52it/s]\n 40%|████ | 12/30 [00:04<00:07, 2.52it/s]\n 43%|████▎ | 13/30 [00:05<00:06, 2.52it/s]\n 47%|████▋ | 14/30 [00:05<00:06, 2.52it/s]\n 50%|█████ | 15/30 [00:05<00:05, 2.52it/s]\n 53%|█████▎ | 16/30 [00:06<00:05, 2.52it/s]\n 57%|█████▋ | 17/30 [00:06<00:05, 2.52it/s]\n 60%|██████ | 18/30 [00:07<00:04, 2.52it/s]\n 63%|██████▎ | 19/30 [00:07<00:04, 2.52it/s]\n 67%|██████▋ | 20/30 [00:07<00:03, 2.51it/s]\n 70%|███████ | 21/30 [00:08<00:03, 2.51it/s]\n 73%|███████▎ | 22/30 [00:08<00:03, 2.51it/s]\n 77%|███████▋ | 23/30 [00:09<00:02, 2.51it/s]\n 80%|████████ | 24/30 [00:09<00:02, 2.51it/s]\n 83%|████████▎ | 25/30 [00:09<00:01, 2.51it/s]\n 87%|████████▋ | 26/30 [00:10<00:01, 2.51it/s]\n 90%|█████████ | 27/30 [00:10<00:01, 2.51it/s]\n 93%|█████████▎| 28/30 [00:11<00:00, 2.51it/s]\n 97%|█████████▋| 29/30 [00:11<00:00, 2.51it/s]\n100%|██████████| 30/30 [00:11<00:00, 2.51it/s]\n100%|██████████| 30/30 [00:11<00:00, 2.51it/s]\n5991563264\n4238344192",
"metrics": {
"predict_time": 27.384547,
"total_time": 27.426026
},
"output": [
"https://replicate.delivery/pbxt/YR8cdsdQJGp6JtTipjqx2XpiXbFSIXv5qACKWPRDEGt6fiWJA/final_image.png",
"https://replicate.delivery/pbxt/Fr3FeresdumbvUjfYY9IlFLRAKficgH06GfIgzVSA1oZ9voVC/final_up_image.png"
],
"started_at": "2024-04-22T18:34:56.963479Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/dpra6jfr39rgp0cf0wbbpnmjdc",
"cancel": "https://api.replicate.com/v1/predictions/dpra6jfr39rgp0cf0wbbpnmjdc/cancel"
},
"version": "64ad99977f7d5ae0bcb4834f5054cfa908cacbcf91c7057459059159c0f5f036"
}
Requested to load BaseModel
Loading 1 new model
0%| | 0/30 [00:00<?, ?it/s]
3%|▎ | 1/30 [00:00<00:04, 5.90it/s]
7%|▋ | 2/30 [00:00<00:04, 5.80it/s]
10%|█ | 3/30 [00:00<00:04, 5.83it/s]
13%|█▎ | 4/30 [00:00<00:06, 4.07it/s]
17%|█▋ | 5/30 [00:01<00:05, 4.57it/s]
20%|██ | 6/30 [00:01<00:05, 4.26it/s]
23%|██▎ | 7/30 [00:01<00:07, 3.17it/s]
27%|██▋ | 8/30 [00:02<00:10, 2.03it/s]
30%|███ | 9/30 [00:02<00:08, 2.55it/s]
33%|███▎ | 10/30 [00:03<00:07, 2.55it/s]
37%|███▋ | 11/30 [00:03<00:07, 2.58it/s]
40%|████ | 12/30 [00:03<00:05, 3.11it/s]
43%|████▎ | 13/30 [00:04<00:06, 2.67it/s]
47%|████▋ | 14/30 [00:04<00:05, 3.19it/s]
50%|█████ | 15/30 [00:04<00:04, 3.69it/s]
53%|█████▎ | 16/30 [00:04<00:03, 4.15it/s]
57%|█████▋ | 17/30 [00:04<00:02, 4.54it/s]
60%|██████ | 18/30 [00:05<00:03, 3.42it/s]
63%|██████▎ | 19/30 [00:05<00:02, 3.90it/s]
67%|██████▋ | 20/30 [00:05<00:02, 4.33it/s]
70%|███████ | 21/30 [00:05<00:01, 4.68it/s]
73%|███████▎ | 22/30 [00:06<00:01, 4.80it/s]
77%|███████▋ | 23/30 [00:06<00:01, 3.93it/s]
80%|████████ | 24/30 [00:06<00:01, 4.34it/s]
83%|████████▎ | 25/30 [00:07<00:01, 3.61it/s]
87%|████████▋ | 26/30 [00:07<00:00, 4.07it/s]
90%|█████████ | 27/30 [00:07<00:01, 2.97it/s]
93%|█████████▎| 28/30 [00:07<00:00, 3.48it/s]
97%|█████████▋| 29/30 [00:08<00:00, 2.86it/s]
100%|██████████| 30/30 [00:08<00:00, 3.37it/s]
100%|██████████| 30/30 [00:08<00:00, 3.48it/s]
5309988864
4102029312
0%| | 0/30 [00:00<?, ?it/s]
3%|▎ | 1/30 [00:00<00:11, 2.58it/s]
7%|▋ | 2/30 [00:00<00:11, 2.50it/s]
10%|█ | 3/30 [00:01<00:10, 2.51it/s]
13%|█▎ | 4/30 [00:01<00:10, 2.52it/s]
17%|█▋ | 5/30 [00:01<00:09, 2.52it/s]
20%|██ | 6/30 [00:02<00:09, 2.52it/s]
23%|██▎ | 7/30 [00:02<00:09, 2.52it/s]
27%|██▋ | 8/30 [00:03<00:08, 2.52it/s]
30%|███ | 9/30 [00:03<00:08, 2.52it/s]
33%|███▎ | 10/30 [00:03<00:07, 2.52it/s]
37%|███▋ | 11/30 [00:04<00:07, 2.52it/s]
40%|████ | 12/30 [00:04<00:07, 2.52it/s]
43%|████▎ | 13/30 [00:05<00:06, 2.52it/s]
47%|████▋ | 14/30 [00:05<00:06, 2.52it/s]
50%|█████ | 15/30 [00:05<00:05, 2.52it/s]
53%|█████▎ | 16/30 [00:06<00:05, 2.52it/s]
57%|█████▋ | 17/30 [00:06<00:05, 2.52it/s]
60%|██████ | 18/30 [00:07<00:04, 2.52it/s]
63%|██████▎ | 19/30 [00:07<00:04, 2.52it/s]
67%|██████▋ | 20/30 [00:07<00:03, 2.51it/s]
70%|███████ | 21/30 [00:08<00:03, 2.51it/s]
73%|███████▎ | 22/30 [00:08<00:03, 2.51it/s]
77%|███████▋ | 23/30 [00:09<00:02, 2.51it/s]
80%|████████ | 24/30 [00:09<00:02, 2.51it/s]
83%|████████▎ | 25/30 [00:09<00:01, 2.51it/s]
87%|████████▋ | 26/30 [00:10<00:01, 2.51it/s]
90%|█████████ | 27/30 [00:10<00:01, 2.51it/s]
93%|█████████▎| 28/30 [00:11<00:00, 2.51it/s]
97%|█████████▋| 29/30 [00:11<00:00, 2.51it/s]
100%|██████████| 30/30 [00:11<00:00, 2.51it/s]
100%|██████████| 30/30 [00:11<00:00, 2.51it/s]
5991563264
4238344192