chenxwh
/
depthcrafter
Generating Consistent Long Depth Sequences for Open-world Videos
Run chenxwh/depthcrafter with an API
Use one of our client libraries to get started quickly.
Set the REPLICATE_API_TOKEN
environment variable
export REPLICATE_API_TOKEN=<paste-your-token-here>
Learn more about authentication
Install Replicate’s Node.js client library
npm install replicate
Run chenxwh/depthcrafter using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
import Replicate from "replicate";
const replicate = new Replicate();
const input = {
video: "https://replicate.delivery/pbxt/LiSKH5N17Dpsep8CEGdvmzx8uxQjvtArSYJXpB6USd5ScQlC/example_01.mp4"
};
const output = await replicate.run("chenxwh/depthcrafter:1c9bfc62fd0750ddadeccf1af4cdef4d74a8a064debd8152ade87f3c9dc30d2b", { input });
console.log(output)
//=> {"npz":null,"depth_video":"https://replicate.delivery/pbx...