pvitoria
/
chromagan
An Adversarial Approach for Picture Colorization
Prediction
pvitoria/chromagan:94a9ed3bInput
{ "image": "https://replicate.delivery/mgxm/47b27563-97f1-466c-9fb1-0a6759867d02/ocean.png" }
Install Replicate’s Node.js client library:npm install replicate
Set theREPLICATE_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 pvitoria/chromagan using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "pvitoria/chromagan:94a9ed3bf283fcd3950a04a5cc2fba3588baec1a0843921ef8028934406827e6", { input: { image: "https://replicate.delivery/mgxm/47b27563-97f1-466c-9fb1-0a6759867d02/ocean.png" } } ); console.log(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
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the client:import replicate
Run pvitoria/chromagan using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "pvitoria/chromagan:94a9ed3bf283fcd3950a04a5cc2fba3588baec1a0843921ef8028934406827e6", input={ "image": "https://replicate.delivery/mgxm/47b27563-97f1-466c-9fb1-0a6759867d02/ocean.png" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run pvitoria/chromagan 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": "94a9ed3bf283fcd3950a04a5cc2fba3588baec1a0843921ef8028934406827e6", "input": { "image": "https://replicate.delivery/mgxm/47b27563-97f1-466c-9fb1-0a6759867d02/ocean.png" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
You can run this model locally using Cog. First, install Cog:brew install cog
If you don’t have Homebrew, there are other installation options available.
Run this to download the model and run it in your local environment:
cog predict r8.im/pvitoria/chromagan@sha256:94a9ed3bf283fcd3950a04a5cc2fba3588baec1a0843921ef8028934406827e6 \ -i 'image="https://replicate.delivery/mgxm/47b27563-97f1-466c-9fb1-0a6759867d02/ocean.png"'
To learn more, take a look at the Cog documentation.
Run this to download the model and run it in your local environment:
docker run -d -p 5000:5000 r8.im/pvitoria/chromagan@sha256:94a9ed3bf283fcd3950a04a5cc2fba3588baec1a0843921ef8028934406827e6
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "image": "https://replicate.delivery/mgxm/47b27563-97f1-466c-9fb1-0a6759867d02/ocean.png" } }' \ http://localhost:5000/predictions
To learn more, take a look at the Cog documentation.
Output
{ "completed_at": "2021-08-23T04:01:06.315169Z", "created_at": "2021-08-23T04:00:30.778140Z", "data_removed": false, "error": null, "id": "ttpqduqmf5grbe7fbcektcmh6y", "input": { "image": "https://replicate.delivery/mgxm/47b27563-97f1-466c-9fb1-0a6759867d02/ocean.png" }, "logs": null, "metrics": { "total_time": 35.537029 }, "output": [ { "file": "https://replicate.delivery/mgxm/f73ef115-ab8a-43ab-9beb-ef52b797006e/output.png" } ], "started_at": "2021-12-02T22:38:09.894767Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/ttpqduqmf5grbe7fbcektcmh6y", "cancel": "https://api.replicate.com/v1/predictions/ttpqduqmf5grbe7fbcektcmh6y/cancel" }, "version": "0a1bb7572513d3382fa20e22e03789cdb3cb5690d7acd72f3f387f50704087be" }
Prediction
pvitoria/chromagan:94a9ed3bIDp2i5k3os2zgefpx7z7vv6jw76qStatusSucceededSourceWebHardware–Total duration–CreatedInput
{ "image": "https://replicate.delivery/mgxm/56ccbb73-df2b-4a9c-ab14-1c2c69915793/fisherman.png" }
Install Replicate’s Node.js client library:npm install replicate
Set theREPLICATE_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 pvitoria/chromagan using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "pvitoria/chromagan:94a9ed3bf283fcd3950a04a5cc2fba3588baec1a0843921ef8028934406827e6", { input: { image: "https://replicate.delivery/mgxm/56ccbb73-df2b-4a9c-ab14-1c2c69915793/fisherman.png" } } ); console.log(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
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the client:import replicate
Run pvitoria/chromagan using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "pvitoria/chromagan:94a9ed3bf283fcd3950a04a5cc2fba3588baec1a0843921ef8028934406827e6", input={ "image": "https://replicate.delivery/mgxm/56ccbb73-df2b-4a9c-ab14-1c2c69915793/fisherman.png" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run pvitoria/chromagan 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": "94a9ed3bf283fcd3950a04a5cc2fba3588baec1a0843921ef8028934406827e6", "input": { "image": "https://replicate.delivery/mgxm/56ccbb73-df2b-4a9c-ab14-1c2c69915793/fisherman.png" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
You can run this model locally using Cog. First, install Cog:brew install cog
If you don’t have Homebrew, there are other installation options available.
Run this to download the model and run it in your local environment:
cog predict r8.im/pvitoria/chromagan@sha256:94a9ed3bf283fcd3950a04a5cc2fba3588baec1a0843921ef8028934406827e6 \ -i 'image="https://replicate.delivery/mgxm/56ccbb73-df2b-4a9c-ab14-1c2c69915793/fisherman.png"'
To learn more, take a look at the Cog documentation.
Run this to download the model and run it in your local environment:
docker run -d -p 5000:5000 r8.im/pvitoria/chromagan@sha256:94a9ed3bf283fcd3950a04a5cc2fba3588baec1a0843921ef8028934406827e6
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "image": "https://replicate.delivery/mgxm/56ccbb73-df2b-4a9c-ab14-1c2c69915793/fisherman.png" } }' \ http://localhost:5000/predictions
To learn more, take a look at the Cog documentation.
Output
{ "completed_at": "2021-08-23T04:01:57.627968Z", "created_at": "2021-08-23T04:01:55.222100Z", "data_removed": false, "error": null, "id": "p2i5k3os2zgefpx7z7vv6jw76q", "input": { "image": "https://replicate.delivery/mgxm/56ccbb73-df2b-4a9c-ab14-1c2c69915793/fisherman.png" }, "logs": null, "metrics": { "total_time": 2.405868 }, "output": [ { "file": "https://replicate.delivery/mgxm/5ddf43fd-1a75-41f1-991b-0061bea0f63c/output.png" } ], "started_at": "2022-03-29T13:55:07.435794Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/p2i5k3os2zgefpx7z7vv6jw76q", "cancel": "https://api.replicate.com/v1/predictions/p2i5k3os2zgefpx7z7vv6jw76q/cancel" }, "version": "0a1bb7572513d3382fa20e22e03789cdb3cb5690d7acd72f3f387f50704087be" }
Prediction
pvitoria/chromagan:94a9ed3bIDb34y4ybexndtlbvgxxtqiuo6byStatusSucceededSourceWebHardware–Total duration–CreatedInput
{ "image": "https://replicate.delivery/mgxm/4a3447b7-0082-4581-bf75-6f95f3c53ffa/bruschetta.png" }
Install Replicate’s Node.js client library:npm install replicate
Set theREPLICATE_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 pvitoria/chromagan using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "pvitoria/chromagan:94a9ed3bf283fcd3950a04a5cc2fba3588baec1a0843921ef8028934406827e6", { input: { image: "https://replicate.delivery/mgxm/4a3447b7-0082-4581-bf75-6f95f3c53ffa/bruschetta.png" } } ); console.log(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
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the client:import replicate
Run pvitoria/chromagan using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "pvitoria/chromagan:94a9ed3bf283fcd3950a04a5cc2fba3588baec1a0843921ef8028934406827e6", input={ "image": "https://replicate.delivery/mgxm/4a3447b7-0082-4581-bf75-6f95f3c53ffa/bruschetta.png" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run pvitoria/chromagan 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": "94a9ed3bf283fcd3950a04a5cc2fba3588baec1a0843921ef8028934406827e6", "input": { "image": "https://replicate.delivery/mgxm/4a3447b7-0082-4581-bf75-6f95f3c53ffa/bruschetta.png" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
You can run this model locally using Cog. First, install Cog:brew install cog
If you don’t have Homebrew, there are other installation options available.
Run this to download the model and run it in your local environment:
cog predict r8.im/pvitoria/chromagan@sha256:94a9ed3bf283fcd3950a04a5cc2fba3588baec1a0843921ef8028934406827e6 \ -i 'image="https://replicate.delivery/mgxm/4a3447b7-0082-4581-bf75-6f95f3c53ffa/bruschetta.png"'
To learn more, take a look at the Cog documentation.
Run this to download the model and run it in your local environment:
docker run -d -p 5000:5000 r8.im/pvitoria/chromagan@sha256:94a9ed3bf283fcd3950a04a5cc2fba3588baec1a0843921ef8028934406827e6
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "image": "https://replicate.delivery/mgxm/4a3447b7-0082-4581-bf75-6f95f3c53ffa/bruschetta.png" } }' \ http://localhost:5000/predictions
To learn more, take a look at the Cog documentation.
Output
{ "completed_at": "2021-08-23T04:02:18.203706Z", "created_at": "2021-08-23T04:02:16.455323Z", "data_removed": false, "error": null, "id": "b34y4ybexndtlbvgxxtqiuo6by", "input": { "image": "https://replicate.delivery/mgxm/4a3447b7-0082-4581-bf75-6f95f3c53ffa/bruschetta.png" }, "logs": null, "metrics": { "total_time": 1.748383 }, "output": [ { "file": "https://replicate.delivery/mgxm/84587ee5-eaf8-4b07-9491-58bce8879646/output.png" } ], "started_at": "2022-04-19T04:21:59.184247Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/b34y4ybexndtlbvgxxtqiuo6by", "cancel": "https://api.replicate.com/v1/predictions/b34y4ybexndtlbvgxxtqiuo6by/cancel" }, "version": "0a1bb7572513d3382fa20e22e03789cdb3cb5690d7acd72f3f387f50704087be" }
Want to make some of these yourself?
Run this model