cjwbw / depth-anything
Highly practical solution for robust monocular depth estimation by training on a combination of 1.5M labeled images and 62M+ unlabeled images
Prediction
cjwbw/depth-anything:e5b0454205013708df48492a13a8ee4b3c412173362fc56c6b5558eb54e527e5IDnlunjn3bmfwtr7jxvjf4licjk4StatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
{ "image": "https://replicate.delivery/pbxt/KHVpCL7nj3D2QFCnk3dO2mYS4BCYneLIWcGbP6aAnPr4euhK/demo11.png", "encoder": "vitl" }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run cjwbw/depth-anything using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "cjwbw/depth-anything:e5b0454205013708df48492a13a8ee4b3c412173362fc56c6b5558eb54e527e5", { input: { image: "https://replicate.delivery/pbxt/KHVpCL7nj3D2QFCnk3dO2mYS4BCYneLIWcGbP6aAnPr4euhK/demo11.png", encoder: "vitl" } } ); // 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.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run cjwbw/depth-anything using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "cjwbw/depth-anything:e5b0454205013708df48492a13a8ee4b3c412173362fc56c6b5558eb54e527e5", input={ "image": "https://replicate.delivery/pbxt/KHVpCL7nj3D2QFCnk3dO2mYS4BCYneLIWcGbP6aAnPr4euhK/demo11.png", "encoder": "vitl" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run cjwbw/depth-anything 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": "cjwbw/depth-anything:e5b0454205013708df48492a13a8ee4b3c412173362fc56c6b5558eb54e527e5", "input": { "image": "https://replicate.delivery/pbxt/KHVpCL7nj3D2QFCnk3dO2mYS4BCYneLIWcGbP6aAnPr4euhK/demo11.png", "encoder": "vitl" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-01-24T10:20:10.360968Z", "created_at": "2024-01-24T10:20:08.207667Z", "data_removed": false, "error": null, "id": "nlunjn3bmfwtr7jxvjf4licjk4", "input": { "image": "https://replicate.delivery/pbxt/KHVpCL7nj3D2QFCnk3dO2mYS4BCYneLIWcGbP6aAnPr4euhK/demo11.png", "encoder": "vitl" }, "logs": "Total parameters: 335.32M", "metrics": { "predict_time": 2.114263, "total_time": 2.153301 }, "output": "https://replicate.delivery/pbxt/OYECnZs7eQUtOKSEJWCmKfGXWi7zdwcmhWAXZ6kC6gCZZpPSA/out.png", "started_at": "2024-01-24T10:20:08.246705Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/nlunjn3bmfwtr7jxvjf4licjk4", "cancel": "https://api.replicate.com/v1/predictions/nlunjn3bmfwtr7jxvjf4licjk4/cancel" }, "version": "e5b0454205013708df48492a13a8ee4b3c412173362fc56c6b5558eb54e527e5" }
Generated inTotal parameters: 335.32M
Prediction
cjwbw/depth-anything:e5b0454205013708df48492a13a8ee4b3c412173362fc56c6b5558eb54e527e5IDqwqrbllbjqvlpj25i4fjogrxkiStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
{ "image": "https://replicate.delivery/pbxt/KHVsj6WjyogyqxnzcJS6IfzS5Sfx7URQWBqCzmAGsO5O7tJJ/demo7.png", "encoder": "vitl" }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run cjwbw/depth-anything using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "cjwbw/depth-anything:e5b0454205013708df48492a13a8ee4b3c412173362fc56c6b5558eb54e527e5", { input: { image: "https://replicate.delivery/pbxt/KHVsj6WjyogyqxnzcJS6IfzS5Sfx7URQWBqCzmAGsO5O7tJJ/demo7.png", encoder: "vitl" } } ); // 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.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run cjwbw/depth-anything using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "cjwbw/depth-anything:e5b0454205013708df48492a13a8ee4b3c412173362fc56c6b5558eb54e527e5", input={ "image": "https://replicate.delivery/pbxt/KHVsj6WjyogyqxnzcJS6IfzS5Sfx7URQWBqCzmAGsO5O7tJJ/demo7.png", "encoder": "vitl" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run cjwbw/depth-anything 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": "cjwbw/depth-anything:e5b0454205013708df48492a13a8ee4b3c412173362fc56c6b5558eb54e527e5", "input": { "image": "https://replicate.delivery/pbxt/KHVsj6WjyogyqxnzcJS6IfzS5Sfx7URQWBqCzmAGsO5O7tJJ/demo7.png", "encoder": "vitl" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-01-24T10:23:54.000102Z", "created_at": "2024-01-24T10:23:51.806085Z", "data_removed": false, "error": null, "id": "qwqrbllbjqvlpj25i4fjogrxki", "input": { "image": "https://replicate.delivery/pbxt/KHVsj6WjyogyqxnzcJS6IfzS5Sfx7URQWBqCzmAGsO5O7tJJ/demo7.png", "encoder": "vitl" }, "logs": "Total parameters: 335.32M", "metrics": { "predict_time": 2.15495, "total_time": 2.194017 }, "output": "https://replicate.delivery/pbxt/27tVQjJ2NtK5Fx1JFpI9brH3SzePS7bA4AGXBHuJD1kcu0HJA/out.png", "started_at": "2024-01-24T10:23:51.845152Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/qwqrbllbjqvlpj25i4fjogrxki", "cancel": "https://api.replicate.com/v1/predictions/qwqrbllbjqvlpj25i4fjogrxki/cancel" }, "version": "e5b0454205013708df48492a13a8ee4b3c412173362fc56c6b5558eb54e527e5" }
Generated inTotal parameters: 335.32M
Prediction
cjwbw/depth-anything:e5b0454205013708df48492a13a8ee4b3c412173362fc56c6b5558eb54e527e5ID6mqrkzlbi4vvvakunpygyzzahaStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
{ "image": "https://replicate.delivery/pbxt/KHNQeXAurKvjfdelBdvQcJ0l2Q0a7hRgoyLuNPc2Q9w7zQL7/IMG_0639.png", "encoder": "vitl" }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run cjwbw/depth-anything using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "cjwbw/depth-anything:e5b0454205013708df48492a13a8ee4b3c412173362fc56c6b5558eb54e527e5", { input: { image: "https://replicate.delivery/pbxt/KHNQeXAurKvjfdelBdvQcJ0l2Q0a7hRgoyLuNPc2Q9w7zQL7/IMG_0639.png", encoder: "vitl" } } ); // 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.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run cjwbw/depth-anything using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "cjwbw/depth-anything:e5b0454205013708df48492a13a8ee4b3c412173362fc56c6b5558eb54e527e5", input={ "image": "https://replicate.delivery/pbxt/KHNQeXAurKvjfdelBdvQcJ0l2Q0a7hRgoyLuNPc2Q9w7zQL7/IMG_0639.png", "encoder": "vitl" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run cjwbw/depth-anything 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": "cjwbw/depth-anything:e5b0454205013708df48492a13a8ee4b3c412173362fc56c6b5558eb54e527e5", "input": { "image": "https://replicate.delivery/pbxt/KHNQeXAurKvjfdelBdvQcJ0l2Q0a7hRgoyLuNPc2Q9w7zQL7/IMG_0639.png", "encoder": "vitl" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-01-24T01:12:37.661767Z", "created_at": "2024-01-24T01:10:49.129756Z", "data_removed": false, "error": null, "id": "6mqrkzlbi4vvvakunpygyzzaha", "input": { "image": "https://replicate.delivery/pbxt/KHNQeXAurKvjfdelBdvQcJ0l2Q0a7hRgoyLuNPc2Q9w7zQL7/IMG_0639.png", "encoder": "vitl" }, "logs": "Total parameters: 335.32M", "metrics": { "predict_time": 2.384896, "total_time": 108.532011 }, "output": "https://replicate.delivery/pbxt/hvM31UrHXTahCl9JkHyT7nsfUELojjTDixAT8BJxpYOCswHJA/out.png", "started_at": "2024-01-24T01:12:35.276871Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/6mqrkzlbi4vvvakunpygyzzaha", "cancel": "https://api.replicate.com/v1/predictions/6mqrkzlbi4vvvakunpygyzzaha/cancel" }, "version": "e5b0454205013708df48492a13a8ee4b3c412173362fc56c6b5558eb54e527e5" }
Generated inTotal parameters: 335.32M
Prediction
cjwbw/depth-anything:e5b0454205013708df48492a13a8ee4b3c412173362fc56c6b5558eb54e527e5IDblnnq63b7nzd47ltgadygsijhyStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
{ "image": "https://replicate.delivery/pbxt/KHVswOC0nh0Ac3fc0i834cf7C5lpNGeK6jf061garkVCugjV/demo12.png", "encoder": "vitl" }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run cjwbw/depth-anything using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "cjwbw/depth-anything:e5b0454205013708df48492a13a8ee4b3c412173362fc56c6b5558eb54e527e5", { input: { image: "https://replicate.delivery/pbxt/KHVswOC0nh0Ac3fc0i834cf7C5lpNGeK6jf061garkVCugjV/demo12.png", encoder: "vitl" } } ); // 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.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run cjwbw/depth-anything using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "cjwbw/depth-anything:e5b0454205013708df48492a13a8ee4b3c412173362fc56c6b5558eb54e527e5", input={ "image": "https://replicate.delivery/pbxt/KHVswOC0nh0Ac3fc0i834cf7C5lpNGeK6jf061garkVCugjV/demo12.png", "encoder": "vitl" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run cjwbw/depth-anything 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": "cjwbw/depth-anything:e5b0454205013708df48492a13a8ee4b3c412173362fc56c6b5558eb54e527e5", "input": { "image": "https://replicate.delivery/pbxt/KHVswOC0nh0Ac3fc0i834cf7C5lpNGeK6jf061garkVCugjV/demo12.png", "encoder": "vitl" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-01-24T10:24:07.918211Z", "created_at": "2024-01-24T10:24:05.761314Z", "data_removed": false, "error": null, "id": "blnnq63b7nzd47ltgadygsijhy", "input": { "image": "https://replicate.delivery/pbxt/KHVswOC0nh0Ac3fc0i834cf7C5lpNGeK6jf061garkVCugjV/demo12.png", "encoder": "vitl" }, "logs": "Total parameters: 335.32M", "metrics": { "predict_time": 2.120123, "total_time": 2.156897 }, "output": "https://replicate.delivery/pbxt/UjXEz5prreRKU6ZL4bz8loLLyCupE6mVp23z85eZE29HdpPSA/out.png", "started_at": "2024-01-24T10:24:05.798088Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/blnnq63b7nzd47ltgadygsijhy", "cancel": "https://api.replicate.com/v1/predictions/blnnq63b7nzd47ltgadygsijhy/cancel" }, "version": "e5b0454205013708df48492a13a8ee4b3c412173362fc56c6b5558eb54e527e5" }
Generated inTotal parameters: 335.32M
Prediction
cjwbw/depth-anything:e5b0454205013708df48492a13a8ee4b3c412173362fc56c6b5558eb54e527e5IDkbrryilbjg3ae3hoiemh52mjqaStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
{ "image": "https://replicate.delivery/pbxt/KHVtDI7CplIa1oifgrRsHwX7Eexgr3K5gYRMs4N9hqUrPyVR/demo14.png", "encoder": "vitl" }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run cjwbw/depth-anything using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "cjwbw/depth-anything:e5b0454205013708df48492a13a8ee4b3c412173362fc56c6b5558eb54e527e5", { input: { image: "https://replicate.delivery/pbxt/KHVtDI7CplIa1oifgrRsHwX7Eexgr3K5gYRMs4N9hqUrPyVR/demo14.png", encoder: "vitl" } } ); // 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.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run cjwbw/depth-anything using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "cjwbw/depth-anything:e5b0454205013708df48492a13a8ee4b3c412173362fc56c6b5558eb54e527e5", input={ "image": "https://replicate.delivery/pbxt/KHVtDI7CplIa1oifgrRsHwX7Eexgr3K5gYRMs4N9hqUrPyVR/demo14.png", "encoder": "vitl" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run cjwbw/depth-anything 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": "cjwbw/depth-anything:e5b0454205013708df48492a13a8ee4b3c412173362fc56c6b5558eb54e527e5", "input": { "image": "https://replicate.delivery/pbxt/KHVtDI7CplIa1oifgrRsHwX7Eexgr3K5gYRMs4N9hqUrPyVR/demo14.png", "encoder": "vitl" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-01-24T10:24:25.271313Z", "created_at": "2024-01-24T10:24:22.728115Z", "data_removed": false, "error": null, "id": "kbrryilbjg3ae3hoiemh52mjqa", "input": { "image": "https://replicate.delivery/pbxt/KHVtDI7CplIa1oifgrRsHwX7Eexgr3K5gYRMs4N9hqUrPyVR/demo14.png", "encoder": "vitl" }, "logs": "Total parameters: 335.32M", "metrics": { "predict_time": 2.506593, "total_time": 2.543198 }, "output": "https://replicate.delivery/pbxt/YVfK6RsJj0RaZCx7N70ROAExwETvWQcZbpUOH8XIlxeYdpPSA/out.png", "started_at": "2024-01-24T10:24:22.764720Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/kbrryilbjg3ae3hoiemh52mjqa", "cancel": "https://api.replicate.com/v1/predictions/kbrryilbjg3ae3hoiemh52mjqa/cancel" }, "version": "e5b0454205013708df48492a13a8ee4b3c412173362fc56c6b5558eb54e527e5" }
Generated inTotal parameters: 335.32M
Prediction
cjwbw/depth-anything:e5b0454205013708df48492a13a8ee4b3c412173362fc56c6b5558eb54e527e5IDqmsu7e3balgrisqyxrjx3pwzyiStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
{ "image": "https://replicate.delivery/pbxt/KHVtQBoMM06emhVC17Q59PEFwxLTaEQRjjviyLKL0YcncK12/demo17.png", "encoder": "vitl" }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run cjwbw/depth-anything using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "cjwbw/depth-anything:e5b0454205013708df48492a13a8ee4b3c412173362fc56c6b5558eb54e527e5", { input: { image: "https://replicate.delivery/pbxt/KHVtQBoMM06emhVC17Q59PEFwxLTaEQRjjviyLKL0YcncK12/demo17.png", encoder: "vitl" } } ); // 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.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run cjwbw/depth-anything using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "cjwbw/depth-anything:e5b0454205013708df48492a13a8ee4b3c412173362fc56c6b5558eb54e527e5", input={ "image": "https://replicate.delivery/pbxt/KHVtQBoMM06emhVC17Q59PEFwxLTaEQRjjviyLKL0YcncK12/demo17.png", "encoder": "vitl" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run cjwbw/depth-anything 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": "cjwbw/depth-anything:e5b0454205013708df48492a13a8ee4b3c412173362fc56c6b5558eb54e527e5", "input": { "image": "https://replicate.delivery/pbxt/KHVtQBoMM06emhVC17Q59PEFwxLTaEQRjjviyLKL0YcncK12/demo17.png", "encoder": "vitl" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-01-24T10:24:37.350351Z", "created_at": "2024-01-24T10:24:35.162979Z", "data_removed": false, "error": null, "id": "qmsu7e3balgrisqyxrjx3pwzyi", "input": { "image": "https://replicate.delivery/pbxt/KHVtQBoMM06emhVC17Q59PEFwxLTaEQRjjviyLKL0YcncK12/demo17.png", "encoder": "vitl" }, "logs": "Total parameters: 335.32M", "metrics": { "predict_time": 2.148974, "total_time": 2.187372 }, "output": "https://replicate.delivery/pbxt/JyuZuB2VpFISDFJRSWG2p6UcgfLluA4DK50gqKXHesukdpPSA/out.png", "started_at": "2024-01-24T10:24:35.201377Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/qmsu7e3balgrisqyxrjx3pwzyi", "cancel": "https://api.replicate.com/v1/predictions/qmsu7e3balgrisqyxrjx3pwzyi/cancel" }, "version": "e5b0454205013708df48492a13a8ee4b3c412173362fc56c6b5558eb54e527e5" }
Generated inTotal parameters: 335.32M
Prediction
cjwbw/depth-anything:e5b0454205013708df48492a13a8ee4b3c412173362fc56c6b5558eb54e527e5ID672qcq3bbouowromgv4pbifxbeStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
{ "image": "https://replicate.delivery/pbxt/KHVtbEbBFdTBMmnIY3J9O56RHBRhFCqz8Lk9l2XBu01ovVU7/demo13.png", "encoder": "vitl" }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run cjwbw/depth-anything using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "cjwbw/depth-anything:e5b0454205013708df48492a13a8ee4b3c412173362fc56c6b5558eb54e527e5", { input: { image: "https://replicate.delivery/pbxt/KHVtbEbBFdTBMmnIY3J9O56RHBRhFCqz8Lk9l2XBu01ovVU7/demo13.png", encoder: "vitl" } } ); // 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.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run cjwbw/depth-anything using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "cjwbw/depth-anything:e5b0454205013708df48492a13a8ee4b3c412173362fc56c6b5558eb54e527e5", input={ "image": "https://replicate.delivery/pbxt/KHVtbEbBFdTBMmnIY3J9O56RHBRhFCqz8Lk9l2XBu01ovVU7/demo13.png", "encoder": "vitl" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run cjwbw/depth-anything 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": "cjwbw/depth-anything:e5b0454205013708df48492a13a8ee4b3c412173362fc56c6b5558eb54e527e5", "input": { "image": "https://replicate.delivery/pbxt/KHVtbEbBFdTBMmnIY3J9O56RHBRhFCqz8Lk9l2XBu01ovVU7/demo13.png", "encoder": "vitl" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-01-24T10:24:49.639564Z", "created_at": "2024-01-24T10:24:47.411855Z", "data_removed": false, "error": null, "id": "672qcq3bbouowromgv4pbifxbe", "input": { "image": "https://replicate.delivery/pbxt/KHVtbEbBFdTBMmnIY3J9O56RHBRhFCqz8Lk9l2XBu01ovVU7/demo13.png", "encoder": "vitl" }, "logs": "Total parameters: 335.32M", "metrics": { "predict_time": 2.172587, "total_time": 2.227709 }, "output": "https://replicate.delivery/pbxt/EjAn16aLiAatKNzKgUjUeSfnI0yNd87nuaLe00uEBiOh7SfIB/out.png", "started_at": "2024-01-24T10:24:47.466977Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/672qcq3bbouowromgv4pbifxbe", "cancel": "https://api.replicate.com/v1/predictions/672qcq3bbouowromgv4pbifxbe/cancel" }, "version": "e5b0454205013708df48492a13a8ee4b3c412173362fc56c6b5558eb54e527e5" }
Generated inTotal parameters: 335.32M
Prediction
cjwbw/depth-anything:e5b0454205013708df48492a13a8ee4b3c412173362fc56c6b5558eb54e527e5IDamqckmdbh7zyqmjsreeyh3mshiStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
{ "image": "https://replicate.delivery/pbxt/KHVtqNXAsHNpUKj5dYH2y4hRhuMTlt0mmH5Mxr9KoH7w0nIn/demo10.png", "encoder": "vitl" }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run cjwbw/depth-anything using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "cjwbw/depth-anything:e5b0454205013708df48492a13a8ee4b3c412173362fc56c6b5558eb54e527e5", { input: { image: "https://replicate.delivery/pbxt/KHVtqNXAsHNpUKj5dYH2y4hRhuMTlt0mmH5Mxr9KoH7w0nIn/demo10.png", encoder: "vitl" } } ); // 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.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run cjwbw/depth-anything using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "cjwbw/depth-anything:e5b0454205013708df48492a13a8ee4b3c412173362fc56c6b5558eb54e527e5", input={ "image": "https://replicate.delivery/pbxt/KHVtqNXAsHNpUKj5dYH2y4hRhuMTlt0mmH5Mxr9KoH7w0nIn/demo10.png", "encoder": "vitl" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run cjwbw/depth-anything 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": "cjwbw/depth-anything:e5b0454205013708df48492a13a8ee4b3c412173362fc56c6b5558eb54e527e5", "input": { "image": "https://replicate.delivery/pbxt/KHVtqNXAsHNpUKj5dYH2y4hRhuMTlt0mmH5Mxr9KoH7w0nIn/demo10.png", "encoder": "vitl" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-01-24T10:25:04.055888Z", "created_at": "2024-01-24T10:25:01.873752Z", "data_removed": false, "error": null, "id": "amqckmdbh7zyqmjsreeyh3mshi", "input": { "image": "https://replicate.delivery/pbxt/KHVtqNXAsHNpUKj5dYH2y4hRhuMTlt0mmH5Mxr9KoH7w0nIn/demo10.png", "encoder": "vitl" }, "logs": "Total parameters: 335.32M", "metrics": { "predict_time": 2.145541, "total_time": 2.182136 }, "output": "https://replicate.delivery/pbxt/7u53HuQp5hKeNCr7wdfczZy4I7AY5AbZH9KBrieSF0Df3leRC/out.png", "started_at": "2024-01-24T10:25:01.910347Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/amqckmdbh7zyqmjsreeyh3mshi", "cancel": "https://api.replicate.com/v1/predictions/amqckmdbh7zyqmjsreeyh3mshi/cancel" }, "version": "e5b0454205013708df48492a13a8ee4b3c412173362fc56c6b5558eb54e527e5" }
Generated inTotal parameters: 335.32M
Want to make some of these yourself?
Run this model