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";
import fs from "node:fs";
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/71478a62-9635-4247-8d3c-d8cd9a5248c4/Elon_Musk_Royal_Society_crop2.jpeg",
driving_video: "https://replicate.delivery/mgxm/72af0929-9b9e-49d2-a5d9-e22bc9a4fc0a/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/71478a62-9635-4247-8d3c-d8cd9a5248c4/Elon_Musk_Royal_Society_crop2.jpeg",
"driving_video": "https://replicate.delivery/mgxm/72af0929-9b9e-49d2-a5d9-e22bc9a4fc0a/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/71478a62-9635-4247-8d3c-d8cd9a5248c4/Elon_Musk_Royal_Society_crop2.jpeg",
"driving_video": "https://replicate.delivery/mgxm/72af0929-9b9e-49d2-a5d9-e22bc9a4fc0a/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-06T22:02:19.127584Z",
"created_at": "2022-05-06T22:01:59.726945Z",
"data_removed": false,
"error": null,
"id": "fwjhyvxrivb5bfdxkjlu2iamhq",
"input": {
"dataset_name": "vox",
"source_image": "https://replicate.delivery/mgxm/71478a62-9635-4247-8d3c-d8cd9a5248c4/Elon_Musk_Royal_Society_crop2.jpeg",
"driving_video": "https://replicate.delivery/mgxm/72af0929-9b9e-49d2-a5d9-e22bc9a4fc0a/driving.mp4"
},
"logs": null,
"metrics": {
"predict_time": 19.178878,
"total_time": 19.400639
},
"output": "https://replicate.delivery/mgxm/51b85e50-1a23-4d69-bdc3-c2801957c239/output.mp4",
"started_at": "2022-05-06T22:01:59.948706Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/fwjhyvxrivb5bfdxkjlu2iamhq",
"cancel": "https://api.replicate.com/v1/predictions/fwjhyvxrivb5bfdxkjlu2iamhq/cancel"
},
"version": "d85547fb1ec0b97ef0c6f0885977d3cabfeecbe4c661c73ba8116873adff247d"
}