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 break-dancing",
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 break-dancing",
"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 break-dancing",
"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:57:52.014785Z",
"created_at": "2022-12-18T08:55:03.826459Z",
"data_removed": false,
"error": null,
"id": "42n6r2tyuzafxoyhkv3auaeuhe",
"input": {
"prompt": "the person break-dancing",
"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 break-dancing\" (00) | Rep #00 | -> sample00_rep00.mp4]\n[\"the person break-dancing\" (00) | Rep #01 | -> sample00_rep01.mp4]\n[\"the person break-dancing\" (00) | Rep #02 | -> sample00_rep02.mp4]\n[\"the person break-dancing\" (00) | Rep #03 | -> sample00_rep03.mp4]\n[ \"the person break-dancing\" (00) | all repetitions | -> sample00.mp4]\n[samples 00 to 00 | all repetitions | -> samples_00_to_00.mp4]",
"metrics": {
"predict_time": 168.150265,
"total_time": 168.188326
},
"output": [
"https://replicate.delivery/pbxt/LlGLcyf6HRQudCq6qZkSopPBWQDI80jl6AlTlJDeLsOPgILQA/sample00_rep00.mp4",
"https://replicate.delivery/pbxt/LO4ywkeNjMTnfU8uMaCyp0EqzntCLERUBi8YuPfQxwEfAisAB/sample00_rep01.mp4",
"https://replicate.delivery/pbxt/DDcfQPuDc5WkZyJZuwwpy1O9X2AneeA9ornYMkxtCA3eAisAB/sample00_rep02.mp4",
"https://replicate.delivery/pbxt/p7nSUz412GKKK5KE6dnwv0MomhsO27fET7qR2IgvML9HQkFIA/sample00_rep03.mp4"
],
"started_at": "2022-12-18T08:55:03.864520Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/42n6r2tyuzafxoyhkv3auaeuhe",
"cancel": "https://api.replicate.com/v1/predictions/42n6r2tyuzafxoyhkv3auaeuhe/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 break-dancing" (00) | Rep #00 | -> sample00_rep00.mp4]
["the person break-dancing" (00) | Rep #01 | -> sample00_rep01.mp4]
["the person break-dancing" (00) | Rep #02 | -> sample00_rep02.mp4]
["the person break-dancing" (00) | Rep #03 | -> sample00_rep03.mp4]
[ "the person break-dancing" (00) | all repetitions | -> sample00.mp4]
[samples 00 to 00 | all repetitions | -> samples_00_to_00.mp4]