menghanxia
/
reversiblehalftoning
Deep Halftoning with Reversible Binary Pattern
Prediction
menghanxia/reversiblehalftoning:aa0216c7IDv7vgq53fhralvejev2vt5vfk6aStatusSucceededSourceWebHardware–Total duration–CreatedInput
{ "image": "https://replicate.delivery/mgxm/fae1abee-82e3-4e82-885b-20a803d2097e/06.png", "halftone_only": false }
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 menghanxia/reversiblehalftoning using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "menghanxia/reversiblehalftoning:aa0216c7968dd050f73f3f3d5eee023c07bc5d265cb06b44c6dd94fb31ce973b", { input: { image: "https://replicate.delivery/mgxm/fae1abee-82e3-4e82-885b-20a803d2097e/06.png", halftone_only: false } } ); 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 menghanxia/reversiblehalftoning using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "menghanxia/reversiblehalftoning:aa0216c7968dd050f73f3f3d5eee023c07bc5d265cb06b44c6dd94fb31ce973b", input={ "image": "https://replicate.delivery/mgxm/fae1abee-82e3-4e82-885b-20a803d2097e/06.png", "halftone_only": False } ) # The menghanxia/reversiblehalftoning model can stream output as it's running. # The predict method returns an iterator, and you can iterate over that output. for item in output: # https://replicate.com/menghanxia/reversiblehalftoning/api#output-schema print(item)
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 menghanxia/reversiblehalftoning 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": "aa0216c7968dd050f73f3f3d5eee023c07bc5d265cb06b44c6dd94fb31ce973b", "input": { "image": "https://replicate.delivery/mgxm/fae1abee-82e3-4e82-885b-20a803d2097e/06.png", "halftone_only": false } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2021-11-02T01:45:20.416857Z", "created_at": "2021-11-02T01:45:18.047625Z", "data_removed": false, "error": null, "id": "v7vgq53fhralvejev2vt5vfk6a", "input": { "image": "https://replicate.delivery/mgxm/fae1abee-82e3-4e82-885b-20a803d2097e/06.png", "halftone_only": false }, "logs": null, "metrics": { "total_time": 2.369232 }, "output": [ { "file": "https://replicate.delivery/mgxm/df23a883-23bf-4b74-893e-17751b62f226/out.png" } ], "started_at": "2022-05-05T03:39:44.720299Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/v7vgq53fhralvejev2vt5vfk6a", "cancel": "https://api.replicate.com/v1/predictions/v7vgq53fhralvejev2vt5vfk6a/cancel" }, "version": "aa0216c7968dd050f73f3f3d5eee023c07bc5d265cb06b44c6dd94fb31ce973b" }
Prediction
menghanxia/reversiblehalftoning:aa0216c7IDvkharp5ahbey3kjqas2x3fstaaStatusSucceededSourceWebHardware–Total duration–CreatedInput
{ "image": "https://replicate.delivery/mgxm/1d52f8fd-0ff8-41d3-8d01-030a0f1ac4e7/wave.jpg", "halftone_only": false }
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 menghanxia/reversiblehalftoning using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "menghanxia/reversiblehalftoning:aa0216c7968dd050f73f3f3d5eee023c07bc5d265cb06b44c6dd94fb31ce973b", { input: { image: "https://replicate.delivery/mgxm/1d52f8fd-0ff8-41d3-8d01-030a0f1ac4e7/wave.jpg", halftone_only: false } } ); 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 menghanxia/reversiblehalftoning using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "menghanxia/reversiblehalftoning:aa0216c7968dd050f73f3f3d5eee023c07bc5d265cb06b44c6dd94fb31ce973b", input={ "image": "https://replicate.delivery/mgxm/1d52f8fd-0ff8-41d3-8d01-030a0f1ac4e7/wave.jpg", "halftone_only": False } ) # The menghanxia/reversiblehalftoning model can stream output as it's running. # The predict method returns an iterator, and you can iterate over that output. for item in output: # https://replicate.com/menghanxia/reversiblehalftoning/api#output-schema print(item)
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 menghanxia/reversiblehalftoning 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": "aa0216c7968dd050f73f3f3d5eee023c07bc5d265cb06b44c6dd94fb31ce973b", "input": { "image": "https://replicate.delivery/mgxm/1d52f8fd-0ff8-41d3-8d01-030a0f1ac4e7/wave.jpg", "halftone_only": false } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2021-10-30T22:05:40.136340Z", "created_at": "2021-10-30T22:05:38.102690Z", "data_removed": false, "error": null, "id": "vkharp5ahbey3kjqas2x3fstaa", "input": { "image": "https://replicate.delivery/mgxm/1d52f8fd-0ff8-41d3-8d01-030a0f1ac4e7/wave.jpg", "halftone_only": false }, "logs": null, "metrics": {}, "output": [ { "file": "https://replicate.delivery/mgxm/c3e2864e-43d7-4f52-9cd3-2aed881fc556/out.png" } ], "started_at": null, "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/vkharp5ahbey3kjqas2x3fstaa", "cancel": "https://api.replicate.com/v1/predictions/vkharp5ahbey3kjqas2x3fstaa/cancel" }, "version": "aa0216c7968dd050f73f3f3d5eee023c07bc5d265cb06b44c6dd94fb31ce973b" }
Prediction
menghanxia/reversiblehalftoning:aa0216c7IDdc7xnalhfbh5thsez7nplnl66eStatusSucceededSourceWebHardware–Total duration–CreatedInput
{ "image": "https://replicate.delivery/mgxm/44c4e7f9-6917-477c-bf93-ee272b0fad30/05.png", "halftone_only": false }
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 menghanxia/reversiblehalftoning using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "menghanxia/reversiblehalftoning:aa0216c7968dd050f73f3f3d5eee023c07bc5d265cb06b44c6dd94fb31ce973b", { input: { image: "https://replicate.delivery/mgxm/44c4e7f9-6917-477c-bf93-ee272b0fad30/05.png", halftone_only: false } } ); 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 menghanxia/reversiblehalftoning using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "menghanxia/reversiblehalftoning:aa0216c7968dd050f73f3f3d5eee023c07bc5d265cb06b44c6dd94fb31ce973b", input={ "image": "https://replicate.delivery/mgxm/44c4e7f9-6917-477c-bf93-ee272b0fad30/05.png", "halftone_only": False } ) # The menghanxia/reversiblehalftoning model can stream output as it's running. # The predict method returns an iterator, and you can iterate over that output. for item in output: # https://replicate.com/menghanxia/reversiblehalftoning/api#output-schema print(item)
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 menghanxia/reversiblehalftoning 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": "aa0216c7968dd050f73f3f3d5eee023c07bc5d265cb06b44c6dd94fb31ce973b", "input": { "image": "https://replicate.delivery/mgxm/44c4e7f9-6917-477c-bf93-ee272b0fad30/05.png", "halftone_only": false } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2021-11-02T01:45:00.234939Z", "created_at": "2021-11-02T01:44:36.327089Z", "data_removed": false, "error": null, "id": "dc7xnalhfbh5thsez7nplnl66e", "input": { "image": "https://replicate.delivery/mgxm/44c4e7f9-6917-477c-bf93-ee272b0fad30/05.png", "halftone_only": false }, "logs": null, "metrics": {}, "output": [ { "file": "https://replicate.delivery/mgxm/a8b91e90-b6a1-46a3-85ce-d0303703dfbe/out.png" } ], "started_at": null, "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/dc7xnalhfbh5thsez7nplnl66e", "cancel": "https://api.replicate.com/v1/predictions/dc7xnalhfbh5thsez7nplnl66e/cancel" }, "version": "aa0216c7968dd050f73f3f3d5eee023c07bc5d265cb06b44c6dd94fb31ce973b" }
Prediction
menghanxia/reversiblehalftoning:aa0216c7IDwrmbhiczsfhabplzi7wjpvuciaStatusSucceededSourceWebHardware–Total duration–CreatedInput
{ "image": "https://replicate.delivery/mgxm/bc43d2c0-8295-4287-aa62-d3fde0e85826/08.png", "halftone_only": false }
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 menghanxia/reversiblehalftoning using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "menghanxia/reversiblehalftoning:aa0216c7968dd050f73f3f3d5eee023c07bc5d265cb06b44c6dd94fb31ce973b", { input: { image: "https://replicate.delivery/mgxm/bc43d2c0-8295-4287-aa62-d3fde0e85826/08.png", halftone_only: false } } ); 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 menghanxia/reversiblehalftoning using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "menghanxia/reversiblehalftoning:aa0216c7968dd050f73f3f3d5eee023c07bc5d265cb06b44c6dd94fb31ce973b", input={ "image": "https://replicate.delivery/mgxm/bc43d2c0-8295-4287-aa62-d3fde0e85826/08.png", "halftone_only": False } ) # The menghanxia/reversiblehalftoning model can stream output as it's running. # The predict method returns an iterator, and you can iterate over that output. for item in output: # https://replicate.com/menghanxia/reversiblehalftoning/api#output-schema print(item)
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 menghanxia/reversiblehalftoning 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": "aa0216c7968dd050f73f3f3d5eee023c07bc5d265cb06b44c6dd94fb31ce973b", "input": { "image": "https://replicate.delivery/mgxm/bc43d2c0-8295-4287-aa62-d3fde0e85826/08.png", "halftone_only": false } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2021-11-02T01:47:58.651175Z", "created_at": "2021-11-02T01:47:56.448106Z", "data_removed": false, "error": null, "id": "wrmbhiczsfhabplzi7wjpvucia", "input": { "image": "https://replicate.delivery/mgxm/bc43d2c0-8295-4287-aa62-d3fde0e85826/08.png", "halftone_only": false }, "logs": null, "metrics": { "total_time": 2.203069 }, "output": [ { "file": "https://replicate.delivery/mgxm/a55cbec6-04fd-4e54-8a1e-873c052c1ae5/out.png" } ], "started_at": "2022-01-20T14:48:43.399858Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/wrmbhiczsfhabplzi7wjpvucia", "cancel": "https://api.replicate.com/v1/predictions/wrmbhiczsfhabplzi7wjpvucia/cancel" }, "version": "aa0216c7968dd050f73f3f3d5eee023c07bc5d265cb06b44c6dd94fb31ce973b" }
Want to make some of these yourself?
Run this model