chenxwh
/
lotus
Diffusion-based Visual Foundation Model for High-quality Dense Prediction
Prediction
chenxwh/lotus:87d8467fIDrawdek6dxxrgm0cjch1bd71hbmStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
{ "task": "depth", "image": "https://replicate.delivery/pbxt/Lka84th0JnWOALVFOCmslNRI7ygy0kUCYNxjpVwZ3nsGTnQo/07.jpg" }
npm install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the clientimport Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run chenxwh/lotus using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "chenxwh/lotus:87d8467fb2d23f07f2aa0b9e08585dd60bd3b163bef0c2dc7274be64904f4198", { input: { task: "depth", image: "https://replicate.delivery/pbxt/Lka84th0JnWOALVFOCmslNRI7ygy0kUCYNxjpVwZ3nsGTnQo/07.jpg" } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the clientimport replicate
Run chenxwh/lotus using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "chenxwh/lotus:87d8467fb2d23f07f2aa0b9e08585dd60bd3b163bef0c2dc7274be64904f4198", input={ "task": "depth", "image": "https://replicate.delivery/pbxt/Lka84th0JnWOALVFOCmslNRI7ygy0kUCYNxjpVwZ3nsGTnQo/07.jpg" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run chenxwh/lotus 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": "87d8467fb2d23f07f2aa0b9e08585dd60bd3b163bef0c2dc7274be64904f4198", "input": { "task": "depth", "image": "https://replicate.delivery/pbxt/Lka84th0JnWOALVFOCmslNRI7ygy0kUCYNxjpVwZ3nsGTnQo/07.jpg" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Install Cogbrew install cog
If you don’t have Homebrew, there are other installation options available.
Pull and run chenxwh/lotus using Cog (this will download the full model and run it in your local environment):
cog predict r8.im/chenxwh/lotus@sha256:87d8467fb2d23f07f2aa0b9e08585dd60bd3b163bef0c2dc7274be64904f4198 \ -i 'task="depth"' \ -i 'image="https://replicate.delivery/pbxt/Lka84th0JnWOALVFOCmslNRI7ygy0kUCYNxjpVwZ3nsGTnQo/07.jpg"'
To learn more, take a look at the Cog documentation.
Pull and run chenxwh/lotus using Docker (this will download the full model and run it in your local environment):
docker run -d -p 5000:5000 --gpus=all r8.im/chenxwh/lotus@sha256:87d8467fb2d23f07f2aa0b9e08585dd60bd3b163bef0c2dc7274be64904f4198
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "task": "depth", "image": "https://replicate.delivery/pbxt/Lka84th0JnWOALVFOCmslNRI7ygy0kUCYNxjpVwZ3nsGTnQo/07.jpg" } }' \ http://localhost:5000/predictions
Output
{ "completed_at": "2024-10-06T23:57:54.695774Z", "created_at": "2024-10-06T23:55:52.687000Z", "data_removed": false, "error": null, "id": "rawdek6dxxrgm0cjch1bd71hbm", "input": { "task": "depth", "image": "https://replicate.delivery/pbxt/Lka84th0JnWOALVFOCmslNRI7ygy0kUCYNxjpVwZ3nsGTnQo/07.jpg" }, "logs": "Using seed: 3176", "metrics": { "predict_time": 39.401406509, "total_time": 122.008774 }, "output": { "generative": "https://replicate.delivery/pbxt/ARpmK1w6vrrZMNh1ZsAEdCmfnUqh60To8Q0MQ9kOL7YAsGyJA/out_g.png", "discriminative": "https://replicate.delivery/pbxt/uGGW8j0iE9IfIqfGBvZ9uaNqQqlg5JhN4q14UKv0Zf6EwaInA/out_d.png" }, "started_at": "2024-10-06T23:57:15.294367Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/rawdek6dxxrgm0cjch1bd71hbm", "cancel": "https://api.replicate.com/v1/predictions/rawdek6dxxrgm0cjch1bd71hbm/cancel" }, "version": "87d8467fb2d23f07f2aa0b9e08585dd60bd3b163bef0c2dc7274be64904f4198" }
Generated inUsing seed: 3176
Prediction
chenxwh/lotus:87d8467fIDz23dqprdrdrgj0cjch5tx037trStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
{ "task": "normal", "image": "https://replicate.delivery/pbxt/LkaIRJluDRDs732kqc3TS6QkO9WpMLAxldk5TUkAVcBa7HaJ/08.jpg" }
npm install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the clientimport Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run chenxwh/lotus using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "chenxwh/lotus:87d8467fb2d23f07f2aa0b9e08585dd60bd3b163bef0c2dc7274be64904f4198", { input: { task: "normal", image: "https://replicate.delivery/pbxt/LkaIRJluDRDs732kqc3TS6QkO9WpMLAxldk5TUkAVcBa7HaJ/08.jpg" } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the clientimport replicate
Run chenxwh/lotus using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "chenxwh/lotus:87d8467fb2d23f07f2aa0b9e08585dd60bd3b163bef0c2dc7274be64904f4198", input={ "task": "normal", "image": "https://replicate.delivery/pbxt/LkaIRJluDRDs732kqc3TS6QkO9WpMLAxldk5TUkAVcBa7HaJ/08.jpg" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run chenxwh/lotus 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": "87d8467fb2d23f07f2aa0b9e08585dd60bd3b163bef0c2dc7274be64904f4198", "input": { "task": "normal", "image": "https://replicate.delivery/pbxt/LkaIRJluDRDs732kqc3TS6QkO9WpMLAxldk5TUkAVcBa7HaJ/08.jpg" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Install Cogbrew install cog
If you don’t have Homebrew, there are other installation options available.
Pull and run chenxwh/lotus using Cog (this will download the full model and run it in your local environment):
cog predict r8.im/chenxwh/lotus@sha256:87d8467fb2d23f07f2aa0b9e08585dd60bd3b163bef0c2dc7274be64904f4198 \ -i 'task="normal"' \ -i 'image="https://replicate.delivery/pbxt/LkaIRJluDRDs732kqc3TS6QkO9WpMLAxldk5TUkAVcBa7HaJ/08.jpg"'
To learn more, take a look at the Cog documentation.
Pull and run chenxwh/lotus using Docker (this will download the full model and run it in your local environment):
docker run -d -p 5000:5000 --gpus=all r8.im/chenxwh/lotus@sha256:87d8467fb2d23f07f2aa0b9e08585dd60bd3b163bef0c2dc7274be64904f4198
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "task": "normal", "image": "https://replicate.delivery/pbxt/LkaIRJluDRDs732kqc3TS6QkO9WpMLAxldk5TUkAVcBa7HaJ/08.jpg" } }' \ http://localhost:5000/predictions
Output
{ "completed_at": "2024-10-07T00:06:22.443503Z", "created_at": "2024-10-07T00:04:53.315000Z", "data_removed": false, "error": null, "id": "z23dqprdrdrgj0cjch5tx037tr", "input": { "task": "normal", "image": "https://replicate.delivery/pbxt/LkaIRJluDRDs732kqc3TS6QkO9WpMLAxldk5TUkAVcBa7HaJ/08.jpg" }, "logs": "Using seed: 41150", "metrics": { "predict_time": 9.631158616, "total_time": 89.128503 }, "output": { "generative": "https://replicate.delivery/pbxt/1UlYvMGb9krTBZfs5tt3ZelfVlUgJAfeCZA5Uf3dzbTPfvGyJA/out_g.png", "discriminative": "https://replicate.delivery/pbxt/fh4p4ednHFsUSEDln7g4XgjXJ6U6yqYoLZHgqscy2PGef1QOB/out_d.png" }, "started_at": "2024-10-07T00:06:12.812345Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/z23dqprdrdrgj0cjch5tx037tr", "cancel": "https://api.replicate.com/v1/predictions/z23dqprdrdrgj0cjch5tx037tr/cancel" }, "version": "87d8467fb2d23f07f2aa0b9e08585dd60bd3b163bef0c2dc7274be64904f4198" }
Generated inUsing seed: 41150
Prediction
chenxwh/lotus:87d8467fID222mxbfg8nrgj0cjch68kpkeqmStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
{ "task": "depth", "image": "https://replicate.delivery/pbxt/LkaKN12RO4glC4f31iGrZ686qAVjHaVOHsEXkYYCqq4Sup6U/08.jpg" }
npm install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the clientimport Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run chenxwh/lotus using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "chenxwh/lotus:87d8467fb2d23f07f2aa0b9e08585dd60bd3b163bef0c2dc7274be64904f4198", { input: { task: "depth", image: "https://replicate.delivery/pbxt/LkaKN12RO4glC4f31iGrZ686qAVjHaVOHsEXkYYCqq4Sup6U/08.jpg" } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the clientimport replicate
Run chenxwh/lotus using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "chenxwh/lotus:87d8467fb2d23f07f2aa0b9e08585dd60bd3b163bef0c2dc7274be64904f4198", input={ "task": "depth", "image": "https://replicate.delivery/pbxt/LkaKN12RO4glC4f31iGrZ686qAVjHaVOHsEXkYYCqq4Sup6U/08.jpg" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run chenxwh/lotus 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": "87d8467fb2d23f07f2aa0b9e08585dd60bd3b163bef0c2dc7274be64904f4198", "input": { "task": "depth", "image": "https://replicate.delivery/pbxt/LkaKN12RO4glC4f31iGrZ686qAVjHaVOHsEXkYYCqq4Sup6U/08.jpg" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Install Cogbrew install cog
If you don’t have Homebrew, there are other installation options available.
Pull and run chenxwh/lotus using Cog (this will download the full model and run it in your local environment):
cog predict r8.im/chenxwh/lotus@sha256:87d8467fb2d23f07f2aa0b9e08585dd60bd3b163bef0c2dc7274be64904f4198 \ -i 'task="depth"' \ -i 'image="https://replicate.delivery/pbxt/LkaKN12RO4glC4f31iGrZ686qAVjHaVOHsEXkYYCqq4Sup6U/08.jpg"'
To learn more, take a look at the Cog documentation.
Pull and run chenxwh/lotus using Docker (this will download the full model and run it in your local environment):
docker run -d -p 5000:5000 --gpus=all r8.im/chenxwh/lotus@sha256:87d8467fb2d23f07f2aa0b9e08585dd60bd3b163bef0c2dc7274be64904f4198
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "task": "depth", "image": "https://replicate.delivery/pbxt/LkaKN12RO4glC4f31iGrZ686qAVjHaVOHsEXkYYCqq4Sup6U/08.jpg" } }' \ http://localhost:5000/predictions
Output
{ "completed_at": "2024-10-07T00:07:05.463536Z", "created_at": "2024-10-07T00:06:56.837000Z", "data_removed": false, "error": null, "id": "222mxbfg8nrgj0cjch68kpkeqm", "input": { "task": "depth", "image": "https://replicate.delivery/pbxt/LkaKN12RO4glC4f31iGrZ686qAVjHaVOHsEXkYYCqq4Sup6U/08.jpg" }, "logs": "Using seed: 55683", "metrics": { "predict_time": 8.526295961, "total_time": 8.626536 }, "output": { "generative": "https://replicate.delivery/pbxt/SFII2fvEAj0jRyTheQOacxjwEYpWbfuIKug4RT4fqAsfEshcC/out_g.png", "discriminative": "https://replicate.delivery/pbxt/kaWaMpNbONJ7AV8LRH6kfGjmYNOOZes25QemhpDxuBcTBbInA/out_d.png" }, "started_at": "2024-10-07T00:06:56.937240Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/222mxbfg8nrgj0cjch68kpkeqm", "cancel": "https://api.replicate.com/v1/predictions/222mxbfg8nrgj0cjch68kpkeqm/cancel" }, "version": "87d8467fb2d23f07f2aa0b9e08585dd60bd3b163bef0c2dc7274be64904f4198" }
Generated inUsing seed: 55683
Prediction
chenxwh/lotus:87d8467fID5r1e9214e5rgg0cjch7v952tt8StatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
{ "task": "depth", "image": "https://replicate.delivery/pbxt/LkaMex4Arb2keUXT7gmsQV2Z0diFDZRJmjjuwGuUP67av5PY/06.jpg" }
npm install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the clientimport Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run chenxwh/lotus using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "chenxwh/lotus:87d8467fb2d23f07f2aa0b9e08585dd60bd3b163bef0c2dc7274be64904f4198", { input: { task: "depth", image: "https://replicate.delivery/pbxt/LkaMex4Arb2keUXT7gmsQV2Z0diFDZRJmjjuwGuUP67av5PY/06.jpg" } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the clientimport replicate
Run chenxwh/lotus using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "chenxwh/lotus:87d8467fb2d23f07f2aa0b9e08585dd60bd3b163bef0c2dc7274be64904f4198", input={ "task": "depth", "image": "https://replicate.delivery/pbxt/LkaMex4Arb2keUXT7gmsQV2Z0diFDZRJmjjuwGuUP67av5PY/06.jpg" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run chenxwh/lotus 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": "87d8467fb2d23f07f2aa0b9e08585dd60bd3b163bef0c2dc7274be64904f4198", "input": { "task": "depth", "image": "https://replicate.delivery/pbxt/LkaMex4Arb2keUXT7gmsQV2Z0diFDZRJmjjuwGuUP67av5PY/06.jpg" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Install Cogbrew install cog
If you don’t have Homebrew, there are other installation options available.
Pull and run chenxwh/lotus using Cog (this will download the full model and run it in your local environment):
cog predict r8.im/chenxwh/lotus@sha256:87d8467fb2d23f07f2aa0b9e08585dd60bd3b163bef0c2dc7274be64904f4198 \ -i 'task="depth"' \ -i 'image="https://replicate.delivery/pbxt/LkaMex4Arb2keUXT7gmsQV2Z0diFDZRJmjjuwGuUP67av5PY/06.jpg"'
To learn more, take a look at the Cog documentation.
Pull and run chenxwh/lotus using Docker (this will download the full model and run it in your local environment):
docker run -d -p 5000:5000 --gpus=all r8.im/chenxwh/lotus@sha256:87d8467fb2d23f07f2aa0b9e08585dd60bd3b163bef0c2dc7274be64904f4198
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "task": "depth", "image": "https://replicate.delivery/pbxt/LkaMex4Arb2keUXT7gmsQV2Z0diFDZRJmjjuwGuUP67av5PY/06.jpg" } }' \ http://localhost:5000/predictions
Output
{ "completed_at": "2024-10-07T00:09:24.900126Z", "created_at": "2024-10-07T00:09:21.265000Z", "data_removed": false, "error": null, "id": "5r1e9214e5rgg0cjch7v952tt8", "input": { "task": "depth", "image": "https://replicate.delivery/pbxt/LkaMex4Arb2keUXT7gmsQV2Z0diFDZRJmjjuwGuUP67av5PY/06.jpg" }, "logs": "Using seed: 15352", "metrics": { "predict_time": 3.5346912489999998, "total_time": 3.635126 }, "output": { "generative": "https://replicate.delivery/pbxt/AkXZes3T94xsX6ceHJ97NDtYLJDwSP7Gg6XiB5HIK9enFbInA/out_g.png", "discriminative": "https://replicate.delivery/pbxt/GIQycdJG2gIbA9JzCfjEgw6t0PSTKTAPbRxaUoTCSiDaxGyJA/out_d.png" }, "started_at": "2024-10-07T00:09:21.365435Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/5r1e9214e5rgg0cjch7v952tt8", "cancel": "https://api.replicate.com/v1/predictions/5r1e9214e5rgg0cjch7v952tt8/cancel" }, "version": "87d8467fb2d23f07f2aa0b9e08585dd60bd3b163bef0c2dc7274be64904f4198" }
Generated inUsing seed: 15352
Prediction
chenxwh/lotus:87d8467fIDmkh8kf5apnrgm0cjch7vpf6ekmStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
{ "task": "normal", "image": "https://replicate.delivery/pbxt/LkaNCowFSW5vLbLtaZ4rOf24DdDZUPV323vtDKen9xwm8IDY/06.jpg" }
npm install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the clientimport Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run chenxwh/lotus using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "chenxwh/lotus:87d8467fb2d23f07f2aa0b9e08585dd60bd3b163bef0c2dc7274be64904f4198", { input: { task: "normal", image: "https://replicate.delivery/pbxt/LkaNCowFSW5vLbLtaZ4rOf24DdDZUPV323vtDKen9xwm8IDY/06.jpg" } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the clientimport replicate
Run chenxwh/lotus using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "chenxwh/lotus:87d8467fb2d23f07f2aa0b9e08585dd60bd3b163bef0c2dc7274be64904f4198", input={ "task": "normal", "image": "https://replicate.delivery/pbxt/LkaNCowFSW5vLbLtaZ4rOf24DdDZUPV323vtDKen9xwm8IDY/06.jpg" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run chenxwh/lotus 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": "87d8467fb2d23f07f2aa0b9e08585dd60bd3b163bef0c2dc7274be64904f4198", "input": { "task": "normal", "image": "https://replicate.delivery/pbxt/LkaNCowFSW5vLbLtaZ4rOf24DdDZUPV323vtDKen9xwm8IDY/06.jpg" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Install Cogbrew install cog
If you don’t have Homebrew, there are other installation options available.
Pull and run chenxwh/lotus using Cog (this will download the full model and run it in your local environment):
cog predict r8.im/chenxwh/lotus@sha256:87d8467fb2d23f07f2aa0b9e08585dd60bd3b163bef0c2dc7274be64904f4198 \ -i 'task="normal"' \ -i 'image="https://replicate.delivery/pbxt/LkaNCowFSW5vLbLtaZ4rOf24DdDZUPV323vtDKen9xwm8IDY/06.jpg"'
To learn more, take a look at the Cog documentation.
Pull and run chenxwh/lotus using Docker (this will download the full model and run it in your local environment):
docker run -d -p 5000:5000 --gpus=all r8.im/chenxwh/lotus@sha256:87d8467fb2d23f07f2aa0b9e08585dd60bd3b163bef0c2dc7274be64904f4198
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "task": "normal", "image": "https://replicate.delivery/pbxt/LkaNCowFSW5vLbLtaZ4rOf24DdDZUPV323vtDKen9xwm8IDY/06.jpg" } }' \ http://localhost:5000/predictions
Output
{ "completed_at": "2024-10-07T00:09:59.614406Z", "created_at": "2024-10-07T00:09:55.637000Z", "data_removed": false, "error": null, "id": "mkh8kf5apnrgm0cjch7vpf6ekm", "input": { "task": "normal", "image": "https://replicate.delivery/pbxt/LkaNCowFSW5vLbLtaZ4rOf24DdDZUPV323vtDKen9xwm8IDY/06.jpg" }, "logs": "Using seed: 20682", "metrics": { "predict_time": 3.87856471, "total_time": 3.977406 }, "output": { "generative": "https://replicate.delivery/pbxt/CZq1AzuAiurfRCVBg9LjlJBW0PeI4B8xJSDVWt5PoPFWjNkTA/out_g.png", "discriminative": "https://replicate.delivery/pbxt/OO5dLDluB77ULB1lp5GeFMprEhRta11GWzEVtZ2q0a7rxGyJA/out_d.png" }, "started_at": "2024-10-07T00:09:55.735841Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/mkh8kf5apnrgm0cjch7vpf6ekm", "cancel": "https://api.replicate.com/v1/predictions/mkh8kf5apnrgm0cjch7vpf6ekm/cancel" }, "version": "87d8467fb2d23f07f2aa0b9e08585dd60bd3b163bef0c2dc7274be64904f4198" }
Generated inUsing seed: 20682
Prediction
chenxwh/lotus:87d8467fIDk15vfbea31rgg0cjchkrbngkxcStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
{ "task": "depth", "image": "https://replicate.delivery/pbxt/LkamAFQdYU0lA2aoTMaZTG9szCQTVUQ0Un70400MhmkM6Y8P/04.jpg" }
npm install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the clientimport Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run chenxwh/lotus using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "chenxwh/lotus:87d8467fb2d23f07f2aa0b9e08585dd60bd3b163bef0c2dc7274be64904f4198", { input: { task: "depth", image: "https://replicate.delivery/pbxt/LkamAFQdYU0lA2aoTMaZTG9szCQTVUQ0Un70400MhmkM6Y8P/04.jpg" } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the clientimport replicate
Run chenxwh/lotus using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "chenxwh/lotus:87d8467fb2d23f07f2aa0b9e08585dd60bd3b163bef0c2dc7274be64904f4198", input={ "task": "depth", "image": "https://replicate.delivery/pbxt/LkamAFQdYU0lA2aoTMaZTG9szCQTVUQ0Un70400MhmkM6Y8P/04.jpg" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run chenxwh/lotus 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": "87d8467fb2d23f07f2aa0b9e08585dd60bd3b163bef0c2dc7274be64904f4198", "input": { "task": "depth", "image": "https://replicate.delivery/pbxt/LkamAFQdYU0lA2aoTMaZTG9szCQTVUQ0Un70400MhmkM6Y8P/04.jpg" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Install Cogbrew install cog
If you don’t have Homebrew, there are other installation options available.
Pull and run chenxwh/lotus using Cog (this will download the full model and run it in your local environment):
cog predict r8.im/chenxwh/lotus@sha256:87d8467fb2d23f07f2aa0b9e08585dd60bd3b163bef0c2dc7274be64904f4198 \ -i 'task="depth"' \ -i 'image="https://replicate.delivery/pbxt/LkamAFQdYU0lA2aoTMaZTG9szCQTVUQ0Un70400MhmkM6Y8P/04.jpg"'
To learn more, take a look at the Cog documentation.
Pull and run chenxwh/lotus using Docker (this will download the full model and run it in your local environment):
docker run -d -p 5000:5000 --gpus=all r8.im/chenxwh/lotus@sha256:87d8467fb2d23f07f2aa0b9e08585dd60bd3b163bef0c2dc7274be64904f4198
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "task": "depth", "image": "https://replicate.delivery/pbxt/LkamAFQdYU0lA2aoTMaZTG9szCQTVUQ0Un70400MhmkM6Y8P/04.jpg" } }' \ http://localhost:5000/predictions
Output
{ "completed_at": "2024-10-07T00:36:56.337956Z", "created_at": "2024-10-07T00:36:16.536000Z", "data_removed": false, "error": null, "id": "k15vfbea31rgg0cjchkrbngkxc", "input": { "task": "depth", "image": "https://replicate.delivery/pbxt/LkamAFQdYU0lA2aoTMaZTG9szCQTVUQ0Un70400MhmkM6Y8P/04.jpg" }, "logs": "Using seed: 20273", "metrics": { "predict_time": 5.427788935, "total_time": 39.801956 }, "output": { "generative": "https://replicate.delivery/pbxt/FFfjz6WIAS0EaK1DVAqodQU92fQNAvp9v1aafAh5yZfZy3QOB/out_g.png", "discriminative": "https://replicate.delivery/pbxt/AmR1m1Z6bIofFK6D6D80j3096DkFRnfBZS0K4qSorbRo8NkTA/out_d.png" }, "started_at": "2024-10-07T00:36:50.910167Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/k15vfbea31rgg0cjchkrbngkxc", "cancel": "https://api.replicate.com/v1/predictions/k15vfbea31rgg0cjchkrbngkxc/cancel" }, "version": "87d8467fb2d23f07f2aa0b9e08585dd60bd3b163bef0c2dc7274be64904f4198" }
Generated inUsing seed: 20273
Want to make some of these yourself?
Run this model