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.
daanelson /motion_diffusion_model:f7a4f1c6
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 daanelson/motion_diffusion_model using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"daanelson/motion_diffusion_model:f7a4f1c6c9d5e8931365c5e98f99671c0ce187eb601f379be8411148550ba13e",
{
input: {
prompt: "the person angrily punching the air.",
num_repetitions: 4
}
}
);
console.log(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 daanelson/motion_diffusion_model using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"daanelson/motion_diffusion_model:f7a4f1c6c9d5e8931365c5e98f99671c0ce187eb601f379be8411148550ba13e",
input={
"prompt": "the person angrily punching the air.",
"num_repetitions": 4
}
)
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 daanelson/motion_diffusion_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": "f7a4f1c6c9d5e8931365c5e98f99671c0ce187eb601f379be8411148550ba13e",
"input": {
"prompt": "the person angrily punching the air.",
"num_repetitions": 4
}
}' \
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-12-18T08:53:47.455705Z",
"created_at": "2022-12-18T08:51:01.044258Z",
"data_removed": false,
"error": null,
"id": "w3wgblb245gtnivcd5tvdhwtam",
"input": {
"prompt": "the person angrily punching the air.",
"num_repetitions": 4
},
"logs": "### Sampling [repetitions #0]\n1\n2\ncreated 1 samples\n### Sampling [repetitions #1]\n1\n2\ncreated 2 samples\n### Sampling [repetitions #2]\n1\n2\ncreated 3 samples\n### Sampling [repetitions #3]\n1\n2\ncreated 4 samples\n[\"the person angrily punching the air.\" (00) | Rep #00 | -> sample00_rep00.mp4]\n[\"the person angrily punching the air.\" (00) | Rep #01 | -> sample00_rep01.mp4]\n[\"the person angrily punching the air.\" (00) | Rep #02 | -> sample00_rep02.mp4]\n[\"the person angrily punching the air.\" (00) | Rep #03 | -> sample00_rep03.mp4]\n[ \"the person angrily punching the air.\" (00) | all repetitions | -> sample00.mp4]\n[samples 00 to 00 | all repetitions | -> samples_00_to_00.mp4]",
"metrics": {
"predict_time": 166.37482,
"total_time": 166.411447
},
"output": [
"https://replicate.delivery/pbxt/tnyqlO4fsAXTVKYryIv6wKyBbDa4JXjU2SZzO1zFfJRacILQA/sample00_rep00.mp4",
"https://replicate.delivery/pbxt/czLFdzLrWhoiGxrBfNxIDRscxD6YgCgIu6jYGoTJNcdNOkFIA/sample00_rep01.mp4",
"https://replicate.delivery/pbxt/i7p7hJKXOQZeSK2tfqqoVxJdbzJFRCcgduNKJWpUAUgbcILQA/sample00_rep02.mp4",
"https://replicate.delivery/pbxt/69Q2cQN6QbrzFxlrBKa92ztb4FO65hxgjyhGC7s9KPeNOkFIA/sample00_rep03.mp4"
],
"started_at": "2022-12-18T08:51:01.080885Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/w3wgblb245gtnivcd5tvdhwtam",
"cancel": "https://api.replicate.com/v1/predictions/w3wgblb245gtnivcd5tvdhwtam/cancel"
},
"version": "f7a4f1c6c9d5e8931365c5e98f99671c0ce187eb601f379be8411148550ba13e"
}
### Sampling [repetitions #0]
1
2
created 1 samples
### Sampling [repetitions #1]
1
2
created 2 samples
### Sampling [repetitions #2]
1
2
created 3 samples
### Sampling [repetitions #3]
1
2
created 4 samples
["the person angrily punching the air." (00) | Rep #00 | -> sample00_rep00.mp4]
["the person angrily punching the air." (00) | Rep #01 | -> sample00_rep01.mp4]
["the person angrily punching the air." (00) | Rep #02 | -> sample00_rep02.mp4]
["the person angrily punching the air." (00) | Rep #03 | -> sample00_rep03.mp4]
[ "the person angrily punching the air." (00) | all repetitions | -> sample00.mp4]
[samples 00 to 00 | all repetitions | -> samples_00_to_00.mp4]