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";
import fs from "node:fs";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run wyhsirius/lia using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"wyhsirius/lia:4ce4e4aff5bd28c6958b1e3e7628ea80718be56672d92ea8039039a3a152e67d",
{
input: {
model: "ted",
img_source: "https://replicate.delivery/mgxm/b3130052-06eb-4a28-ac49-eaeae28209ab/subject2.png",
driving_video: "https://replicate.delivery/mgxm/e23dfdf6-5667-43ab-8477-e6fc0a8b27f8/driving3.mp4"
}
}
);
// 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 wyhsirius/lia using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"wyhsirius/lia:4ce4e4aff5bd28c6958b1e3e7628ea80718be56672d92ea8039039a3a152e67d",
input={
"model": "ted",
"img_source": "https://replicate.delivery/mgxm/b3130052-06eb-4a28-ac49-eaeae28209ab/subject2.png",
"driving_video": "https://replicate.delivery/mgxm/e23dfdf6-5667-43ab-8477-e6fc0a8b27f8/driving3.mp4"
}
)
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 wyhsirius/lia 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": "wyhsirius/lia:4ce4e4aff5bd28c6958b1e3e7628ea80718be56672d92ea8039039a3a152e67d",
"input": {
"model": "ted",
"img_source": "https://replicate.delivery/mgxm/b3130052-06eb-4a28-ac49-eaeae28209ab/subject2.png",
"driving_video": "https://replicate.delivery/mgxm/e23dfdf6-5667-43ab-8477-e6fc0a8b27f8/driving3.mp4"
}
}' \
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": "2022-06-28T21:36:00.421261Z",
"created_at": "2022-06-28T21:35:48.868080Z",
"data_removed": false,
"error": null,
"id": "dm6lpp75yne47m4q4natr472m4",
"input": {
"model": "ted",
"img_source": "https://replicate.delivery/mgxm/b3130052-06eb-4a28-ac49-eaeae28209ab/subject2.png",
"driving_video": "https://replicate.delivery/mgxm/e23dfdf6-5667-43ab-8477-e6fc0a8b27f8/driving3.mp4"
},
"logs": "==> loading data\n\n 0%| | 0/133 [00:00<?, ?it/s]\n 1%| | 1/133 [00:00<00:13, 9.62it/s]\n 2%|▏ | 3/133 [00:00<00:12, 10.33it/s]\n 4%|▍ | 5/133 [00:00<00:10, 12.46it/s]\n 5%|▌ | 7/133 [00:00<00:09, 13.50it/s]\n 7%|▋ | 9/133 [00:00<00:08, 14.19it/s]\n 8%|▊ | 11/133 [00:00<00:08, 14.55it/s]\n 10%|▉ | 13/133 [00:00<00:08, 14.86it/s]\n 11%|█▏ | 15/133 [00:01<00:07, 15.02it/s]\n 13%|█▎ | 17/133 [00:01<00:07, 15.01it/s]\n 14%|█▍ | 19/133 [00:01<00:07, 14.99it/s]\n 16%|█▌ | 21/133 [00:01<00:07, 15.11it/s]\n 17%|█▋ | 23/133 [00:01<00:07, 15.10it/s]\n 19%|█▉ | 25/133 [00:01<00:07, 15.20it/s]\n 20%|██ | 27/133 [00:01<00:06, 15.24it/s]\n 22%|██▏ | 29/133 [00:01<00:06, 15.25it/s]\n 23%|██▎ | 31/133 [00:02<00:06, 15.28it/s]\n 25%|██▍ | 33/133 [00:02<00:06, 15.22it/s]\n 26%|██▋ | 35/133 [00:02<00:06, 15.19it/s]\n 28%|██▊ | 37/133 [00:02<00:06, 15.18it/s]\n 29%|██▉ | 39/133 [00:02<00:06, 15.10it/s]\n 31%|███ | 41/133 [00:02<00:06, 15.19it/s]\n 32%|███▏ | 43/133 [00:02<00:05, 15.17it/s]\n 34%|███▍ | 45/133 [00:03<00:05, 15.24it/s]\n 35%|███▌ | 47/133 [00:03<00:05, 15.13it/s]\n 37%|███▋ | 49/133 [00:03<00:05, 15.17it/s]\n 38%|███▊ | 51/133 [00:03<00:05, 15.14it/s]\n 40%|███▉ | 53/133 [00:03<00:05, 15.15it/s]\n 41%|████▏ | 55/133 [00:03<00:05, 15.11it/s]\n 43%|████▎ | 57/133 [00:03<00:05, 15.16it/s]\n 44%|████▍ | 59/133 [00:03<00:04, 15.11it/s]\n 46%|████▌ | 61/133 [00:04<00:04, 15.18it/s]\n 47%|████▋ | 63/133 [00:04<00:04, 15.15it/s]\n 49%|████▉ | 65/133 [00:04<00:04, 15.18it/s]\n 50%|█████ | 67/133 [00:04<00:04, 15.12it/s]\n 52%|█████▏ | 69/133 [00:04<00:04, 15.16it/s]\n 53%|█████▎ | 71/133 [00:04<00:04, 15.14it/s]\n 55%|█████▍ | 73/133 [00:04<00:03, 15.18it/s]\n 56%|█████▋ | 75/133 [00:05<00:03, 15.12it/s]\n 58%|█████▊ | 77/133 [00:05<00:03, 15.10it/s]\n 59%|█████▉ | 79/133 [00:05<00:03, 15.11it/s]\n 61%|██████ | 81/133 [00:05<00:03, 15.07it/s]\n 62%|██████▏ | 83/133 [00:05<00:03, 15.10it/s]\n 64%|██████▍ | 85/133 [00:05<00:03, 15.10it/s]\n 65%|██████▌ | 87/133 [00:05<00:03, 15.14it/s]\n 67%|██████▋ | 89/133 [00:05<00:02, 15.08it/s]\n 68%|██████▊ | 91/133 [00:06<00:02, 15.11it/s]\n 70%|██████▉ | 93/133 [00:06<00:02, 15.06it/s]\n 71%|███████▏ | 95/133 [00:06<00:02, 15.11it/s]\n 73%|███████▎ | 97/133 [00:06<00:02, 15.07it/s]\n 74%|███████▍ | 99/133 [00:06<00:02, 15.10it/s]\n 76%|███████▌ | 101/133 [00:06<00:02, 15.07it/s]\n 77%|███████▋ | 103/133 [00:06<00:01, 15.06it/s]\n 79%|███████▉ | 105/133 [00:07<00:01, 15.11it/s]\n 80%|████████ | 107/133 [00:07<00:01, 15.06it/s]\n 82%|████████▏ | 109/133 [00:07<00:01, 15.11it/s]\n 83%|████████▎ | 111/133 [00:07<00:01, 15.05it/s]\n 85%|████████▍ | 113/133 [00:07<00:01, 15.08it/s]\n 86%|████████▋ | 115/133 [00:07<00:01, 15.03it/s]\n 88%|████████▊ | 117/133 [00:07<00:01, 15.07it/s]\n 89%|████████▉ | 119/133 [00:07<00:00, 15.10it/s]\n 91%|█████████ | 121/133 [00:08<00:00, 15.07it/s]\n 92%|█████████▏| 123/133 [00:08<00:00, 15.07it/s]\n 94%|█████████▍| 125/133 [00:08<00:00, 15.01it/s]\n 95%|█████████▌| 127/133 [00:08<00:00, 15.07it/s]\n 97%|█████████▋| 129/133 [00:08<00:00, 15.02it/s]\n 98%|█████████▊| 131/133 [00:08<00:00, 15.03it/s]\n100%|██████████| 133/133 [00:08<00:00, 15.04it/s]\n100%|██████████| 133/133 [00:08<00:00, 14.98it/s]",
"metrics": {
"predict_time": 11.376988,
"total_time": 11.553181
},
"output": "https://replicate.delivery/mgxm/f98ea7ee-9609-4016-b261-f02e2732c564/output.mp4",
"started_at": "2022-06-28T21:35:49.044273Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/dm6lpp75yne47m4q4natr472m4",
"cancel": "https://api.replicate.com/v1/predictions/dm6lpp75yne47m4q4natr472m4/cancel"
},
"version": "4ce4e4aff5bd28c6958b1e3e7628ea80718be56672d92ea8039039a3a152e67d"
}
==> loading data
0%| | 0/133 [00:00<?, ?it/s]
1%| | 1/133 [00:00<00:13, 9.62it/s]
2%|▏ | 3/133 [00:00<00:12, 10.33it/s]
4%|▍ | 5/133 [00:00<00:10, 12.46it/s]
5%|▌ | 7/133 [00:00<00:09, 13.50it/s]
7%|▋ | 9/133 [00:00<00:08, 14.19it/s]
8%|▊ | 11/133 [00:00<00:08, 14.55it/s]
10%|▉ | 13/133 [00:00<00:08, 14.86it/s]
11%|█▏ | 15/133 [00:01<00:07, 15.02it/s]
13%|█▎ | 17/133 [00:01<00:07, 15.01it/s]
14%|█▍ | 19/133 [00:01<00:07, 14.99it/s]
16%|█▌ | 21/133 [00:01<00:07, 15.11it/s]
17%|█▋ | 23/133 [00:01<00:07, 15.10it/s]
19%|█▉ | 25/133 [00:01<00:07, 15.20it/s]
20%|██ | 27/133 [00:01<00:06, 15.24it/s]
22%|██▏ | 29/133 [00:01<00:06, 15.25it/s]
23%|██▎ | 31/133 [00:02<00:06, 15.28it/s]
25%|██▍ | 33/133 [00:02<00:06, 15.22it/s]
26%|██▋ | 35/133 [00:02<00:06, 15.19it/s]
28%|██▊ | 37/133 [00:02<00:06, 15.18it/s]
29%|██▉ | 39/133 [00:02<00:06, 15.10it/s]
31%|███ | 41/133 [00:02<00:06, 15.19it/s]
32%|███▏ | 43/133 [00:02<00:05, 15.17it/s]
34%|███▍ | 45/133 [00:03<00:05, 15.24it/s]
35%|███▌ | 47/133 [00:03<00:05, 15.13it/s]
37%|███▋ | 49/133 [00:03<00:05, 15.17it/s]
38%|███▊ | 51/133 [00:03<00:05, 15.14it/s]
40%|███▉ | 53/133 [00:03<00:05, 15.15it/s]
41%|████▏ | 55/133 [00:03<00:05, 15.11it/s]
43%|████▎ | 57/133 [00:03<00:05, 15.16it/s]
44%|████▍ | 59/133 [00:03<00:04, 15.11it/s]
46%|████▌ | 61/133 [00:04<00:04, 15.18it/s]
47%|████▋ | 63/133 [00:04<00:04, 15.15it/s]
49%|████▉ | 65/133 [00:04<00:04, 15.18it/s]
50%|█████ | 67/133 [00:04<00:04, 15.12it/s]
52%|█████▏ | 69/133 [00:04<00:04, 15.16it/s]
53%|█████▎ | 71/133 [00:04<00:04, 15.14it/s]
55%|█████▍ | 73/133 [00:04<00:03, 15.18it/s]
56%|█████▋ | 75/133 [00:05<00:03, 15.12it/s]
58%|█████▊ | 77/133 [00:05<00:03, 15.10it/s]
59%|█████▉ | 79/133 [00:05<00:03, 15.11it/s]
61%|██████ | 81/133 [00:05<00:03, 15.07it/s]
62%|██████▏ | 83/133 [00:05<00:03, 15.10it/s]
64%|██████▍ | 85/133 [00:05<00:03, 15.10it/s]
65%|██████▌ | 87/133 [00:05<00:03, 15.14it/s]
67%|██████▋ | 89/133 [00:05<00:02, 15.08it/s]
68%|██████▊ | 91/133 [00:06<00:02, 15.11it/s]
70%|██████▉ | 93/133 [00:06<00:02, 15.06it/s]
71%|███████▏ | 95/133 [00:06<00:02, 15.11it/s]
73%|███████▎ | 97/133 [00:06<00:02, 15.07it/s]
74%|███████▍ | 99/133 [00:06<00:02, 15.10it/s]
76%|███████▌ | 101/133 [00:06<00:02, 15.07it/s]
77%|███████▋ | 103/133 [00:06<00:01, 15.06it/s]
79%|███████▉ | 105/133 [00:07<00:01, 15.11it/s]
80%|████████ | 107/133 [00:07<00:01, 15.06it/s]
82%|████████▏ | 109/133 [00:07<00:01, 15.11it/s]
83%|████████▎ | 111/133 [00:07<00:01, 15.05it/s]
85%|████████▍ | 113/133 [00:07<00:01, 15.08it/s]
86%|████████▋ | 115/133 [00:07<00:01, 15.03it/s]
88%|████████▊ | 117/133 [00:07<00:01, 15.07it/s]
89%|████████▉ | 119/133 [00:07<00:00, 15.10it/s]
91%|█████████ | 121/133 [00:08<00:00, 15.07it/s]
92%|█████████▏| 123/133 [00:08<00:00, 15.07it/s]
94%|█████████▍| 125/133 [00:08<00:00, 15.01it/s]
95%|█████████▌| 127/133 [00:08<00:00, 15.07it/s]
97%|█████████▋| 129/133 [00:08<00:00, 15.02it/s]
98%|█████████▊| 131/133 [00:08<00:00, 15.03it/s]
100%|██████████| 133/133 [00:08<00:00, 15.04it/s]
100%|██████████| 133/133 [00:08<00:00, 14.98it/s]