charlesmccarthy / motiontest

  • Public
  • 5.5K runs
  • L40S

Input

Run this model in Node.js with one line of code:

npx create-replicate --model=charlesmccarthy/motiontest
or set up a project from scratch
npm install replicate
Set the REPLICATE_API_TOKEN environment variable:
export REPLICATE_API_TOKEN=<paste-your-token-here>

Find your API token in your account settings.

Import and set up the client:
import Replicate from "replicate";

const replicate = new Replicate({
  auth: process.env.REPLICATE_API_TOKEN,
});

Run charlesmccarthy/motiontest using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.

const output = await replicate.run(
  "charlesmccarthy/motiontest:eab1ca5cc81043cb28ccb4d68e8870366277054c1dc058181e4657a3f24b19cf",
  {
    input: {
      cond_aug: 0.02,
      decoding_t: 14,
      video_length: "14_frames_with_svd",
      sizing_strategy: "maintain_aspect_ratio",
      motion_bucket_id: 127,
      frames_per_second: 6
    }
  }
);
console.log(output);

To learn more, take a look at the guide on getting started with Node.js.

Output

No output yet! Press "Submit" to start a prediction.

Run time and cost

This model costs approximately $0.18 to run on Replicate, or 5 runs per $1, but this varies depending on your inputs. It is also open source and you can run it on your own computer with Docker.

This model runs on Nvidia L40S GPU hardware. Predictions typically complete within 4 minutes.

Readme

This model doesn't have a readme.