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/KnCUmzgTYo8hrLTnxYuxa5QdgYY23UBHoJ2ayOaDLkfEHbIz/back1.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 beach",
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/KnCUmzgTYo8hrLTnxYuxa5QdgYY23UBHoJ2ayOaDLkfEHbIz/back1.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 beach",
"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/KnCUmzgTYo8hrLTnxYuxa5QdgYY23UBHoJ2ayOaDLkfEHbIz/back1.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 beach",
"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:43:56.092964Z",
"created_at": "2024-04-22T18:39:24.690000Z",
"data_removed": false,
"error": null,
"id": "f8838mre29rgj0cf0wdv1b4sgg",
"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/KnCUmzgTYo8hrLTnxYuxa5QdgYY23UBHoJ2ayOaDLkfEHbIz/back1.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 beach",
"green_negative_prompt": "anime",
"green_positive_prompt": "illustration of a blond woman",
"latent_upscale_denoise": 0.55
},
"logs": "Requested to load SD1ClipModel\nLoading 1 new model\nRequested to load CLIPVisionModelProjection\nLoading 1 new model\nRequested to load BaseModel\nLoading 1 new model\n 0%| | 0/30 [00:00<?, ?it/s]\n 3%|▎ | 1/30 [00:00<00:11, 2.43it/s]\n 7%|▋ | 2/30 [00:00<00:07, 3.70it/s]\n 10%|█ | 3/30 [00:00<00:06, 4.44it/s]\n 13%|█▎ | 4/30 [00:00<00:05, 4.91it/s]\n 17%|█▋ | 5/30 [00:01<00:04, 5.22it/s]\n 20%|██ | 6/30 [00:01<00:04, 5.41it/s]\n 23%|██▎ | 7/30 [00:01<00:04, 5.53it/s]\n 27%|██▋ | 8/30 [00:01<00:03, 5.62it/s]\n 30%|███ | 9/30 [00:01<00:03, 5.69it/s]\n 33%|███▎ | 10/30 [00:01<00:03, 5.74it/s]\n 37%|███▋ | 11/30 [00:02<00:03, 5.78it/s]\n 40%|████ | 12/30 [00:02<00:03, 5.79it/s]\n 43%|████▎ | 13/30 [00:02<00:02, 5.81it/s]\n 47%|████▋ | 14/30 [00:02<00:02, 5.82it/s]\n 50%|█████ | 15/30 [00:02<00:02, 5.84it/s]\n 53%|█████▎ | 16/30 [00:02<00:02, 5.85it/s]\n 57%|█████▋ | 17/30 [00:03<00:02, 5.83it/s]\n 60%|██████ | 18/30 [00:03<00:02, 5.83it/s]\n 63%|██████▎ | 19/30 [00:03<00:01, 5.84it/s]\n 67%|██████▋ | 20/30 [00:03<00:01, 5.84it/s]\n 70%|███████ | 21/30 [00:03<00:01, 5.83it/s]\n 73%|███████▎ | 22/30 [00:04<00:01, 5.84it/s]\n 77%|███████▋ | 23/30 [00:04<00:01, 5.84it/s]\n 80%|████████ | 24/30 [00:04<00:01, 5.81it/s]\n 83%|████████▎ | 25/30 [00:04<00:00, 5.82it/s]\n 87%|████████▋ | 26/30 [00:04<00:00, 5.83it/s]\n 90%|█████████ | 27/30 [00:04<00:00, 5.84it/s]\n 93%|█████████▎| 28/30 [00:05<00:00, 5.84it/s]\n 97%|█████████▋| 29/30 [00:05<00:00, 5.84it/s]\n100%|██████████| 30/30 [00:05<00:00, 5.80it/s]\n100%|██████████| 30/30 [00:05<00:00, 5.57it/s]\nRequested to load AutoencoderKL\nLoading 1 new model\n/root/.pyenv/versions/3.10.14/lib/python3.10/site-packages/torch/cuda/memory.py:440: FutureWarning: torch.cuda.memory_cached has been renamed to torch.cuda.memory_reserved\nwarnings.warn(\n5161091072\n3953131520\n 0%| | 0/30 [00:00<?, ?it/s]\n 3%|▎ | 1/30 [00:00<00:11, 2.49it/s]\n 7%|▋ | 2/30 [00:00<00:11, 2.48it/s]\n 10%|█ | 3/30 [00:01<00:10, 2.49it/s]\n 13%|█▎ | 4/30 [00:01<00:10, 2.49it/s]\n 17%|█▋ | 5/30 [00:02<00:10, 2.49it/s]\n 20%|██ | 6/30 [00:02<00:09, 2.50it/s]\n 23%|██▎ | 7/30 [00:02<00:09, 2.50it/s]\n 27%|██▋ | 8/30 [00:03<00:08, 2.50it/s]\n 30%|███ | 9/30 [00:03<00:08, 2.50it/s]\n 33%|███▎ | 10/30 [00:04<00:08, 2.50it/s]\n 37%|███▋ | 11/30 [00:04<00:07, 2.48it/s]\n 40%|████ | 12/30 [00:04<00:07, 2.48it/s]\n 43%|████▎ | 13/30 [00:05<00:06, 2.49it/s]\n 47%|████▋ | 14/30 [00:05<00:06, 2.49it/s]\n 50%|█████ | 15/30 [00:06<00:06, 2.49it/s]\n 53%|█████▎ | 16/30 [00:06<00:05, 2.49it/s]\n 57%|█████▋ | 17/30 [00:06<00:05, 2.49it/s]\n 60%|██████ | 18/30 [00:07<00:04, 2.49it/s]\n 63%|██████▎ | 19/30 [00:07<00:04, 2.49it/s]\n 67%|██████▋ | 20/30 [00:08<00:04, 2.49it/s]\n 70%|███████ | 21/30 [00:08<00:03, 2.49it/s]\n 73%|███████▎ | 22/30 [00:08<00:03, 2.49it/s]\n 77%|███████▋ | 23/30 [00:09<00:02, 2.49it/s]\n 80%|████████ | 24/30 [00:09<00:02, 2.48it/s]\n 83%|████████▎ | 25/30 [00:10<00:02, 2.49it/s]\n 87%|████████▋ | 26/30 [00:10<00:01, 2.49it/s]\n 90%|█████████ | 27/30 [00:10<00:01, 2.49it/s]\n 93%|█████████▎| 28/30 [00:11<00:00, 2.49it/s]\n 97%|█████████▋| 29/30 [00:11<00:00, 2.48it/s]\n100%|██████████| 30/30 [00:12<00:00, 2.48it/s]\n100%|██████████| 30/30 [00:12<00:00, 2.49it/s]\n6043992064\n4345298944",
"metrics": {
"predict_time": 24.164322,
"total_time": 271.402964
},
"output": [
"https://replicate.delivery/pbxt/vjGw2039en1wAafhLHEmfjD9z4CtTep7fQnfjvAr5Ys56hRrE/final_image.png",
"https://replicate.delivery/pbxt/HYFwa3jJwL6qL9HUxelIm2iCSvceBLfVZfE60CRoFC7uewoVC/final_up_image.png"
],
"started_at": "2024-04-22T18:43:31.928642Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/f8838mre29rgj0cf0wdv1b4sgg",
"cancel": "https://api.replicate.com/v1/predictions/f8838mre29rgj0cf0wdv1b4sgg/cancel"
},
"version": "64ad99977f7d5ae0bcb4834f5054cfa908cacbcf91c7057459059159c0f5f036"
}
Requested to load SD1ClipModel
Loading 1 new model
Requested to load CLIPVisionModelProjection
Loading 1 new model
Requested to load BaseModel
Loading 1 new model
0%| | 0/30 [00:00<?, ?it/s]
3%|▎ | 1/30 [00:00<00:11, 2.43it/s]
7%|▋ | 2/30 [00:00<00:07, 3.70it/s]
10%|█ | 3/30 [00:00<00:06, 4.44it/s]
13%|█▎ | 4/30 [00:00<00:05, 4.91it/s]
17%|█▋ | 5/30 [00:01<00:04, 5.22it/s]
20%|██ | 6/30 [00:01<00:04, 5.41it/s]
23%|██▎ | 7/30 [00:01<00:04, 5.53it/s]
27%|██▋ | 8/30 [00:01<00:03, 5.62it/s]
30%|███ | 9/30 [00:01<00:03, 5.69it/s]
33%|███▎ | 10/30 [00:01<00:03, 5.74it/s]
37%|███▋ | 11/30 [00:02<00:03, 5.78it/s]
40%|████ | 12/30 [00:02<00:03, 5.79it/s]
43%|████▎ | 13/30 [00:02<00:02, 5.81it/s]
47%|████▋ | 14/30 [00:02<00:02, 5.82it/s]
50%|█████ | 15/30 [00:02<00:02, 5.84it/s]
53%|█████▎ | 16/30 [00:02<00:02, 5.85it/s]
57%|█████▋ | 17/30 [00:03<00:02, 5.83it/s]
60%|██████ | 18/30 [00:03<00:02, 5.83it/s]
63%|██████▎ | 19/30 [00:03<00:01, 5.84it/s]
67%|██████▋ | 20/30 [00:03<00:01, 5.84it/s]
70%|███████ | 21/30 [00:03<00:01, 5.83it/s]
73%|███████▎ | 22/30 [00:04<00:01, 5.84it/s]
77%|███████▋ | 23/30 [00:04<00:01, 5.84it/s]
80%|████████ | 24/30 [00:04<00:01, 5.81it/s]
83%|████████▎ | 25/30 [00:04<00:00, 5.82it/s]
87%|████████▋ | 26/30 [00:04<00:00, 5.83it/s]
90%|█████████ | 27/30 [00:04<00:00, 5.84it/s]
93%|█████████▎| 28/30 [00:05<00:00, 5.84it/s]
97%|█████████▋| 29/30 [00:05<00:00, 5.84it/s]
100%|██████████| 30/30 [00:05<00:00, 5.80it/s]
100%|██████████| 30/30 [00:05<00:00, 5.57it/s]
Requested to load AutoencoderKL
Loading 1 new model
/root/.pyenv/versions/3.10.14/lib/python3.10/site-packages/torch/cuda/memory.py:440: FutureWarning: torch.cuda.memory_cached has been renamed to torch.cuda.memory_reserved
warnings.warn(
5161091072
3953131520
0%| | 0/30 [00:00<?, ?it/s]
3%|▎ | 1/30 [00:00<00:11, 2.49it/s]
7%|▋ | 2/30 [00:00<00:11, 2.48it/s]
10%|█ | 3/30 [00:01<00:10, 2.49it/s]
13%|█▎ | 4/30 [00:01<00:10, 2.49it/s]
17%|█▋ | 5/30 [00:02<00:10, 2.49it/s]
20%|██ | 6/30 [00:02<00:09, 2.50it/s]
23%|██▎ | 7/30 [00:02<00:09, 2.50it/s]
27%|██▋ | 8/30 [00:03<00:08, 2.50it/s]
30%|███ | 9/30 [00:03<00:08, 2.50it/s]
33%|███▎ | 10/30 [00:04<00:08, 2.50it/s]
37%|███▋ | 11/30 [00:04<00:07, 2.48it/s]
40%|████ | 12/30 [00:04<00:07, 2.48it/s]
43%|████▎ | 13/30 [00:05<00:06, 2.49it/s]
47%|████▋ | 14/30 [00:05<00:06, 2.49it/s]
50%|█████ | 15/30 [00:06<00:06, 2.49it/s]
53%|█████▎ | 16/30 [00:06<00:05, 2.49it/s]
57%|█████▋ | 17/30 [00:06<00:05, 2.49it/s]
60%|██████ | 18/30 [00:07<00:04, 2.49it/s]
63%|██████▎ | 19/30 [00:07<00:04, 2.49it/s]
67%|██████▋ | 20/30 [00:08<00:04, 2.49it/s]
70%|███████ | 21/30 [00:08<00:03, 2.49it/s]
73%|███████▎ | 22/30 [00:08<00:03, 2.49it/s]
77%|███████▋ | 23/30 [00:09<00:02, 2.49it/s]
80%|████████ | 24/30 [00:09<00:02, 2.48it/s]
83%|████████▎ | 25/30 [00:10<00:02, 2.49it/s]
87%|████████▋ | 26/30 [00:10<00:01, 2.49it/s]
90%|█████████ | 27/30 [00:10<00:01, 2.49it/s]
93%|█████████▎| 28/30 [00:11<00:00, 2.49it/s]
97%|█████████▋| 29/30 [00:11<00:00, 2.48it/s]
100%|██████████| 30/30 [00:12<00:00, 2.48it/s]
100%|██████████| 30/30 [00:12<00:00, 2.49it/s]
6043992064
4345298944