mingcv
/
bread
The online demo of Bread (Low-light Image Enhancement via Breaking Down the Darkness). This demo is developed to enhance images with poor/irregular illumination and annoying noises.
Prediction
mingcv/bread:bf9f60e7Input
{ "gamma": 1, "image": "https://replicate.delivery/pbxt/IqIgr3gkECiCb2uihJgNQIopWkK0EAGKkCWrcAfm9WzaTN8W/charlie-henson-dark-norway-01.jpg", "strength": 0.05 }
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 mingcv/bread using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "mingcv/bread:bf9f60e777852145e9e6c06fac109c6d55fec43bd535b6b13d3608c34711060b", { input: { gamma: 1, image: "https://replicate.delivery/pbxt/IqIgr3gkECiCb2uihJgNQIopWkK0EAGKkCWrcAfm9WzaTN8W/charlie-henson-dark-norway-01.jpg", strength: 0.05 } } ); 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 mingcv/bread using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "mingcv/bread:bf9f60e777852145e9e6c06fac109c6d55fec43bd535b6b13d3608c34711060b", input={ "gamma": 1, "image": "https://replicate.delivery/pbxt/IqIgr3gkECiCb2uihJgNQIopWkK0EAGKkCWrcAfm9WzaTN8W/charlie-henson-dark-norway-01.jpg", "strength": 0.05 } ) 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 mingcv/bread 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": "bf9f60e777852145e9e6c06fac109c6d55fec43bd535b6b13d3608c34711060b", "input": { "gamma": 1, "image": "https://replicate.delivery/pbxt/IqIgr3gkECiCb2uihJgNQIopWkK0EAGKkCWrcAfm9WzaTN8W/charlie-henson-dark-norway-01.jpg", "strength": 0.05 } }' \ 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 mingcv/bread using Cog (this will download the full model and run it in your local environment):
cog predict r8.im/mingcv/bread@sha256:bf9f60e777852145e9e6c06fac109c6d55fec43bd535b6b13d3608c34711060b \ -i 'gamma=1' \ -i 'image="https://replicate.delivery/pbxt/IqIgr3gkECiCb2uihJgNQIopWkK0EAGKkCWrcAfm9WzaTN8W/charlie-henson-dark-norway-01.jpg"' \ -i 'strength=0.05'
To learn more, take a look at the Cog documentation.
Pull and run mingcv/bread 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/mingcv/bread@sha256:bf9f60e777852145e9e6c06fac109c6d55fec43bd535b6b13d3608c34711060b
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "gamma": 1, "image": "https://replicate.delivery/pbxt/IqIgr3gkECiCb2uihJgNQIopWkK0EAGKkCWrcAfm9WzaTN8W/charlie-henson-dark-norway-01.jpg", "strength": 0.05 } }' \ http://localhost:5000/predictions
Output
{ "completed_at": "2023-05-18T02:22:14.053145Z", "created_at": "2023-05-18T02:22:12.084673Z", "data_removed": false, "error": null, "id": "a5pkx3mhqzcdrjkl72icklm7pu", "input": { "gamma": 1, "image": "https://replicate.delivery/pbxt/IqIgr3gkECiCb2uihJgNQIopWkK0EAGKkCWrcAfm9WzaTN8W/charlie-henson-dark-norway-01.jpg", "strength": 0.05 }, "logs": null, "metrics": { "predict_time": 1.994106, "total_time": 1.968472 }, "output": "https://replicate.delivery/pbxt/h3ENCRfh6iVxM6DygANe2POYD4KNGMyz1HIrhLyRWfCrun5hA/enhanced.png", "started_at": "2023-05-18T02:22:12.059039Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/a5pkx3mhqzcdrjkl72icklm7pu", "cancel": "https://api.replicate.com/v1/predictions/a5pkx3mhqzcdrjkl72icklm7pu/cancel" }, "version": "6c93238edd5a3ad071b6314c328ec52ffa8e799f57747deedea37f8bb9d9d0f1" }
Generated inPrediction
mingcv/bread:bf9f60e7ID4bilm7lverefdh2rbafmgv7jfqStatusSucceededSourceWebHardwareT4Total durationCreatedInput
{ "gamma": 0.85, "image": "https://replicate.delivery/pbxt/Iw4SHDyeSiaRLuTxRdltlFZzbbqYXCTBEgYzn9QpWUES0iTH/photo-1494376877685-d3d2559d4f82.jpg", "strength": 0.05 }
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 mingcv/bread using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "mingcv/bread:bf9f60e777852145e9e6c06fac109c6d55fec43bd535b6b13d3608c34711060b", { input: { gamma: 0.85, image: "https://replicate.delivery/pbxt/Iw4SHDyeSiaRLuTxRdltlFZzbbqYXCTBEgYzn9QpWUES0iTH/photo-1494376877685-d3d2559d4f82.jpg", strength: 0.05 } } ); 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 mingcv/bread using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "mingcv/bread:bf9f60e777852145e9e6c06fac109c6d55fec43bd535b6b13d3608c34711060b", input={ "gamma": 0.85, "image": "https://replicate.delivery/pbxt/Iw4SHDyeSiaRLuTxRdltlFZzbbqYXCTBEgYzn9QpWUES0iTH/photo-1494376877685-d3d2559d4f82.jpg", "strength": 0.05 } ) 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 mingcv/bread 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": "bf9f60e777852145e9e6c06fac109c6d55fec43bd535b6b13d3608c34711060b", "input": { "gamma": 0.85, "image": "https://replicate.delivery/pbxt/Iw4SHDyeSiaRLuTxRdltlFZzbbqYXCTBEgYzn9QpWUES0iTH/photo-1494376877685-d3d2559d4f82.jpg", "strength": 0.05 } }' \ 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 mingcv/bread using Cog (this will download the full model and run it in your local environment):
cog predict r8.im/mingcv/bread@sha256:bf9f60e777852145e9e6c06fac109c6d55fec43bd535b6b13d3608c34711060b \ -i 'gamma=0.85' \ -i 'image="https://replicate.delivery/pbxt/Iw4SHDyeSiaRLuTxRdltlFZzbbqYXCTBEgYzn9QpWUES0iTH/photo-1494376877685-d3d2559d4f82.jpg"' \ -i 'strength=0.05'
To learn more, take a look at the Cog documentation.
Pull and run mingcv/bread 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/mingcv/bread@sha256:bf9f60e777852145e9e6c06fac109c6d55fec43bd535b6b13d3608c34711060b
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "gamma": 0.85, "image": "https://replicate.delivery/pbxt/Iw4SHDyeSiaRLuTxRdltlFZzbbqYXCTBEgYzn9QpWUES0iTH/photo-1494376877685-d3d2559d4f82.jpg", "strength": 0.05 } }' \ http://localhost:5000/predictions
Output
{ "completed_at": "2023-06-03T08:31:48.157217Z", "created_at": "2023-06-03T08:31:46.576113Z", "data_removed": false, "error": null, "id": "4bilm7lverefdh2rbafmgv7jfq", "input": { "gamma": 0.85, "image": "https://replicate.delivery/pbxt/Iw4SHDyeSiaRLuTxRdltlFZzbbqYXCTBEgYzn9QpWUES0iTH/photo-1494376877685-d3d2559d4f82.jpg", "strength": 0.05 }, "logs": null, "metrics": { "predict_time": 1.614789, "total_time": 1.581104 }, "output": "https://replicate.delivery/pbxt/soIrtaCrB4pjIBS5Q3Pbn2eTjdzodUndXhIhpnIZY5m5YFhIA/enhanced.png", "started_at": "2023-06-03T08:31:46.542428Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/4bilm7lverefdh2rbafmgv7jfq", "cancel": "https://api.replicate.com/v1/predictions/4bilm7lverefdh2rbafmgv7jfq/cancel" }, "version": "6c93238edd5a3ad071b6314c328ec52ffa8e799f57747deedea37f8bb9d9d0f1" }
Generated inPrediction
mingcv/bread:bf9f60e7IDbkijdjmcejdtnj2qz7ehu4wxpqStatusSucceededSourceWebHardwareT4Total durationCreatedInput
{ "gamma": 1.1, "image": "https://replicate.delivery/pbxt/Iw6C6XyBwWss8JOMD1WlATRF1d9EWFitSbyc77lFhrgQc8aA/yogendra-singh-4Qo9dgDaPMo-unsplash.jpg", "strength": 0.1 }
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 mingcv/bread using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "mingcv/bread:bf9f60e777852145e9e6c06fac109c6d55fec43bd535b6b13d3608c34711060b", { input: { gamma: 1.1, image: "https://replicate.delivery/pbxt/Iw6C6XyBwWss8JOMD1WlATRF1d9EWFitSbyc77lFhrgQc8aA/yogendra-singh-4Qo9dgDaPMo-unsplash.jpg", strength: 0.1 } } ); 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 mingcv/bread using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "mingcv/bread:bf9f60e777852145e9e6c06fac109c6d55fec43bd535b6b13d3608c34711060b", input={ "gamma": 1.1, "image": "https://replicate.delivery/pbxt/Iw6C6XyBwWss8JOMD1WlATRF1d9EWFitSbyc77lFhrgQc8aA/yogendra-singh-4Qo9dgDaPMo-unsplash.jpg", "strength": 0.1 } ) 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 mingcv/bread 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": "bf9f60e777852145e9e6c06fac109c6d55fec43bd535b6b13d3608c34711060b", "input": { "gamma": 1.1, "image": "https://replicate.delivery/pbxt/Iw6C6XyBwWss8JOMD1WlATRF1d9EWFitSbyc77lFhrgQc8aA/yogendra-singh-4Qo9dgDaPMo-unsplash.jpg", "strength": 0.1 } }' \ 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 mingcv/bread using Cog (this will download the full model and run it in your local environment):
cog predict r8.im/mingcv/bread@sha256:bf9f60e777852145e9e6c06fac109c6d55fec43bd535b6b13d3608c34711060b \ -i 'gamma=1.1' \ -i 'image="https://replicate.delivery/pbxt/Iw6C6XyBwWss8JOMD1WlATRF1d9EWFitSbyc77lFhrgQc8aA/yogendra-singh-4Qo9dgDaPMo-unsplash.jpg"' \ -i 'strength=0.1'
To learn more, take a look at the Cog documentation.
Pull and run mingcv/bread 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/mingcv/bread@sha256:bf9f60e777852145e9e6c06fac109c6d55fec43bd535b6b13d3608c34711060b
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "gamma": 1.1, "image": "https://replicate.delivery/pbxt/Iw6C6XyBwWss8JOMD1WlATRF1d9EWFitSbyc77lFhrgQc8aA/yogendra-singh-4Qo9dgDaPMo-unsplash.jpg", "strength": 0.1 } }' \ http://localhost:5000/predictions
Output
{ "completed_at": "2023-06-03T10:25:37.060397Z", "created_at": "2023-06-03T10:25:34.152293Z", "data_removed": false, "error": null, "id": "bkijdjmcejdtnj2qz7ehu4wxpq", "input": { "gamma": 1.1, "image": "https://replicate.delivery/pbxt/Iw6C6XyBwWss8JOMD1WlATRF1d9EWFitSbyc77lFhrgQc8aA/yogendra-singh-4Qo9dgDaPMo-unsplash.jpg", "strength": 0.1 }, "logs": null, "metrics": { "predict_time": 2.841457, "total_time": 2.908104 }, "output": "https://replicate.delivery/pbxt/efoUQVIyzMquy093P3z7itNGfJQ4MNfpz7OwfDsL2WfGIHjQE/enhanced.png", "started_at": "2023-06-03T10:25:34.218940Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/bkijdjmcejdtnj2qz7ehu4wxpq", "cancel": "https://api.replicate.com/v1/predictions/bkijdjmcejdtnj2qz7ehu4wxpq/cancel" }, "version": "6c93238edd5a3ad071b6314c328ec52ffa8e799f57747deedea37f8bb9d9d0f1" }
Generated inPrediction
mingcv/bread:bf9f60e7IDezkpati7pfgdxohvf37awfmkvaStatusSucceededSourceWebHardwareT4Total durationCreatedInput
{ "gamma": 0.8, "image": "https://replicate.delivery/pbxt/Iw6G5EIhZNahkzSCBHxM0zRRLofYdkMELwUiYGDybKmmaynQ/ospan-ali-6xv4A1VA1rU-unsplash.jpg", "strength": 0.05 }
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 mingcv/bread using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "mingcv/bread:bf9f60e777852145e9e6c06fac109c6d55fec43bd535b6b13d3608c34711060b", { input: { gamma: 0.8, image: "https://replicate.delivery/pbxt/Iw6G5EIhZNahkzSCBHxM0zRRLofYdkMELwUiYGDybKmmaynQ/ospan-ali-6xv4A1VA1rU-unsplash.jpg", strength: 0.05 } } ); 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 mingcv/bread using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "mingcv/bread:bf9f60e777852145e9e6c06fac109c6d55fec43bd535b6b13d3608c34711060b", input={ "gamma": 0.8, "image": "https://replicate.delivery/pbxt/Iw6G5EIhZNahkzSCBHxM0zRRLofYdkMELwUiYGDybKmmaynQ/ospan-ali-6xv4A1VA1rU-unsplash.jpg", "strength": 0.05 } ) 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 mingcv/bread 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": "bf9f60e777852145e9e6c06fac109c6d55fec43bd535b6b13d3608c34711060b", "input": { "gamma": 0.8, "image": "https://replicate.delivery/pbxt/Iw6G5EIhZNahkzSCBHxM0zRRLofYdkMELwUiYGDybKmmaynQ/ospan-ali-6xv4A1VA1rU-unsplash.jpg", "strength": 0.05 } }' \ 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 mingcv/bread using Cog (this will download the full model and run it in your local environment):
cog predict r8.im/mingcv/bread@sha256:bf9f60e777852145e9e6c06fac109c6d55fec43bd535b6b13d3608c34711060b \ -i 'gamma=0.8' \ -i 'image="https://replicate.delivery/pbxt/Iw6G5EIhZNahkzSCBHxM0zRRLofYdkMELwUiYGDybKmmaynQ/ospan-ali-6xv4A1VA1rU-unsplash.jpg"' \ -i 'strength=0.05'
To learn more, take a look at the Cog documentation.
Pull and run mingcv/bread 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/mingcv/bread@sha256:bf9f60e777852145e9e6c06fac109c6d55fec43bd535b6b13d3608c34711060b
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "gamma": 0.8, "image": "https://replicate.delivery/pbxt/Iw6G5EIhZNahkzSCBHxM0zRRLofYdkMELwUiYGDybKmmaynQ/ospan-ali-6xv4A1VA1rU-unsplash.jpg", "strength": 0.05 } }' \ http://localhost:5000/predictions
Output
{ "completed_at": "2023-06-03T10:29:51.355736Z", "created_at": "2023-06-03T10:29:47.255933Z", "data_removed": false, "error": null, "id": "ezkpati7pfgdxohvf37awfmkva", "input": { "gamma": 0.8, "image": "https://replicate.delivery/pbxt/Iw6G5EIhZNahkzSCBHxM0zRRLofYdkMELwUiYGDybKmmaynQ/ospan-ali-6xv4A1VA1rU-unsplash.jpg", "strength": 0.05 }, "logs": null, "metrics": { "predict_time": 4.119107, "total_time": 4.099803 }, "output": "https://replicate.delivery/pbxt/NfeKY8iD0zn8gUtyarg6qYRkeI29VK4fWAxjl64ITCQ6ByIEB/enhanced.png", "started_at": "2023-06-03T10:29:47.236629Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/ezkpati7pfgdxohvf37awfmkva", "cancel": "https://api.replicate.com/v1/predictions/ezkpati7pfgdxohvf37awfmkva/cancel" }, "version": "6c93238edd5a3ad071b6314c328ec52ffa8e799f57747deedea37f8bb9d9d0f1" }
Generated inPrediction
mingcv/bread:bf9f60e7IDyhaevkoi4bbazfwhrdq5ngug7qStatusSucceededSourceWebHardwareT4Total durationCreatedInput
{ "gamma": 0.9, "image": "https://replicate.delivery/pbxt/Iw6Nif2sAeM8r1JniybQ9Dddnm0hqYcJZyPy9oxQvlOOJkPM/gift-habeshaw-0nNOc6OAwLI-unsplash.jpg", "strength": 0.1 }
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 mingcv/bread using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "mingcv/bread:bf9f60e777852145e9e6c06fac109c6d55fec43bd535b6b13d3608c34711060b", { input: { gamma: 0.9, image: "https://replicate.delivery/pbxt/Iw6Nif2sAeM8r1JniybQ9Dddnm0hqYcJZyPy9oxQvlOOJkPM/gift-habeshaw-0nNOc6OAwLI-unsplash.jpg", strength: 0.1 } } ); 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 mingcv/bread using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "mingcv/bread:bf9f60e777852145e9e6c06fac109c6d55fec43bd535b6b13d3608c34711060b", input={ "gamma": 0.9, "image": "https://replicate.delivery/pbxt/Iw6Nif2sAeM8r1JniybQ9Dddnm0hqYcJZyPy9oxQvlOOJkPM/gift-habeshaw-0nNOc6OAwLI-unsplash.jpg", "strength": 0.1 } ) 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 mingcv/bread 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": "bf9f60e777852145e9e6c06fac109c6d55fec43bd535b6b13d3608c34711060b", "input": { "gamma": 0.9, "image": "https://replicate.delivery/pbxt/Iw6Nif2sAeM8r1JniybQ9Dddnm0hqYcJZyPy9oxQvlOOJkPM/gift-habeshaw-0nNOc6OAwLI-unsplash.jpg", "strength": 0.1 } }' \ 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 mingcv/bread using Cog (this will download the full model and run it in your local environment):
cog predict r8.im/mingcv/bread@sha256:bf9f60e777852145e9e6c06fac109c6d55fec43bd535b6b13d3608c34711060b \ -i 'gamma=0.9' \ -i 'image="https://replicate.delivery/pbxt/Iw6Nif2sAeM8r1JniybQ9Dddnm0hqYcJZyPy9oxQvlOOJkPM/gift-habeshaw-0nNOc6OAwLI-unsplash.jpg"' \ -i 'strength=0.1'
To learn more, take a look at the Cog documentation.
Pull and run mingcv/bread 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/mingcv/bread@sha256:bf9f60e777852145e9e6c06fac109c6d55fec43bd535b6b13d3608c34711060b
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "gamma": 0.9, "image": "https://replicate.delivery/pbxt/Iw6Nif2sAeM8r1JniybQ9Dddnm0hqYcJZyPy9oxQvlOOJkPM/gift-habeshaw-0nNOc6OAwLI-unsplash.jpg", "strength": 0.1 } }' \ http://localhost:5000/predictions
Output
{ "completed_at": "2023-06-03T10:37:52.974491Z", "created_at": "2023-06-03T10:37:50.698419Z", "data_removed": false, "error": null, "id": "yhaevkoi4bbazfwhrdq5ngug7q", "input": { "gamma": 0.9, "image": "https://replicate.delivery/pbxt/Iw6Nif2sAeM8r1JniybQ9Dddnm0hqYcJZyPy9oxQvlOOJkPM/gift-habeshaw-0nNOc6OAwLI-unsplash.jpg", "strength": 0.1 }, "logs": null, "metrics": { "predict_time": 2.29733, "total_time": 2.276072 }, "output": "https://replicate.delivery/pbxt/kqpiCtMngrqUJRK2ncfQgHQNPzoyqQlcfWImaZblKF1AoMCRA/enhanced.png", "started_at": "2023-06-03T10:37:50.677161Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/yhaevkoi4bbazfwhrdq5ngug7q", "cancel": "https://api.replicate.com/v1/predictions/yhaevkoi4bbazfwhrdq5ngug7q/cancel" }, "version": "6c93238edd5a3ad071b6314c328ec52ffa8e799f57747deedea37f8bb9d9d0f1" }
Generated inPrediction
mingcv/bread:bf9f60e7Input
{ "gamma": 0.9, "image": "https://replicate.delivery/pbxt/Iw6R3NQmhNDSBDR5Ijd4RcFjUHkUE901mPb0qEtVgGmP7oJR/jon-fu-Od0ic2dWYjg-unsplash.jpg", "strength": 0.05 }
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 mingcv/bread using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "mingcv/bread:bf9f60e777852145e9e6c06fac109c6d55fec43bd535b6b13d3608c34711060b", { input: { gamma: 0.9, image: "https://replicate.delivery/pbxt/Iw6R3NQmhNDSBDR5Ijd4RcFjUHkUE901mPb0qEtVgGmP7oJR/jon-fu-Od0ic2dWYjg-unsplash.jpg", strength: 0.05 } } ); 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 mingcv/bread using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "mingcv/bread:bf9f60e777852145e9e6c06fac109c6d55fec43bd535b6b13d3608c34711060b", input={ "gamma": 0.9, "image": "https://replicate.delivery/pbxt/Iw6R3NQmhNDSBDR5Ijd4RcFjUHkUE901mPb0qEtVgGmP7oJR/jon-fu-Od0ic2dWYjg-unsplash.jpg", "strength": 0.05 } ) 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 mingcv/bread 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": "bf9f60e777852145e9e6c06fac109c6d55fec43bd535b6b13d3608c34711060b", "input": { "gamma": 0.9, "image": "https://replicate.delivery/pbxt/Iw6R3NQmhNDSBDR5Ijd4RcFjUHkUE901mPb0qEtVgGmP7oJR/jon-fu-Od0ic2dWYjg-unsplash.jpg", "strength": 0.05 } }' \ 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 mingcv/bread using Cog (this will download the full model and run it in your local environment):
cog predict r8.im/mingcv/bread@sha256:bf9f60e777852145e9e6c06fac109c6d55fec43bd535b6b13d3608c34711060b \ -i 'gamma=0.9' \ -i 'image="https://replicate.delivery/pbxt/Iw6R3NQmhNDSBDR5Ijd4RcFjUHkUE901mPb0qEtVgGmP7oJR/jon-fu-Od0ic2dWYjg-unsplash.jpg"' \ -i 'strength=0.05'
To learn more, take a look at the Cog documentation.
Pull and run mingcv/bread 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/mingcv/bread@sha256:bf9f60e777852145e9e6c06fac109c6d55fec43bd535b6b13d3608c34711060b
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "gamma": 0.9, "image": "https://replicate.delivery/pbxt/Iw6R3NQmhNDSBDR5Ijd4RcFjUHkUE901mPb0qEtVgGmP7oJR/jon-fu-Od0ic2dWYjg-unsplash.jpg", "strength": 0.05 } }' \ http://localhost:5000/predictions
Output
{ "completed_at": "2023-06-03T10:41:25.201020Z", "created_at": "2023-06-03T10:41:22.446667Z", "data_removed": false, "error": null, "id": "n45q3tbv4jcwtesubv6by26ko4", "input": { "gamma": 0.9, "image": "https://replicate.delivery/pbxt/Iw6R3NQmhNDSBDR5Ijd4RcFjUHkUE901mPb0qEtVgGmP7oJR/jon-fu-Od0ic2dWYjg-unsplash.jpg", "strength": 0.05 }, "logs": null, "metrics": { "predict_time": 2.867766, "total_time": 2.754353 }, "output": "https://replicate.delivery/pbxt/YeAgOYvHqu2YSqw86ozhWY2ry8eUOZw4zV9v3nglUVZUrMCRA/enhanced.png", "started_at": "2023-06-03T10:41:22.333254Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/n45q3tbv4jcwtesubv6by26ko4", "cancel": "https://api.replicate.com/v1/predictions/n45q3tbv4jcwtesubv6by26ko4/cancel" }, "version": "6c93238edd5a3ad071b6314c328ec52ffa8e799f57747deedea37f8bb9d9d0f1" }
Generated inPrediction
mingcv/bread:bf9f60e7IDnrvwpudvanfsphnbowpxz6o2eaStatusSucceededSourceWebHardwareT4Total durationCreatedInput
{ "gamma": 0.9, "image": "https://replicate.delivery/pbxt/IxVCYXFEXHGpWOrn3Bo8y2jHy7HWYlL4dfvNQgCF8ApmDM4K/adobestock-238657363.jpeg", "strength": 0.05 }
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 mingcv/bread using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "mingcv/bread:bf9f60e777852145e9e6c06fac109c6d55fec43bd535b6b13d3608c34711060b", { input: { gamma: 0.9, image: "https://replicate.delivery/pbxt/IxVCYXFEXHGpWOrn3Bo8y2jHy7HWYlL4dfvNQgCF8ApmDM4K/adobestock-238657363.jpeg", strength: 0.05 } } ); 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 mingcv/bread using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "mingcv/bread:bf9f60e777852145e9e6c06fac109c6d55fec43bd535b6b13d3608c34711060b", input={ "gamma": 0.9, "image": "https://replicate.delivery/pbxt/IxVCYXFEXHGpWOrn3Bo8y2jHy7HWYlL4dfvNQgCF8ApmDM4K/adobestock-238657363.jpeg", "strength": 0.05 } ) 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 mingcv/bread 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": "bf9f60e777852145e9e6c06fac109c6d55fec43bd535b6b13d3608c34711060b", "input": { "gamma": 0.9, "image": "https://replicate.delivery/pbxt/IxVCYXFEXHGpWOrn3Bo8y2jHy7HWYlL4dfvNQgCF8ApmDM4K/adobestock-238657363.jpeg", "strength": 0.05 } }' \ 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 mingcv/bread using Cog (this will download the full model and run it in your local environment):
cog predict r8.im/mingcv/bread@sha256:bf9f60e777852145e9e6c06fac109c6d55fec43bd535b6b13d3608c34711060b \ -i 'gamma=0.9' \ -i 'image="https://replicate.delivery/pbxt/IxVCYXFEXHGpWOrn3Bo8y2jHy7HWYlL4dfvNQgCF8ApmDM4K/adobestock-238657363.jpeg"' \ -i 'strength=0.05'
To learn more, take a look at the Cog documentation.
Pull and run mingcv/bread 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/mingcv/bread@sha256:bf9f60e777852145e9e6c06fac109c6d55fec43bd535b6b13d3608c34711060b
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "gamma": 0.9, "image": "https://replicate.delivery/pbxt/IxVCYXFEXHGpWOrn3Bo8y2jHy7HWYlL4dfvNQgCF8ApmDM4K/adobestock-238657363.jpeg", "strength": 0.05 } }' \ http://localhost:5000/predictions
Output
{ "completed_at": "2023-06-07T09:18:45.848017Z", "created_at": "2023-06-07T09:18:43.366488Z", "data_removed": false, "error": null, "id": "nrvwpudvanfsphnbowpxz6o2ea", "input": { "gamma": 0.9, "image": "https://replicate.delivery/pbxt/IxVCYXFEXHGpWOrn3Bo8y2jHy7HWYlL4dfvNQgCF8ApmDM4K/adobestock-238657363.jpeg", "strength": 0.05 }, "logs": null, "metrics": { "predict_time": 2.512321, "total_time": 2.481529 }, "output": "https://replicate.delivery/pbxt/oWofMnrm9ow2HCyoWX8fqrg7fbfbeuk0B18OBO8XJtKlue3QE/enhanced.png", "started_at": "2023-06-07T09:18:43.335696Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/nrvwpudvanfsphnbowpxz6o2ea", "cancel": "https://api.replicate.com/v1/predictions/nrvwpudvanfsphnbowpxz6o2ea/cancel" }, "version": "6c93238edd5a3ad071b6314c328ec52ffa8e799f57747deedea37f8bb9d9d0f1" }
Generated inPrediction
mingcv/bread:bf9f60e7IDsxu25ubbjggwnyj7swsmnacus4StatusSucceededSourceWebHardwareT4Total durationCreatedInput
{ "gamma": 1, "image": "https://replicate.delivery/pbxt/J157zCpVZdMhifqeuKbY3coBtScNb0udSuzmCJe0WhAc0Utt/DSC07809.JPG", "strength": 0.05 }
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 mingcv/bread using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "mingcv/bread:bf9f60e777852145e9e6c06fac109c6d55fec43bd535b6b13d3608c34711060b", { input: { gamma: 1, image: "https://replicate.delivery/pbxt/J157zCpVZdMhifqeuKbY3coBtScNb0udSuzmCJe0WhAc0Utt/DSC07809.JPG", strength: 0.05 } } ); 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 mingcv/bread using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "mingcv/bread:bf9f60e777852145e9e6c06fac109c6d55fec43bd535b6b13d3608c34711060b", input={ "gamma": 1, "image": "https://replicate.delivery/pbxt/J157zCpVZdMhifqeuKbY3coBtScNb0udSuzmCJe0WhAc0Utt/DSC07809.JPG", "strength": 0.05 } ) 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 mingcv/bread 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": "bf9f60e777852145e9e6c06fac109c6d55fec43bd535b6b13d3608c34711060b", "input": { "gamma": 1, "image": "https://replicate.delivery/pbxt/J157zCpVZdMhifqeuKbY3coBtScNb0udSuzmCJe0WhAc0Utt/DSC07809.JPG", "strength": 0.05 } }' \ 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 mingcv/bread using Cog (this will download the full model and run it in your local environment):
cog predict r8.im/mingcv/bread@sha256:bf9f60e777852145e9e6c06fac109c6d55fec43bd535b6b13d3608c34711060b \ -i 'gamma=1' \ -i 'image="https://replicate.delivery/pbxt/J157zCpVZdMhifqeuKbY3coBtScNb0udSuzmCJe0WhAc0Utt/DSC07809.JPG"' \ -i 'strength=0.05'
To learn more, take a look at the Cog documentation.
Pull and run mingcv/bread 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/mingcv/bread@sha256:bf9f60e777852145e9e6c06fac109c6d55fec43bd535b6b13d3608c34711060b
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "gamma": 1, "image": "https://replicate.delivery/pbxt/J157zCpVZdMhifqeuKbY3coBtScNb0udSuzmCJe0WhAc0Utt/DSC07809.JPG", "strength": 0.05 } }' \ http://localhost:5000/predictions
Output
{ "completed_at": "2023-06-17T11:20:00.775713Z", "created_at": "2023-06-17T11:19:58.543036Z", "data_removed": false, "error": null, "id": "sxu25ubbjggwnyj7swsmnacus4", "input": { "gamma": 1, "image": "https://replicate.delivery/pbxt/J157zCpVZdMhifqeuKbY3coBtScNb0udSuzmCJe0WhAc0Utt/DSC07809.JPG", "strength": 0.05 }, "logs": null, "metrics": { "predict_time": 2.237755, "total_time": 2.232677 }, "output": "https://replicate.delivery/pbxt/bzKRRJlPoBqoCpeE64J3dFBZ7E66OFB4h9eHaQZXA0EfGpNiA/enhanced.png", "started_at": "2023-06-17T11:19:58.537958Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/sxu25ubbjggwnyj7swsmnacus4", "cancel": "https://api.replicate.com/v1/predictions/sxu25ubbjggwnyj7swsmnacus4/cancel" }, "version": "6c93238edd5a3ad071b6314c328ec52ffa8e799f57747deedea37f8bb9d9d0f1" }
Generated inPrediction
mingcv/bread:bf9f60e7Input
{ "gamma": 1, "image": "https://replicate.delivery/pbxt/J158QPjAgMI9KZ3ZiIojUGDiXwanqKHiTlm1tkr3EfsJiPPI/DSC07817.JPG", "strength": 0.05 }
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 mingcv/bread using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "mingcv/bread:bf9f60e777852145e9e6c06fac109c6d55fec43bd535b6b13d3608c34711060b", { input: { gamma: 1, image: "https://replicate.delivery/pbxt/J158QPjAgMI9KZ3ZiIojUGDiXwanqKHiTlm1tkr3EfsJiPPI/DSC07817.JPG", strength: 0.05 } } ); 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 mingcv/bread using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "mingcv/bread:bf9f60e777852145e9e6c06fac109c6d55fec43bd535b6b13d3608c34711060b", input={ "gamma": 1, "image": "https://replicate.delivery/pbxt/J158QPjAgMI9KZ3ZiIojUGDiXwanqKHiTlm1tkr3EfsJiPPI/DSC07817.JPG", "strength": 0.05 } ) 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 mingcv/bread 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": "bf9f60e777852145e9e6c06fac109c6d55fec43bd535b6b13d3608c34711060b", "input": { "gamma": 1, "image": "https://replicate.delivery/pbxt/J158QPjAgMI9KZ3ZiIojUGDiXwanqKHiTlm1tkr3EfsJiPPI/DSC07817.JPG", "strength": 0.05 } }' \ 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 mingcv/bread using Cog (this will download the full model and run it in your local environment):
cog predict r8.im/mingcv/bread@sha256:bf9f60e777852145e9e6c06fac109c6d55fec43bd535b6b13d3608c34711060b \ -i 'gamma=1' \ -i 'image="https://replicate.delivery/pbxt/J158QPjAgMI9KZ3ZiIojUGDiXwanqKHiTlm1tkr3EfsJiPPI/DSC07817.JPG"' \ -i 'strength=0.05'
To learn more, take a look at the Cog documentation.
Pull and run mingcv/bread 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/mingcv/bread@sha256:bf9f60e777852145e9e6c06fac109c6d55fec43bd535b6b13d3608c34711060b
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "gamma": 1, "image": "https://replicate.delivery/pbxt/J158QPjAgMI9KZ3ZiIojUGDiXwanqKHiTlm1tkr3EfsJiPPI/DSC07817.JPG", "strength": 0.05 } }' \ http://localhost:5000/predictions
Output
{ "completed_at": "2023-06-17T11:20:28.050628Z", "created_at": "2023-06-17T11:20:26.160478Z", "data_removed": false, "error": null, "id": "kicfn6zb43qz3zl7icrxrx7gbe", "input": { "gamma": 1, "image": "https://replicate.delivery/pbxt/J158QPjAgMI9KZ3ZiIojUGDiXwanqKHiTlm1tkr3EfsJiPPI/DSC07817.JPG", "strength": 0.05 }, "logs": null, "metrics": { "predict_time": 1.918632, "total_time": 1.89015 }, "output": "https://replicate.delivery/pbxt/hfRcmwokITzQE6lxDZkyfaGoqctzPVayKHa5cDphZDb7j0GRA/enhanced.png", "started_at": "2023-06-17T11:20:26.131996Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/kicfn6zb43qz3zl7icrxrx7gbe", "cancel": "https://api.replicate.com/v1/predictions/kicfn6zb43qz3zl7icrxrx7gbe/cancel" }, "version": "6c93238edd5a3ad071b6314c328ec52ffa8e799f57747deedea37f8bb9d9d0f1" }
Generated in
Want to make some of these yourself?
Run this model