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.
camenduru /dynami-crafter:17daec0f
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 camenduru/dynami-crafter using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"camenduru/dynami-crafter:17daec0f8d078e021ba8997118643d0a455d8385f92c44d262e5ce8c259d0575",
{
input: {
i2v_eta: 1,
i2v_seed: 123,
i2v_steps: 50,
i2v_motion: 3,
i2v_cfg_scale: 7.5,
i2v_input_text: "boy walking on the street",
i2v_input_image: "https://replicate.delivery/pbxt/K1vHFesvAE0TPLLLY5J5KFFWBVRSh5Akzy6E5oPHvOqpDDGF/boy.webp"
}
}
);
// 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 camenduru/dynami-crafter using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"camenduru/dynami-crafter:17daec0f8d078e021ba8997118643d0a455d8385f92c44d262e5ce8c259d0575",
input={
"i2v_eta": 1,
"i2v_seed": 123,
"i2v_steps": 50,
"i2v_motion": 3,
"i2v_cfg_scale": 7.5,
"i2v_input_text": "boy walking on the street",
"i2v_input_image": "https://replicate.delivery/pbxt/K1vHFesvAE0TPLLLY5J5KFFWBVRSh5Akzy6E5oPHvOqpDDGF/boy.webp"
}
)
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 camenduru/dynami-crafter 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": "camenduru/dynami-crafter:17daec0f8d078e021ba8997118643d0a455d8385f92c44d262e5ce8c259d0575",
"input": {
"i2v_eta": 1,
"i2v_seed": 123,
"i2v_steps": 50,
"i2v_motion": 3,
"i2v_cfg_scale": 7.5,
"i2v_input_text": "boy walking on the street",
"i2v_input_image": "https://replicate.delivery/pbxt/K1vHFesvAE0TPLLLY5J5KFFWBVRSh5Akzy6E5oPHvOqpDDGF/boy.webp"
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
brew install cog
If you don’t have Homebrew, there are other installation options available.
Run this to download the model and run it in your local environment:
cog predict r8.im/camenduru/dynami-crafter@sha256:17daec0f8d078e021ba8997118643d0a455d8385f92c44d262e5ce8c259d0575 \
-i 'i2v_eta=1' \
-i 'i2v_seed=123' \
-i 'i2v_steps=50' \
-i 'i2v_motion=3' \
-i 'i2v_cfg_scale=7.5' \
-i 'i2v_input_text="boy walking on the street"' \
-i 'i2v_input_image="https://replicate.delivery/pbxt/K1vHFesvAE0TPLLLY5J5KFFWBVRSh5Akzy6E5oPHvOqpDDGF/boy.webp"'
To learn more, take a look at the Cog documentation.
Run this to download the model and run it in your local environment:
docker run -d -p 5000:5000 r8.im/camenduru/dynami-crafter@sha256:17daec0f8d078e021ba8997118643d0a455d8385f92c44d262e5ce8c259d0575
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "i2v_eta": 1, "i2v_seed": 123, "i2v_steps": 50, "i2v_motion": 3, "i2v_cfg_scale": 7.5, "i2v_input_text": "boy walking on the street", "i2v_input_image": "https://replicate.delivery/pbxt/K1vHFesvAE0TPLLLY5J5KFFWBVRSh5Akzy6E5oPHvOqpDDGF/boy.webp" } }' \ http://localhost:5000/predictions
To learn more, take a look at the Cog documentation.
Add a payment method to run this model.
By signing in, you agree to our
terms of service and privacy policy
Output
{
"completed_at": "2023-12-11T12:19:14.828392Z",
"created_at": "2023-12-11T12:16:09.441334Z",
"data_removed": false,
"error": null,
"id": "rpe7ja3b7wp2bscdgcnfg57y4m",
"input": {
"i2v_eta": 1,
"i2v_seed": 123,
"i2v_steps": 50,
"i2v_motion": 3,
"i2v_cfg_scale": 7.5,
"i2v_input_text": "boy walking on the street",
"i2v_input_image": "https://replicate.delivery/pbxt/K1vHFesvAE0TPLLLY5J5KFFWBVRSh5Akzy6E5oPHvOqpDDGF/boy.webp"
},
"logs": "Seed set to 123\nstart: boy walking on the street 2023-12-11 12:18:41\n/usr/local/lib/python3.10/site-packages/torchvision/transforms/functional.py:1603: UserWarning: The default value of the antialias parameter of all the resizing transforms (Resize(), RandomResizedCrop(), etc.) will change from None to True in v0.17, in order to be consistent across the PIL and Tensor backends. To suppress this warning, directly pass antialias=True (recommended, future default), antialias=None (current default, which means False for Tensors and True for PIL), or antialias=False (only works on Tensors - PIL will still use antialiasing). This also applies if you are using the inference transforms from the models weights: update the call to weights.transforms(antialias=True).\nwarnings.warn(\n/usr/local/lib/python3.10/site-packages/torch/nn/modules/conv.py:459: UserWarning: Applied workaround for CuDNN issue, install nvrtc.so (Triggered internally at ../aten/src/ATen/native/cudnn/Conv_v8.cpp:80.)\nreturn F.conv2d(input, weight, bias, self.stride,",
"metrics": {
"predict_time": 34.168347,
"total_time": 185.387058
},
"output": "https://replicate.delivery/pbxt/YwUoauoR5WaDNdIKSUWgx6M0WTnk1feZdIgI13EixACCBLBSA/output.mp4",
"started_at": "2023-12-11T12:18:40.660045Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/rpe7ja3b7wp2bscdgcnfg57y4m",
"cancel": "https://api.replicate.com/v1/predictions/rpe7ja3b7wp2bscdgcnfg57y4m/cancel"
},
"version": "17daec0f8d078e021ba8997118643d0a455d8385f92c44d262e5ce8c259d0575"
}
Seed set to 123
start: boy walking on the street 2023-12-11 12:18:41
/usr/local/lib/python3.10/site-packages/torchvision/transforms/functional.py:1603: UserWarning: The default value of the antialias parameter of all the resizing transforms (Resize(), RandomResizedCrop(), etc.) will change from None to True in v0.17, in order to be consistent across the PIL and Tensor backends. To suppress this warning, directly pass antialias=True (recommended, future default), antialias=None (current default, which means False for Tensors and True for PIL), or antialias=False (only works on Tensors - PIL will still use antialiasing). This also applies if you are using the inference transforms from the models weights: update the call to weights.transforms(antialias=True).
warnings.warn(
/usr/local/lib/python3.10/site-packages/torch/nn/modules/conv.py:459: UserWarning: Applied workaround for CuDNN issue, install nvrtc.so (Triggered internally at ../aten/src/ATen/native/cudnn/Conv_v8.cpp:80.)
return F.conv2d(input, weight, bias, self.stride,