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:f4ed8ed0
This version has been disabled because it consistently fails to complete setup.
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:f4ed8ed006c27bc298d827a5de1943ca829e5eb4ed2c98d83670c3dfbf9292f0",
{
input: {
cfg: 7,
seed: 1,
steps: 30,
width: 1024,
height: 512,
red_part: "https://replicate.delivery/pbxt/KnFsLXwRd0AfGEKeT2OXD0B4fm8WJXq7cbGt3us0Iw9FykxD/ca6fe870-8af9-43bd-aaaa-878a6f429cf2.webp",
scheduler: "karras",
black_part: "https://replicate.delivery/pbxt/KnFsL82mBDKxM9IoMsnxQyzRIkIwbggW5UAR0tTGa45G0ai4/KCMONmjrkLTtDY7eupD5--1--w1ew4.webp",
color_mask: "https://replicate.delivery/pbxt/KnFsLOPbbBNTY4K8xmxauMgueCKSXTOkAkLuacI9PZfGD1us/mask4.png",
green_part: "https://replicate.delivery/pbxt/KnCUm5g0IpEl3iZcWF2TkhMebfHdwHBJ44A9yiR8zfMGQheK/ip.png",
sampler_name: "dpmpp_2m",
image_denoise: 1,
red_threshold: 0.15,
latent_upscale: true,
black_threshold: 0.15,
green_threshold: 0.15,
red_image_weight: 0.7,
red_prompt_weight: 1,
black_image_weight: 0.7,
green_image_weight: 0.7,
black_prompt_weight: 1,
green_prompt_weight: 1,
latent_upscale_size: 1.5,
red_negative_prompt: "",
red_positive_prompt: "anime of a young woman with a red jacket",
black_negative_prompt: "blurry, low-res, bad art",
black_positive_prompt: "close-up of two girlfriends inside a ship.",
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:f4ed8ed006c27bc298d827a5de1943ca829e5eb4ed2c98d83670c3dfbf9292f0",
input={
"cfg": 7,
"seed": 1,
"steps": 30,
"width": 1024,
"height": 512,
"red_part": "https://replicate.delivery/pbxt/KnFsLXwRd0AfGEKeT2OXD0B4fm8WJXq7cbGt3us0Iw9FykxD/ca6fe870-8af9-43bd-aaaa-878a6f429cf2.webp",
"scheduler": "karras",
"black_part": "https://replicate.delivery/pbxt/KnFsL82mBDKxM9IoMsnxQyzRIkIwbggW5UAR0tTGa45G0ai4/KCMONmjrkLTtDY7eupD5--1--w1ew4.webp",
"color_mask": "https://replicate.delivery/pbxt/KnFsLOPbbBNTY4K8xmxauMgueCKSXTOkAkLuacI9PZfGD1us/mask4.png",
"green_part": "https://replicate.delivery/pbxt/KnCUm5g0IpEl3iZcWF2TkhMebfHdwHBJ44A9yiR8zfMGQheK/ip.png",
"sampler_name": "dpmpp_2m",
"image_denoise": 1,
"red_threshold": 0.15,
"latent_upscale": True,
"black_threshold": 0.15,
"green_threshold": 0.15,
"red_image_weight": 0.7,
"red_prompt_weight": 1,
"black_image_weight": 0.7,
"green_image_weight": 0.7,
"black_prompt_weight": 1,
"green_prompt_weight": 1,
"latent_upscale_size": 1.5,
"red_negative_prompt": "",
"red_positive_prompt": "anime of a young woman with a red jacket",
"black_negative_prompt": "blurry, low-res, bad art",
"black_positive_prompt": "close-up of two girlfriends inside a ship.",
"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:f4ed8ed006c27bc298d827a5de1943ca829e5eb4ed2c98d83670c3dfbf9292f0",
"input": {
"cfg": 7,
"seed": 1,
"steps": 30,
"width": 1024,
"height": 512,
"red_part": "https://replicate.delivery/pbxt/KnFsLXwRd0AfGEKeT2OXD0B4fm8WJXq7cbGt3us0Iw9FykxD/ca6fe870-8af9-43bd-aaaa-878a6f429cf2.webp",
"scheduler": "karras",
"black_part": "https://replicate.delivery/pbxt/KnFsL82mBDKxM9IoMsnxQyzRIkIwbggW5UAR0tTGa45G0ai4/KCMONmjrkLTtDY7eupD5--1--w1ew4.webp",
"color_mask": "https://replicate.delivery/pbxt/KnFsLOPbbBNTY4K8xmxauMgueCKSXTOkAkLuacI9PZfGD1us/mask4.png",
"green_part": "https://replicate.delivery/pbxt/KnCUm5g0IpEl3iZcWF2TkhMebfHdwHBJ44A9yiR8zfMGQheK/ip.png",
"sampler_name": "dpmpp_2m",
"image_denoise": 1,
"red_threshold": 0.15,
"latent_upscale": true,
"black_threshold": 0.15,
"green_threshold": 0.15,
"red_image_weight": 0.7,
"red_prompt_weight": 1,
"black_image_weight": 0.7,
"green_image_weight": 0.7,
"black_prompt_weight": 1,
"green_prompt_weight": 1,
"latent_upscale_size": 1.5,
"red_negative_prompt": "",
"red_positive_prompt": "anime of a young woman with a red jacket",
"black_negative_prompt": "blurry, low-res, bad art",
"black_positive_prompt": "close-up of two girlfriends inside a ship.",
"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-22T20:35:51.554777Z",
"created_at": "2024-04-22T20:35:19.023000Z",
"data_removed": false,
"error": null,
"id": "925ynghbdxrgm0cf0y2veyfy60",
"input": {
"cfg": 7,
"seed": 1,
"steps": 30,
"width": 1024,
"height": 512,
"red_part": "https://replicate.delivery/pbxt/KnFsLXwRd0AfGEKeT2OXD0B4fm8WJXq7cbGt3us0Iw9FykxD/ca6fe870-8af9-43bd-aaaa-878a6f429cf2.webp",
"scheduler": "karras",
"black_part": "https://replicate.delivery/pbxt/KnFsL82mBDKxM9IoMsnxQyzRIkIwbggW5UAR0tTGa45G0ai4/KCMONmjrkLTtDY7eupD5--1--w1ew4.webp",
"color_mask": "https://replicate.delivery/pbxt/KnFsLOPbbBNTY4K8xmxauMgueCKSXTOkAkLuacI9PZfGD1us/mask4.png",
"green_part": "https://replicate.delivery/pbxt/KnCUm5g0IpEl3iZcWF2TkhMebfHdwHBJ44A9yiR8zfMGQheK/ip.png",
"sampler_name": "dpmpp_2m",
"image_denoise": 1,
"red_threshold": 0.15,
"latent_upscale": true,
"black_threshold": 0.15,
"green_threshold": 0.15,
"red_image_weight": 0.7,
"red_prompt_weight": 1,
"black_image_weight": 0.7,
"green_image_weight": 0.7,
"black_prompt_weight": 1,
"green_prompt_weight": 1,
"latent_upscale_size": 1.5,
"red_negative_prompt": "",
"red_positive_prompt": "anime of a young woman with a red jacket",
"black_negative_prompt": "blurry, low-res, bad art",
"black_positive_prompt": "close-up of two girlfriends inside a ship.",
"green_negative_prompt": "anime",
"green_positive_prompt": "illustration of a blond woman",
"latent_upscale_denoise": 0.55
},
"logs": "\u001b[33mINFO: the IPAdapter reference image is not a square, CLIPImageProcessor will resize and crop it at the center. If the main focus of the picture is not in the middle the result might not be what you are expecting.\u001b[0m\nRequested to load BaseModel\nLoading 1 new model\n 0%| | 0/30 [00:00<?, ?it/s]\n 3%|▎ | 1/30 [00:00<00:07, 4.03it/s]\n 7%|▋ | 2/30 [00:00<00:06, 4.29it/s]\n 10%|█ | 3/30 [00:00<00:06, 4.38it/s]\n 13%|█▎ | 4/30 [00:00<00:05, 4.42it/s]\n 17%|█▋ | 5/30 [00:01<00:05, 4.41it/s]\n 20%|██ | 6/30 [00:01<00:05, 4.43it/s]\n 23%|██▎ | 7/30 [00:01<00:05, 4.44it/s]\n 27%|██▋ | 8/30 [00:01<00:04, 4.46it/s]\n 30%|███ | 9/30 [00:02<00:04, 4.46it/s]\n 33%|███▎ | 10/30 [00:02<00:04, 4.47it/s]\n 37%|███▋ | 11/30 [00:02<00:04, 4.48it/s]\n 40%|████ | 12/30 [00:02<00:04, 4.48it/s]\n 43%|████▎ | 13/30 [00:02<00:03, 4.47it/s]\n 47%|████▋ | 14/30 [00:03<00:03, 4.46it/s]\n 50%|█████ | 15/30 [00:03<00:03, 4.47it/s]\n 53%|█████▎ | 16/30 [00:03<00:03, 4.47it/s]\n 57%|█████▋ | 17/30 [00:03<00:02, 4.48it/s]\n 60%|██████ | 18/30 [00:04<00:02, 4.50it/s]\n 63%|██████▎ | 19/30 [00:04<00:02, 4.51it/s]\n 67%|██████▋ | 20/30 [00:04<00:02, 4.51it/s]\n 70%|███████ | 21/30 [00:04<00:01, 4.52it/s]\n 73%|███████▎ | 22/30 [00:04<00:01, 4.51it/s]\n 77%|███████▋ | 23/30 [00:05<00:01, 4.41it/s]\n 80%|████████ | 24/30 [00:05<00:01, 4.44it/s]\n 83%|████████▎ | 25/30 [00:05<00:01, 4.47it/s]\n 87%|████████▋ | 26/30 [00:05<00:00, 4.49it/s]\n 90%|█████████ | 27/30 [00:06<00:00, 4.50it/s]\n 93%|█████████▎| 28/30 [00:06<00:00, 4.50it/s]\n 97%|█████████▋| 29/30 [00:06<00:00, 4.51it/s]\n100%|██████████| 30/30 [00:06<00:00, 4.51it/s]\n100%|██████████| 30/30 [00:06<00:00, 4.47it/s]\n5549064192\n4250927104\n 0%| | 0/30 [00:00<?, ?it/s]\n 3%|▎ | 1/30 [00:00<00:16, 1.72it/s]\n 7%|▋ | 2/30 [00:01<00:16, 1.70it/s]\n 10%|█ | 3/30 [00:01<00:15, 1.70it/s]\n 13%|█▎ | 4/30 [00:02<00:15, 1.70it/s]\n 17%|█▋ | 5/30 [00:02<00:14, 1.70it/s]\n 20%|██ | 6/30 [00:03<00:14, 1.70it/s]\n 23%|██▎ | 7/30 [00:04<00:13, 1.70it/s]\n 27%|██▋ | 8/30 [00:04<00:12, 1.70it/s]\n 30%|███ | 9/30 [00:05<00:12, 1.70it/s]\n 33%|███▎ | 10/30 [00:05<00:11, 1.70it/s]\n 37%|███▋ | 11/30 [00:06<00:11, 1.70it/s]\n 40%|████ | 12/30 [00:07<00:10, 1.70it/s]\n 43%|████▎ | 13/30 [00:07<00:10, 1.69it/s]\n 47%|████▋ | 14/30 [00:08<00:09, 1.67it/s]\n 50%|█████ | 15/30 [00:08<00:08, 1.68it/s]\n 53%|█████▎ | 16/30 [00:09<00:08, 1.68it/s]\n 57%|█████▋ | 17/30 [00:10<00:07, 1.68it/s]\n 60%|██████ | 18/30 [00:10<00:07, 1.69it/s]\n 63%|██████▎ | 19/30 [00:11<00:06, 1.69it/s]\n 67%|██████▋ | 20/30 [00:11<00:05, 1.69it/s]\n 70%|███████ | 21/30 [00:12<00:05, 1.69it/s]\n 73%|███████▎ | 22/30 [00:13<00:04, 1.69it/s]\n 77%|███████▋ | 23/30 [00:13<00:04, 1.69it/s]\n 80%|████████ | 24/30 [00:14<00:03, 1.69it/s]\n 83%|████████▎ | 25/30 [00:14<00:02, 1.69it/s]\n 87%|████████▋ | 26/30 [00:15<00:02, 1.69it/s]\n 90%|█████████ | 27/30 [00:15<00:01, 1.69it/s]\n 93%|█████████▎| 28/30 [00:16<00:01, 1.69it/s]\n 97%|█████████▋| 29/30 [00:17<00:00, 1.69it/s]\n100%|██████████| 30/30 [00:17<00:00, 1.69it/s]\n100%|██████████| 30/30 [00:17<00:00, 1.69it/s]\n6828326912\n4561305600",
"metrics": {
"predict_time": 32.481057,
"total_time": 32.531777
},
"output": [
"https://replicate.delivery/pbxt/QAsuPU7FdH5VM9XtNyQlqNjXyvVztVHEqTGqUGveSR9S4jWJA/final_image.png",
"https://replicate.delivery/pbxt/zQae4afXFch5fpDZmR0TN0Hl23dUJUBbuhUf6H21Nx5cCfoVC/final_up_image.png"
],
"started_at": "2024-04-22T20:35:19.073720Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/925ynghbdxrgm0cf0y2veyfy60",
"cancel": "https://api.replicate.com/v1/predictions/925ynghbdxrgm0cf0y2veyfy60/cancel"
},
"version": "f4ed8ed006c27bc298d827a5de1943ca829e5eb4ed2c98d83670c3dfbf9292f0"
}
INFO: the IPAdapter reference image is not a square, CLIPImageProcessor will resize and crop it at the center. If the main focus of the picture is not in the middle the result might not be what you are expecting.
Requested to load BaseModel
Loading 1 new model
0%| | 0/30 [00:00<?, ?it/s]
3%|▎ | 1/30 [00:00<00:07, 4.03it/s]
7%|▋ | 2/30 [00:00<00:06, 4.29it/s]
10%|█ | 3/30 [00:00<00:06, 4.38it/s]
13%|█▎ | 4/30 [00:00<00:05, 4.42it/s]
17%|█▋ | 5/30 [00:01<00:05, 4.41it/s]
20%|██ | 6/30 [00:01<00:05, 4.43it/s]
23%|██▎ | 7/30 [00:01<00:05, 4.44it/s]
27%|██▋ | 8/30 [00:01<00:04, 4.46it/s]
30%|███ | 9/30 [00:02<00:04, 4.46it/s]
33%|███▎ | 10/30 [00:02<00:04, 4.47it/s]
37%|███▋ | 11/30 [00:02<00:04, 4.48it/s]
40%|████ | 12/30 [00:02<00:04, 4.48it/s]
43%|████▎ | 13/30 [00:02<00:03, 4.47it/s]
47%|████▋ | 14/30 [00:03<00:03, 4.46it/s]
50%|█████ | 15/30 [00:03<00:03, 4.47it/s]
53%|█████▎ | 16/30 [00:03<00:03, 4.47it/s]
57%|█████▋ | 17/30 [00:03<00:02, 4.48it/s]
60%|██████ | 18/30 [00:04<00:02, 4.50it/s]
63%|██████▎ | 19/30 [00:04<00:02, 4.51it/s]
67%|██████▋ | 20/30 [00:04<00:02, 4.51it/s]
70%|███████ | 21/30 [00:04<00:01, 4.52it/s]
73%|███████▎ | 22/30 [00:04<00:01, 4.51it/s]
77%|███████▋ | 23/30 [00:05<00:01, 4.41it/s]
80%|████████ | 24/30 [00:05<00:01, 4.44it/s]
83%|████████▎ | 25/30 [00:05<00:01, 4.47it/s]
87%|████████▋ | 26/30 [00:05<00:00, 4.49it/s]
90%|█████████ | 27/30 [00:06<00:00, 4.50it/s]
93%|█████████▎| 28/30 [00:06<00:00, 4.50it/s]
97%|█████████▋| 29/30 [00:06<00:00, 4.51it/s]
100%|██████████| 30/30 [00:06<00:00, 4.51it/s]
100%|██████████| 30/30 [00:06<00:00, 4.47it/s]
5549064192
4250927104
0%| | 0/30 [00:00<?, ?it/s]
3%|▎ | 1/30 [00:00<00:16, 1.72it/s]
7%|▋ | 2/30 [00:01<00:16, 1.70it/s]
10%|█ | 3/30 [00:01<00:15, 1.70it/s]
13%|█▎ | 4/30 [00:02<00:15, 1.70it/s]
17%|█▋ | 5/30 [00:02<00:14, 1.70it/s]
20%|██ | 6/30 [00:03<00:14, 1.70it/s]
23%|██▎ | 7/30 [00:04<00:13, 1.70it/s]
27%|██▋ | 8/30 [00:04<00:12, 1.70it/s]
30%|███ | 9/30 [00:05<00:12, 1.70it/s]
33%|███▎ | 10/30 [00:05<00:11, 1.70it/s]
37%|███▋ | 11/30 [00:06<00:11, 1.70it/s]
40%|████ | 12/30 [00:07<00:10, 1.70it/s]
43%|████▎ | 13/30 [00:07<00:10, 1.69it/s]
47%|████▋ | 14/30 [00:08<00:09, 1.67it/s]
50%|█████ | 15/30 [00:08<00:08, 1.68it/s]
53%|█████▎ | 16/30 [00:09<00:08, 1.68it/s]
57%|█████▋ | 17/30 [00:10<00:07, 1.68it/s]
60%|██████ | 18/30 [00:10<00:07, 1.69it/s]
63%|██████▎ | 19/30 [00:11<00:06, 1.69it/s]
67%|██████▋ | 20/30 [00:11<00:05, 1.69it/s]
70%|███████ | 21/30 [00:12<00:05, 1.69it/s]
73%|███████▎ | 22/30 [00:13<00:04, 1.69it/s]
77%|███████▋ | 23/30 [00:13<00:04, 1.69it/s]
80%|████████ | 24/30 [00:14<00:03, 1.69it/s]
83%|████████▎ | 25/30 [00:14<00:02, 1.69it/s]
87%|████████▋ | 26/30 [00:15<00:02, 1.69it/s]
90%|█████████ | 27/30 [00:15<00:01, 1.69it/s]
93%|█████████▎| 28/30 [00:16<00:01, 1.69it/s]
97%|█████████▋| 29/30 [00:17<00:00, 1.69it/s]
100%|██████████| 30/30 [00:17<00:00, 1.69it/s]
100%|██████████| 30/30 [00:17<00:00, 1.69it/s]
6828326912
4561305600