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.
yoyo-nb /thin-plate-spline-motion-model:d85547fb
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 yoyo-nb/thin-plate-spline-motion-model using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"yoyo-nb/thin-plate-spline-motion-model:d85547fb1ec0b97ef0c6f0885977d3cabfeecbe4c661c73ba8116873adff247d",
{
input: {
dataset_name: "vox",
source_image: "https://replicate.delivery/mgxm/b8efcd01-da81-42c7-8cd6-0a820084a983/source.png",
driving_video: "https://replicate.delivery/mgxm/005e32a9-ff8e-4dfd-bcfd-bbbf3791ca94/driving.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 yoyo-nb/thin-plate-spline-motion-model using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"yoyo-nb/thin-plate-spline-motion-model:d85547fb1ec0b97ef0c6f0885977d3cabfeecbe4c661c73ba8116873adff247d",
input={
"dataset_name": "vox",
"source_image": "https://replicate.delivery/mgxm/b8efcd01-da81-42c7-8cd6-0a820084a983/source.png",
"driving_video": "https://replicate.delivery/mgxm/005e32a9-ff8e-4dfd-bcfd-bbbf3791ca94/driving.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 yoyo-nb/thin-plate-spline-motion-model 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": "yoyo-nb/thin-plate-spline-motion-model:d85547fb1ec0b97ef0c6f0885977d3cabfeecbe4c661c73ba8116873adff247d",
"input": {
"dataset_name": "vox",
"source_image": "https://replicate.delivery/mgxm/b8efcd01-da81-42c7-8cd6-0a820084a983/source.png",
"driving_video": "https://replicate.delivery/mgxm/005e32a9-ff8e-4dfd-bcfd-bbbf3791ca94/driving.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-05-06T21:45:46.543624Z",
"created_at": "2022-05-06T21:44:08.237089Z",
"data_removed": false,
"error": null,
"id": "m5a65ligtvbpjip2j2zmv4x6w4",
"input": {
"dataset_name": "vox",
"source_image": "https://replicate.delivery/mgxm/b8efcd01-da81-42c7-8cd6-0a820084a983/source.png",
"driving_video": "https://replicate.delivery/mgxm/005e32a9-ff8e-4dfd-bcfd-bbbf3791ca94/driving.mp4"
},
"logs": null,
"metrics": {
"predict_time": 18.57609,
"total_time": 98.306535
},
"output": "https://replicate.delivery/mgxm/67fe4c5c-f47e-49ae-941d-7531acbf3220/output.mp4",
"started_at": "2022-05-06T21:45:27.967534Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/m5a65ligtvbpjip2j2zmv4x6w4",
"cancel": "https://api.replicate.com/v1/predictions/m5a65ligtvbpjip2j2zmv4x6w4/cancel"
},
"version": "d85547fb1ec0b97ef0c6f0885977d3cabfeecbe4c661c73ba8116873adff247d"
}