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.
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/champ using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"camenduru/champ:6100385d214e61f027f7567e4be8aa1fe35bbdb274e86ba58cbb8b924a7c804f",
{
input: {
guidance_data: "example_data/motions/motion-03",
ref_image_path: "https://replicate.delivery/pbxt/KdDoMSC49kaI5bPL8E0OxMvXo0JGg3TZAf5L2f7PlAnay55a/e09f9f18-776a-41a0-8ae3-7a489c2c0758.png"
}
}
);
// To access the file URL:
console.log(output.url()); //=> "http://example.com"
// To write the file to disk:
fs.writeFile("my-image.png", 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 camenduru/champ using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"camenduru/champ:6100385d214e61f027f7567e4be8aa1fe35bbdb274e86ba58cbb8b924a7c804f",
input={
"guidance_data": "example_data/motions/motion-03",
"ref_image_path": "https://replicate.delivery/pbxt/KdDoMSC49kaI5bPL8E0OxMvXo0JGg3TZAf5L2f7PlAnay55a/e09f9f18-776a-41a0-8ae3-7a489c2c0758.png"
}
)
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/champ 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/champ:6100385d214e61f027f7567e4be8aa1fe35bbdb274e86ba58cbb8b924a7c804f",
"input": {
"guidance_data": "example_data/motions/motion-03",
"ref_image_path": "https://replicate.delivery/pbxt/KdDoMSC49kaI5bPL8E0OxMvXo0JGg3TZAf5L2f7PlAnay55a/e09f9f18-776a-41a0-8ae3-7a489c2c0758.png"
}
}' \
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-03-25T14:18:06.833764Z",
"created_at": "2024-03-25T14:11:52.066442Z",
"data_removed": false,
"error": null,
"id": "35m6kgbb43muzpumikdxqxjpz4",
"input": {
"guidance_data": "example_data/motions/motion-03",
"ref_image_path": "https://replicate.delivery/pbxt/KdDoMSC49kaI5bPL8E0OxMvXo0JGg3TZAf5L2f7PlAnay55a/e09f9f18-776a-41a0-8ae3-7a489c2c0758.png"
},
"logs": "0%| | 0/20 [00:00<?, ?it/s]\n 5%|▌ | 1/20 [00:09<02:53, 9.13s/it]\n 10%|█ | 2/20 [00:18<02:41, 8.98s/it]\n 15%|█▌ | 3/20 [00:26<02:31, 8.94s/it]\n 20%|██ | 4/20 [00:35<02:22, 8.93s/it]\n 25%|██▌ | 5/20 [00:44<02:13, 8.92s/it]\n 30%|███ | 6/20 [00:53<02:04, 8.92s/it]\n 35%|███▌ | 7/20 [01:02<01:56, 8.93s/it]\n 40%|████ | 8/20 [01:11<01:46, 8.91s/it]\n 45%|████▌ | 9/20 [01:20<01:37, 8.90s/it]\n 50%|█████ | 10/20 [01:29<01:29, 8.91s/it]\n 55%|█████▌ | 11/20 [01:38<01:20, 8.91s/it]\n 60%|██████ | 12/20 [01:47<01:11, 8.91s/it]\n 65%|██████▌ | 13/20 [01:55<01:02, 8.91s/it]\n 70%|███████ | 14/20 [02:04<00:53, 8.91s/it]\n 75%|███████▌ | 15/20 [02:13<00:44, 8.92s/it]\n 80%|████████ | 16/20 [02:22<00:35, 8.91s/it]\n 85%|████████▌ | 17/20 [02:31<00:26, 8.91s/it]\n 90%|█████████ | 18/20 [02:40<00:17, 8.92s/it]\n 95%|█████████▌| 19/20 [02:49<00:08, 8.92s/it]\n100%|██████████| 20/20 [02:58<00:00, 8.92s/it]\n100%|██████████| 20/20 [02:58<00:00, 8.92s/it]\n 0%| | 0/256 [00:00<?, ?it/s]\n 2%|▏ | 6/256 [00:00<00:04, 51.10it/s]\n 5%|▍ | 12/256 [00:00<00:07, 32.87it/s]\n 6%|▋ | 16/256 [00:00<00:07, 30.18it/s]\n 8%|▊ | 20/256 [00:00<00:08, 28.77it/s]\n 9%|▉ | 23/256 [00:00<00:08, 28.07it/s]\n 10%|█ | 26/256 [00:00<00:08, 27.56it/s]\n 11%|█▏ | 29/256 [00:00<00:08, 27.20it/s]\n 12%|█▎ | 32/256 [00:01<00:08, 26.95it/s]\n 14%|█▎ | 35/256 [00:01<00:08, 26.77it/s]\n 15%|█▍ | 38/256 [00:01<00:08, 26.63it/s]\n 16%|█▌ | 41/256 [00:01<00:08, 26.55it/s]\n 17%|█▋ | 44/256 [00:01<00:08, 26.48it/s]\n 18%|█▊ | 47/256 [00:01<00:07, 26.43it/s]\n 20%|█▉ | 50/256 [00:01<00:07, 26.39it/s]\n 21%|██ | 53/256 [00:01<00:07, 26.37it/s]\n 22%|██▏ | 56/256 [00:02<00:07, 26.35it/s]\n 23%|██▎ | 59/256 [00:02<00:07, 26.36it/s]\n 24%|██▍ | 62/256 [00:02<00:07, 26.35it/s]\n 25%|██▌ | 65/256 [00:02<00:07, 26.33it/s]\n 27%|██▋ | 68/256 [00:02<00:07, 26.33it/s]\n 28%|██▊ | 71/256 [00:02<00:07, 26.35it/s]\n 29%|██▉ | 74/256 [00:02<00:06, 26.35it/s]\n 30%|███ | 77/256 [00:02<00:06, 26.34it/s]\n 31%|███▏ | 80/256 [00:02<00:06, 26.34it/s]\n 32%|███▏ | 83/256 [00:03<00:06, 26.33it/s]\n 34%|███▎ | 86/256 [00:03<00:06, 26.34it/s]\n 35%|███▍ | 89/256 [00:03<00:06, 26.34it/s]\n 36%|███▌ | 92/256 [00:03<00:06, 26.33it/s]\n 37%|███▋ | 95/256 [00:03<00:06, 26.32it/s]\n 38%|███▊ | 98/256 [00:03<00:06, 26.31it/s]\n 39%|███▉ | 101/256 [00:03<00:05, 26.33it/s]\n 41%|████ | 104/256 [00:03<00:05, 26.33it/s]\n 42%|████▏ | 107/256 [00:03<00:05, 26.33it/s]\n 43%|████▎ | 110/256 [00:04<00:05, 26.33it/s]\n 44%|████▍ | 113/256 [00:04<00:05, 26.32it/s]\n 45%|████▌ | 116/256 [00:04<00:05, 26.33it/s]\n 46%|████▋ | 119/256 [00:04<00:05, 26.33it/s]\n 48%|████▊ | 122/256 [00:04<00:05, 26.32it/s]\n 49%|████▉ | 125/256 [00:04<00:04, 26.31it/s]\n 50%|█████ | 128/256 [00:04<00:04, 26.31it/s]\n 51%|█████ | 131/256 [00:04<00:04, 26.31it/s]\n 52%|█████▏ | 134/256 [00:04<00:04, 26.31it/s]\n 54%|█████▎ | 137/256 [00:05<00:04, 26.33it/s]\n 55%|█████▍ | 140/256 [00:05<00:04, 26.31it/s]\n 56%|█████▌ | 143/256 [00:05<00:04, 26.32it/s]\n 57%|█████▋ | 146/256 [00:05<00:04, 26.33it/s]\n 58%|█████▊ | 149/256 [00:05<00:04, 26.32it/s]\n 59%|█████▉ | 152/256 [00:05<00:03, 26.31it/s]\n 61%|██████ | 155/256 [00:05<00:03, 26.32it/s]\n 62%|██████▏ | 158/256 [00:05<00:03, 26.34it/s]\n 63%|██████▎ | 161/256 [00:06<00:03, 26.32it/s]\n 64%|██████▍ | 164/256 [00:06<00:03, 26.34it/s]\n 65%|██████▌ | 167/256 [00:06<00:03, 26.34it/s]\n 66%|██████▋ | 170/256 [00:06<00:03, 26.34it/s]\n 68%|██████▊ | 173/256 [00:06<00:03, 26.33it/s]\n 69%|██████▉ | 176/256 [00:06<00:03, 26.33it/s]\n 70%|██████▉ | 179/256 [00:06<00:02, 26.35it/s]\n 71%|███████ | 182/256 [00:06<00:02, 26.34it/s]\n 72%|███████▏ | 185/256 [00:06<00:02, 26.34it/s]\n 73%|███████▎ | 188/256 [00:07<00:02, 26.33it/s]\n 75%|███████▍ | 191/256 [00:07<00:02, 26.35it/s]\n 76%|███████▌ | 194/256 [00:07<00:02, 26.34it/s]\n 77%|███████▋ | 197/256 [00:07<00:02, 26.34it/s]\n 78%|███████▊ | 200/256 [00:07<00:02, 26.34it/s]\n 79%|███████▉ | 203/256 [00:07<00:02, 26.33it/s]\n 80%|████████ | 206/256 [00:07<00:01, 26.33it/s]\n 82%|████████▏ | 209/256 [00:07<00:01, 26.33it/s]\n 83%|████████▎ | 212/256 [00:07<00:01, 26.34it/s]\n 84%|████████▍ | 215/256 [00:08<00:01, 26.33it/s]\n 85%|████████▌ | 218/256 [00:08<00:01, 26.32it/s]\n 86%|████████▋ | 221/256 [00:08<00:01, 26.33it/s]\n 88%|████████▊ | 224/256 [00:08<00:01, 26.34it/s]\n 89%|████████▊ | 227/256 [00:08<00:01, 26.33it/s]\n 90%|████████▉ | 230/256 [00:08<00:00, 26.33it/s]\n 91%|█████████ | 233/256 [00:08<00:00, 26.33it/s]\n 92%|█████████▏| 236/256 [00:08<00:00, 26.34it/s]\n 93%|█████████▎| 239/256 [00:08<00:00, 26.32it/s]\n 95%|█████████▍| 242/256 [00:09<00:00, 26.34it/s]\n 96%|█████████▌| 245/256 [00:09<00:00, 26.34it/s]\n 97%|█████████▋| 248/256 [00:09<00:00, 26.35it/s]\n 98%|█████████▊| 251/256 [00:09<00:00, 26.33it/s]\n 99%|█████████▉| 254/256 [00:09<00:00, 26.34it/s]\n100%|██████████| 256/256 [00:09<00:00, 26.63it/s]\nIMAGEIO FFMPEG_WRITER WARNING: input image is not divisible by macro_block_size=16, resizing from (499, 640) to (512, 640) to ensure video compatibility with most codecs and players. To prevent resizing, make your input image divisible by the macro_block_size or set the macro_block_size to 1 (risking incompatibility).\n[swscaler @ 0x742eac0] Warning: data is not aligned! This can lead to a speed loss",
"metrics": {
"predict_time": 208.270784,
"total_time": 374.767322
},
"output": "https://replicate.delivery/pbxt/GWPDvaBxHA71MtD6UpqVMj3IJSJNlD9pkluVPpQifFMPz5RJA/animation.mp4",
"started_at": "2024-03-25T14:14:38.562980Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/35m6kgbb43muzpumikdxqxjpz4",
"cancel": "https://api.replicate.com/v1/predictions/35m6kgbb43muzpumikdxqxjpz4/cancel"
},
"version": "6100385d214e61f027f7567e4be8aa1fe35bbdb274e86ba58cbb8b924a7c804f"
}
0%| | 0/20 [00:00<?, ?it/s]
5%|▌ | 1/20 [00:09<02:53, 9.13s/it]
10%|█ | 2/20 [00:18<02:41, 8.98s/it]
15%|█▌ | 3/20 [00:26<02:31, 8.94s/it]
20%|██ | 4/20 [00:35<02:22, 8.93s/it]
25%|██▌ | 5/20 [00:44<02:13, 8.92s/it]
30%|███ | 6/20 [00:53<02:04, 8.92s/it]
35%|███▌ | 7/20 [01:02<01:56, 8.93s/it]
40%|████ | 8/20 [01:11<01:46, 8.91s/it]
45%|████▌ | 9/20 [01:20<01:37, 8.90s/it]
50%|█████ | 10/20 [01:29<01:29, 8.91s/it]
55%|█████▌ | 11/20 [01:38<01:20, 8.91s/it]
60%|██████ | 12/20 [01:47<01:11, 8.91s/it]
65%|██████▌ | 13/20 [01:55<01:02, 8.91s/it]
70%|███████ | 14/20 [02:04<00:53, 8.91s/it]
75%|███████▌ | 15/20 [02:13<00:44, 8.92s/it]
80%|████████ | 16/20 [02:22<00:35, 8.91s/it]
85%|████████▌ | 17/20 [02:31<00:26, 8.91s/it]
90%|█████████ | 18/20 [02:40<00:17, 8.92s/it]
95%|█████████▌| 19/20 [02:49<00:08, 8.92s/it]
100%|██████████| 20/20 [02:58<00:00, 8.92s/it]
100%|██████████| 20/20 [02:58<00:00, 8.92s/it]
0%| | 0/256 [00:00<?, ?it/s]
2%|▏ | 6/256 [00:00<00:04, 51.10it/s]
5%|▍ | 12/256 [00:00<00:07, 32.87it/s]
6%|▋ | 16/256 [00:00<00:07, 30.18it/s]
8%|▊ | 20/256 [00:00<00:08, 28.77it/s]
9%|▉ | 23/256 [00:00<00:08, 28.07it/s]
10%|█ | 26/256 [00:00<00:08, 27.56it/s]
11%|█▏ | 29/256 [00:00<00:08, 27.20it/s]
12%|█▎ | 32/256 [00:01<00:08, 26.95it/s]
14%|█▎ | 35/256 [00:01<00:08, 26.77it/s]
15%|█▍ | 38/256 [00:01<00:08, 26.63it/s]
16%|█▌ | 41/256 [00:01<00:08, 26.55it/s]
17%|█▋ | 44/256 [00:01<00:08, 26.48it/s]
18%|█▊ | 47/256 [00:01<00:07, 26.43it/s]
20%|█▉ | 50/256 [00:01<00:07, 26.39it/s]
21%|██ | 53/256 [00:01<00:07, 26.37it/s]
22%|██▏ | 56/256 [00:02<00:07, 26.35it/s]
23%|██▎ | 59/256 [00:02<00:07, 26.36it/s]
24%|██▍ | 62/256 [00:02<00:07, 26.35it/s]
25%|██▌ | 65/256 [00:02<00:07, 26.33it/s]
27%|██▋ | 68/256 [00:02<00:07, 26.33it/s]
28%|██▊ | 71/256 [00:02<00:07, 26.35it/s]
29%|██▉ | 74/256 [00:02<00:06, 26.35it/s]
30%|███ | 77/256 [00:02<00:06, 26.34it/s]
31%|███▏ | 80/256 [00:02<00:06, 26.34it/s]
32%|███▏ | 83/256 [00:03<00:06, 26.33it/s]
34%|███▎ | 86/256 [00:03<00:06, 26.34it/s]
35%|███▍ | 89/256 [00:03<00:06, 26.34it/s]
36%|███▌ | 92/256 [00:03<00:06, 26.33it/s]
37%|███▋ | 95/256 [00:03<00:06, 26.32it/s]
38%|███▊ | 98/256 [00:03<00:06, 26.31it/s]
39%|███▉ | 101/256 [00:03<00:05, 26.33it/s]
41%|████ | 104/256 [00:03<00:05, 26.33it/s]
42%|████▏ | 107/256 [00:03<00:05, 26.33it/s]
43%|████▎ | 110/256 [00:04<00:05, 26.33it/s]
44%|████▍ | 113/256 [00:04<00:05, 26.32it/s]
45%|████▌ | 116/256 [00:04<00:05, 26.33it/s]
46%|████▋ | 119/256 [00:04<00:05, 26.33it/s]
48%|████▊ | 122/256 [00:04<00:05, 26.32it/s]
49%|████▉ | 125/256 [00:04<00:04, 26.31it/s]
50%|█████ | 128/256 [00:04<00:04, 26.31it/s]
51%|█████ | 131/256 [00:04<00:04, 26.31it/s]
52%|█████▏ | 134/256 [00:04<00:04, 26.31it/s]
54%|█████▎ | 137/256 [00:05<00:04, 26.33it/s]
55%|█████▍ | 140/256 [00:05<00:04, 26.31it/s]
56%|█████▌ | 143/256 [00:05<00:04, 26.32it/s]
57%|█████▋ | 146/256 [00:05<00:04, 26.33it/s]
58%|█████▊ | 149/256 [00:05<00:04, 26.32it/s]
59%|█████▉ | 152/256 [00:05<00:03, 26.31it/s]
61%|██████ | 155/256 [00:05<00:03, 26.32it/s]
62%|██████▏ | 158/256 [00:05<00:03, 26.34it/s]
63%|██████▎ | 161/256 [00:06<00:03, 26.32it/s]
64%|██████▍ | 164/256 [00:06<00:03, 26.34it/s]
65%|██████▌ | 167/256 [00:06<00:03, 26.34it/s]
66%|██████▋ | 170/256 [00:06<00:03, 26.34it/s]
68%|██████▊ | 173/256 [00:06<00:03, 26.33it/s]
69%|██████▉ | 176/256 [00:06<00:03, 26.33it/s]
70%|██████▉ | 179/256 [00:06<00:02, 26.35it/s]
71%|███████ | 182/256 [00:06<00:02, 26.34it/s]
72%|███████▏ | 185/256 [00:06<00:02, 26.34it/s]
73%|███████▎ | 188/256 [00:07<00:02, 26.33it/s]
75%|███████▍ | 191/256 [00:07<00:02, 26.35it/s]
76%|███████▌ | 194/256 [00:07<00:02, 26.34it/s]
77%|███████▋ | 197/256 [00:07<00:02, 26.34it/s]
78%|███████▊ | 200/256 [00:07<00:02, 26.34it/s]
79%|███████▉ | 203/256 [00:07<00:02, 26.33it/s]
80%|████████ | 206/256 [00:07<00:01, 26.33it/s]
82%|████████▏ | 209/256 [00:07<00:01, 26.33it/s]
83%|████████▎ | 212/256 [00:07<00:01, 26.34it/s]
84%|████████▍ | 215/256 [00:08<00:01, 26.33it/s]
85%|████████▌ | 218/256 [00:08<00:01, 26.32it/s]
86%|████████▋ | 221/256 [00:08<00:01, 26.33it/s]
88%|████████▊ | 224/256 [00:08<00:01, 26.34it/s]
89%|████████▊ | 227/256 [00:08<00:01, 26.33it/s]
90%|████████▉ | 230/256 [00:08<00:00, 26.33it/s]
91%|█████████ | 233/256 [00:08<00:00, 26.33it/s]
92%|█████████▏| 236/256 [00:08<00:00, 26.34it/s]
93%|█████████▎| 239/256 [00:08<00:00, 26.32it/s]
95%|█████████▍| 242/256 [00:09<00:00, 26.34it/s]
96%|█████████▌| 245/256 [00:09<00:00, 26.34it/s]
97%|█████████▋| 248/256 [00:09<00:00, 26.35it/s]
98%|█████████▊| 251/256 [00:09<00:00, 26.33it/s]
99%|█████████▉| 254/256 [00:09<00:00, 26.34it/s]
100%|██████████| 256/256 [00:09<00:00, 26.63it/s]
IMAGEIO FFMPEG_WRITER WARNING: input image is not divisible by macro_block_size=16, resizing from (499, 640) to (512, 640) to ensure video compatibility with most codecs and players. To prevent resizing, make your input image divisible by the macro_block_size or set the macro_block_size to 1 (risking incompatibility).
[swscaler @ 0x742eac0] Warning: data is not aligned! This can lead to a speed loss