yangxy
/
gpen
Blind Face Restoration in the Wild
Prediction
yangxy/gpen:cf4e15a7ModelIDfpqg4uiaizgrnc2z4lkub6iyceStatusSucceededSourceWebHardware–Total duration–Createdby @chenxwhInput
{ "task": "Face Restoration", "image": "https://replicate.delivery/mgxm/9e77a2c1-3448-487e-8899-1843a52a70e2/Solvay_conference_1927.png", "broken_image": true, "output_individual": false }
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 yangxy/gpen using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "yangxy/gpen:cf4e15a70049c0119884eb2906c8ae8807af8317bea98313fefd941e414d0c91", { input: { task: "Face Restoration", image: "https://replicate.delivery/mgxm/9e77a2c1-3448-487e-8899-1843a52a70e2/Solvay_conference_1927.png", broken_image: true, output_individual: false } } ); 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 yangxy/gpen using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "yangxy/gpen:cf4e15a70049c0119884eb2906c8ae8807af8317bea98313fefd941e414d0c91", input={ "task": "Face Restoration", "image": "https://replicate.delivery/mgxm/9e77a2c1-3448-487e-8899-1843a52a70e2/Solvay_conference_1927.png", "broken_image": True, "output_individual": False } ) 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 yangxy/gpen 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": "cf4e15a70049c0119884eb2906c8ae8807af8317bea98313fefd941e414d0c91", "input": { "task": "Face Restoration", "image": "https://replicate.delivery/mgxm/9e77a2c1-3448-487e-8899-1843a52a70e2/Solvay_conference_1927.png", "broken_image": true, "output_individual": 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-06T18:35:41.982517Z", "created_at": "2021-10-06T18:32:47.436929Z", "data_removed": false, "error": null, "id": "fpqg4uiaizgrnc2z4lkub6iyce", "input": { "task": "Face Restoration", "image": "https://replicate.delivery/mgxm/9e77a2c1-3448-487e-8899-1843a52a70e2/Solvay_conference_1927.png", "broken_image": true, "output_individual": false }, "logs": null, "metrics": { "total_time": 174.545588 }, "output": [ { "file": "https://replicate.delivery/mgxm/a79d403f-ab71-4a23-a976-59a25341dcb3/out.png" } ], "started_at": "2021-12-29T06:48:06.371152Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/fpqg4uiaizgrnc2z4lkub6iyce", "cancel": "https://api.replicate.com/v1/predictions/fpqg4uiaizgrnc2z4lkub6iyce/cancel" }, "version": "2210792a20342fd95fdc39dd96a9502ea588fd8f873019e24aee7363a70a6adf" }
Prediction
yangxy/gpen:cf4e15a7ModelIDsvbqg5vktzgahjhzal5x7bkwkuStatusSucceededSourceWebHardware–Total duration–CreatedInput
{ "task": "Face Restoration", "image": "https://replicate.delivery/mgxm/09e67425-bf5b-4a65-ad8d-9e6992add341/Solvay_conference_1927.png", "broken_image": true, "output_individual": true }
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 yangxy/gpen using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "yangxy/gpen:cf4e15a70049c0119884eb2906c8ae8807af8317bea98313fefd941e414d0c91", { input: { task: "Face Restoration", image: "https://replicate.delivery/mgxm/09e67425-bf5b-4a65-ad8d-9e6992add341/Solvay_conference_1927.png", broken_image: true, output_individual: true } } ); 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 yangxy/gpen using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "yangxy/gpen:cf4e15a70049c0119884eb2906c8ae8807af8317bea98313fefd941e414d0c91", input={ "task": "Face Restoration", "image": "https://replicate.delivery/mgxm/09e67425-bf5b-4a65-ad8d-9e6992add341/Solvay_conference_1927.png", "broken_image": True, "output_individual": True } ) 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 yangxy/gpen 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": "cf4e15a70049c0119884eb2906c8ae8807af8317bea98313fefd941e414d0c91", "input": { "task": "Face Restoration", "image": "https://replicate.delivery/mgxm/09e67425-bf5b-4a65-ad8d-9e6992add341/Solvay_conference_1927.png", "broken_image": true, "output_individual": true } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2021-10-06T18:36:08.202504Z", "created_at": "2021-10-06T18:36:03.111425Z", "data_removed": false, "error": null, "id": "svbqg5vktzgahjhzal5x7bkwku", "input": { "task": "Face Restoration", "image": "https://replicate.delivery/mgxm/09e67425-bf5b-4a65-ad8d-9e6992add341/Solvay_conference_1927.png", "broken_image": true, "output_individual": true }, "logs": null, "metrics": {}, "output": [ { "file": "https://replicate.delivery/mgxm/f1dba4ba-1a86-4301-bca8-544bfa53ed6f/out.zip" } ], "started_at": null, "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/svbqg5vktzgahjhzal5x7bkwku", "cancel": "https://api.replicate.com/v1/predictions/svbqg5vktzgahjhzal5x7bkwku/cancel" }, "version": "2210792a20342fd95fdc39dd96a9502ea588fd8f873019e24aee7363a70a6adf" }
Prediction
yangxy/gpen:cf4e15a7ModelIDtzyggq3t55gkbai3stsbovb56eStatusSucceededSourceWebHardware–Total duration–Createdby @chenxwhInput
{ "task": "Face Colorization", "image": "https://replicate.delivery/mgxm/2accac52-d86d-4829-9148-2ca42e65a4ba/762000_gray.png", "broken_image": false, "output_individual": false }
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 yangxy/gpen using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "yangxy/gpen:cf4e15a70049c0119884eb2906c8ae8807af8317bea98313fefd941e414d0c91", { input: { task: "Face Colorization", image: "https://replicate.delivery/mgxm/2accac52-d86d-4829-9148-2ca42e65a4ba/762000_gray.png", broken_image: false, output_individual: false } } ); 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 yangxy/gpen using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "yangxy/gpen:cf4e15a70049c0119884eb2906c8ae8807af8317bea98313fefd941e414d0c91", input={ "task": "Face Colorization", "image": "https://replicate.delivery/mgxm/2accac52-d86d-4829-9148-2ca42e65a4ba/762000_gray.png", "broken_image": False, "output_individual": False } ) 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 yangxy/gpen 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": "cf4e15a70049c0119884eb2906c8ae8807af8317bea98313fefd941e414d0c91", "input": { "task": "Face Colorization", "image": "https://replicate.delivery/mgxm/2accac52-d86d-4829-9148-2ca42e65a4ba/762000_gray.png", "broken_image": false, "output_individual": 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-06T18:37:07.356507Z", "created_at": "2021-10-06T18:37:02.952812Z", "data_removed": false, "error": null, "id": "tzyggq3t55gkbai3stsbovb56e", "input": { "task": "Face Colorization", "image": "https://replicate.delivery/mgxm/2accac52-d86d-4829-9148-2ca42e65a4ba/762000_gray.png", "broken_image": false, "output_individual": false }, "logs": null, "metrics": { "total_time": 4.403695 }, "output": [ { "file": "https://replicate.delivery/mgxm/b99bcf03-fc55-4f51-811d-577d884b1b6d/out.png" } ], "started_at": "2023-08-17T10:42:05.003027Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/tzyggq3t55gkbai3stsbovb56e", "cancel": "https://api.replicate.com/v1/predictions/tzyggq3t55gkbai3stsbovb56e/cancel" }, "version": "2210792a20342fd95fdc39dd96a9502ea588fd8f873019e24aee7363a70a6adf" }
Prediction
yangxy/gpen:cf4e15a7ModelIDcts52g2adzh65g7jalmqae6z6eStatusSucceededSourceWebHardware–Total duration–Createdby @chenxwhInput
{ "task": "Face Colorization", "image": "https://replicate.delivery/mgxm/158dc779-aa50-4d69-8c6d-cf58665e899e/106000_gray.png", "broken_image": false, "output_individual": false }
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 yangxy/gpen using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "yangxy/gpen:cf4e15a70049c0119884eb2906c8ae8807af8317bea98313fefd941e414d0c91", { input: { task: "Face Colorization", image: "https://replicate.delivery/mgxm/158dc779-aa50-4d69-8c6d-cf58665e899e/106000_gray.png", broken_image: false, output_individual: false } } ); 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 yangxy/gpen using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "yangxy/gpen:cf4e15a70049c0119884eb2906c8ae8807af8317bea98313fefd941e414d0c91", input={ "task": "Face Colorization", "image": "https://replicate.delivery/mgxm/158dc779-aa50-4d69-8c6d-cf58665e899e/106000_gray.png", "broken_image": False, "output_individual": False } ) 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 yangxy/gpen 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": "cf4e15a70049c0119884eb2906c8ae8807af8317bea98313fefd941e414d0c91", "input": { "task": "Face Colorization", "image": "https://replicate.delivery/mgxm/158dc779-aa50-4d69-8c6d-cf58665e899e/106000_gray.png", "broken_image": false, "output_individual": 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-06T18:37:38.528515Z", "created_at": "2021-10-06T18:37:35.893912Z", "data_removed": false, "error": null, "id": "cts52g2adzh65g7jalmqae6z6e", "input": { "task": "Face Colorization", "image": "https://replicate.delivery/mgxm/158dc779-aa50-4d69-8c6d-cf58665e899e/106000_gray.png", "broken_image": false, "output_individual": false }, "logs": null, "metrics": { "total_time": 2.634603 }, "output": [ { "file": "https://replicate.delivery/mgxm/f6e7092a-5afb-4ef0-abea-8553b00856b6/out.png" } ], "started_at": "2023-04-28T08:11:29.993270Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/cts52g2adzh65g7jalmqae6z6e", "cancel": "https://api.replicate.com/v1/predictions/cts52g2adzh65g7jalmqae6z6e/cancel" }, "version": "2210792a20342fd95fdc39dd96a9502ea588fd8f873019e24aee7363a70a6adf" }
Prediction
yangxy/gpen:cf4e15a7ModelID6vxcqd4fcbhlzf5arlogmk2wjiStatusSucceededSourceWebHardware–Total duration–CreatedInput
{ "task": "Face Colorization", "image": "https://replicate.delivery/mgxm/1c2ea4ae-0591-49ee-a023-9102153133f3/813000_gray.png", "broken_image": false, "output_individual": false }
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 yangxy/gpen using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "yangxy/gpen:cf4e15a70049c0119884eb2906c8ae8807af8317bea98313fefd941e414d0c91", { input: { task: "Face Colorization", image: "https://replicate.delivery/mgxm/1c2ea4ae-0591-49ee-a023-9102153133f3/813000_gray.png", broken_image: false, output_individual: false } } ); 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 yangxy/gpen using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "yangxy/gpen:cf4e15a70049c0119884eb2906c8ae8807af8317bea98313fefd941e414d0c91", input={ "task": "Face Colorization", "image": "https://replicate.delivery/mgxm/1c2ea4ae-0591-49ee-a023-9102153133f3/813000_gray.png", "broken_image": False, "output_individual": False } ) 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 yangxy/gpen 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": "cf4e15a70049c0119884eb2906c8ae8807af8317bea98313fefd941e414d0c91", "input": { "task": "Face Colorization", "image": "https://replicate.delivery/mgxm/1c2ea4ae-0591-49ee-a023-9102153133f3/813000_gray.png", "broken_image": false, "output_individual": 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-06T18:37:54.861969Z", "created_at": "2021-10-06T18:37:52.487553Z", "data_removed": false, "error": null, "id": "6vxcqd4fcbhlzf5arlogmk2wji", "input": { "task": "Face Colorization", "image": "https://replicate.delivery/mgxm/1c2ea4ae-0591-49ee-a023-9102153133f3/813000_gray.png", "broken_image": false, "output_individual": false }, "logs": null, "metrics": {}, "output": [ { "file": "https://replicate.delivery/mgxm/a14b8330-845c-412e-851a-4e464d9ed6d9/out.png" } ], "started_at": null, "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/6vxcqd4fcbhlzf5arlogmk2wji", "cancel": "https://api.replicate.com/v1/predictions/6vxcqd4fcbhlzf5arlogmk2wji/cancel" }, "version": "2210792a20342fd95fdc39dd96a9502ea588fd8f873019e24aee7363a70a6adf" }
Prediction
yangxy/gpen:cf4e15a7ModelIDiarjnjg2cndexceon2wun25ctmStatusSucceededSourceWebHardware–Total duration–Createdby @chenxwhInput
{ "task": "Face Inpainting", "image": "https://replicate.delivery/mgxm/96da59c8-f922-4ead-9857-05b58a13954b/b1.png", "broken_image": true, "output_individual": false }
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 yangxy/gpen using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "yangxy/gpen:cf4e15a70049c0119884eb2906c8ae8807af8317bea98313fefd941e414d0c91", { input: { task: "Face Inpainting", image: "https://replicate.delivery/mgxm/96da59c8-f922-4ead-9857-05b58a13954b/b1.png", broken_image: true, output_individual: false } } ); 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 yangxy/gpen using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "yangxy/gpen:cf4e15a70049c0119884eb2906c8ae8807af8317bea98313fefd941e414d0c91", input={ "task": "Face Inpainting", "image": "https://replicate.delivery/mgxm/96da59c8-f922-4ead-9857-05b58a13954b/b1.png", "broken_image": True, "output_individual": False } ) 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 yangxy/gpen 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": "cf4e15a70049c0119884eb2906c8ae8807af8317bea98313fefd941e414d0c91", "input": { "task": "Face Inpainting", "image": "https://replicate.delivery/mgxm/96da59c8-f922-4ead-9857-05b58a13954b/b1.png", "broken_image": true, "output_individual": 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-06T18:39:33.478960Z", "created_at": "2021-10-06T18:39:31.078545Z", "data_removed": false, "error": null, "id": "iarjnjg2cndexceon2wun25ctm", "input": { "task": "Face Inpainting", "image": "https://replicate.delivery/mgxm/96da59c8-f922-4ead-9857-05b58a13954b/b1.png", "broken_image": true, "output_individual": false }, "logs": null, "metrics": { "total_time": 2.400415 }, "output": [ { "file": "https://replicate.delivery/mgxm/66cc9d48-c2cf-443d-8082-8436bec7dc42/out.png" } ], "started_at": "2022-12-04T05:54:17.517154Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/iarjnjg2cndexceon2wun25ctm", "cancel": "https://api.replicate.com/v1/predictions/iarjnjg2cndexceon2wun25ctm/cancel" }, "version": "2210792a20342fd95fdc39dd96a9502ea588fd8f873019e24aee7363a70a6adf" }
Prediction
yangxy/gpen:cf4e15a7ModelIDg7u2vfyrprgsfntbnfiq6ee2kiStatusSucceededSourceWebHardware–Total duration–CreatedInput
{ "task": "Face Inpainting", "image": "https://replicate.delivery/mgxm/efccce70-ec47-4ae1-bb49-c4059ca36537/00001.png", "broken_image": false, "output_individual": false }
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 yangxy/gpen using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "yangxy/gpen:cf4e15a70049c0119884eb2906c8ae8807af8317bea98313fefd941e414d0c91", { input: { task: "Face Inpainting", image: "https://replicate.delivery/mgxm/efccce70-ec47-4ae1-bb49-c4059ca36537/00001.png", broken_image: false, output_individual: false } } ); 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 yangxy/gpen using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "yangxy/gpen:cf4e15a70049c0119884eb2906c8ae8807af8317bea98313fefd941e414d0c91", input={ "task": "Face Inpainting", "image": "https://replicate.delivery/mgxm/efccce70-ec47-4ae1-bb49-c4059ca36537/00001.png", "broken_image": False, "output_individual": False } ) 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 yangxy/gpen 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": "cf4e15a70049c0119884eb2906c8ae8807af8317bea98313fefd941e414d0c91", "input": { "task": "Face Inpainting", "image": "https://replicate.delivery/mgxm/efccce70-ec47-4ae1-bb49-c4059ca36537/00001.png", "broken_image": false, "output_individual": 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-06T18:48:09.417334Z", "created_at": "2021-10-06T18:48:00.117646Z", "data_removed": false, "error": null, "id": "g7u2vfyrprgsfntbnfiq6ee2ki", "input": { "task": "Face Inpainting", "image": "https://replicate.delivery/mgxm/efccce70-ec47-4ae1-bb49-c4059ca36537/00001.png", "broken_image": false, "output_individual": false }, "logs": null, "metrics": { "total_time": 9.299688 }, "output": [ { "file": "https://replicate.delivery/mgxm/e8a15f4c-356c-45e8-a385-79c928363fb1/out.png" } ], "started_at": "2021-12-31T06:39:56.782636Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/g7u2vfyrprgsfntbnfiq6ee2ki", "cancel": "https://api.replicate.com/v1/predictions/g7u2vfyrprgsfntbnfiq6ee2ki/cancel" }, "version": "2684de9bd9d3b41a7a1942c52fb48b9f76c2f0a69d0309e473865da7eb6f5d69" }
Prediction
yangxy/gpen:cf4e15a7ModelIDv73dkux5orgspn46hikibrpy4qStatusSucceededSourceWebHardware–Total duration–Createdby @chenxwhInput
{ "task": "Face Inpainting", "image": "https://replicate.delivery/mgxm/ca352931-51d1-473e-bdee-bd723552eef5/00001.png", "broken_image": false, "output_individual": false }
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 yangxy/gpen using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "yangxy/gpen:cf4e15a70049c0119884eb2906c8ae8807af8317bea98313fefd941e414d0c91", { input: { task: "Face Inpainting", image: "https://replicate.delivery/mgxm/ca352931-51d1-473e-bdee-bd723552eef5/00001.png", broken_image: false, output_individual: false } } ); 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 yangxy/gpen using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "yangxy/gpen:cf4e15a70049c0119884eb2906c8ae8807af8317bea98313fefd941e414d0c91", input={ "task": "Face Inpainting", "image": "https://replicate.delivery/mgxm/ca352931-51d1-473e-bdee-bd723552eef5/00001.png", "broken_image": False, "output_individual": False } ) 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 yangxy/gpen 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": "cf4e15a70049c0119884eb2906c8ae8807af8317bea98313fefd941e414d0c91", "input": { "task": "Face Inpainting", "image": "https://replicate.delivery/mgxm/ca352931-51d1-473e-bdee-bd723552eef5/00001.png", "broken_image": false, "output_individual": 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-06T18:53:28.527540Z", "created_at": "2021-10-06T18:53:26.048980Z", "data_removed": false, "error": null, "id": "v73dkux5orgspn46hikibrpy4q", "input": { "task": "Face Inpainting", "image": "https://replicate.delivery/mgxm/ca352931-51d1-473e-bdee-bd723552eef5/00001.png", "broken_image": false, "output_individual": false }, "logs": null, "metrics": { "total_time": 2.47856 }, "output": [ { "file": "https://replicate.delivery/mgxm/c04e9f50-efe0-4f1e-834f-6b7cfc213e92/out.png" } ], "started_at": "2021-12-10T20:04:56.139356Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/v73dkux5orgspn46hikibrpy4q", "cancel": "https://api.replicate.com/v1/predictions/v73dkux5orgspn46hikibrpy4q/cancel" }, "version": "2684de9bd9d3b41a7a1942c52fb48b9f76c2f0a69d0309e473865da7eb6f5d69" }
Prediction
yangxy/gpen:cf4e15a7ModelIDtxoykvqka5hfbai66fs654ccweStatusSucceededSourceWebHardware–Total duration–Createdby @chenxwhInput
{ "task": "Face Restoration", "image": "https://replicate.delivery/mgxm/b4b36b25-2d90-49ce-89a1-b6c94bde24f8/oldphoto6.png", "broken_image": false, "output_individual": false }
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 yangxy/gpen using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "yangxy/gpen:cf4e15a70049c0119884eb2906c8ae8807af8317bea98313fefd941e414d0c91", { input: { task: "Face Restoration", image: "https://replicate.delivery/mgxm/b4b36b25-2d90-49ce-89a1-b6c94bde24f8/oldphoto6.png", broken_image: false, output_individual: false } } ); 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 yangxy/gpen using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "yangxy/gpen:cf4e15a70049c0119884eb2906c8ae8807af8317bea98313fefd941e414d0c91", input={ "task": "Face Restoration", "image": "https://replicate.delivery/mgxm/b4b36b25-2d90-49ce-89a1-b6c94bde24f8/oldphoto6.png", "broken_image": False, "output_individual": False } ) 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 yangxy/gpen 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": "cf4e15a70049c0119884eb2906c8ae8807af8317bea98313fefd941e414d0c91", "input": { "task": "Face Restoration", "image": "https://replicate.delivery/mgxm/b4b36b25-2d90-49ce-89a1-b6c94bde24f8/oldphoto6.png", "broken_image": false, "output_individual": 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-06T18:55:20.988135Z", "created_at": "2021-10-06T18:55:17.502098Z", "data_removed": false, "error": null, "id": "txoykvqka5hfbai66fs654ccwe", "input": { "task": "Face Restoration", "image": "https://replicate.delivery/mgxm/b4b36b25-2d90-49ce-89a1-b6c94bde24f8/oldphoto6.png", "broken_image": false, "output_individual": false }, "logs": null, "metrics": { "total_time": 3.486037 }, "output": [ { "file": "https://replicate.delivery/mgxm/53b95e7f-bb70-418a-95a5-7ea957951fc9/out.png" } ], "started_at": "2021-12-04T18:54:26.307031Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/txoykvqka5hfbai66fs654ccwe", "cancel": "https://api.replicate.com/v1/predictions/txoykvqka5hfbai66fs654ccwe/cancel" }, "version": "2684de9bd9d3b41a7a1942c52fb48b9f76c2f0a69d0309e473865da7eb6f5d69" }
Prediction
yangxy/gpen:cf4e15a7ModelIDhfk3cfthdfb4pemcs5efjnllpmStatusSucceededSourceWebHardware–Total duration–CreatedInput
{ "task": "Face Restoration", "image": "https://replicate.delivery/mgxm/9ad05129-cd64-47ba-8706-35722847284e/womanx4.png", "broken_image": false, "output_individual": false }
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 yangxy/gpen using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "yangxy/gpen:cf4e15a70049c0119884eb2906c8ae8807af8317bea98313fefd941e414d0c91", { input: { task: "Face Restoration", image: "https://replicate.delivery/mgxm/9ad05129-cd64-47ba-8706-35722847284e/womanx4.png", broken_image: false, output_individual: false } } ); 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 yangxy/gpen using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "yangxy/gpen:cf4e15a70049c0119884eb2906c8ae8807af8317bea98313fefd941e414d0c91", input={ "task": "Face Restoration", "image": "https://replicate.delivery/mgxm/9ad05129-cd64-47ba-8706-35722847284e/womanx4.png", "broken_image": False, "output_individual": False } ) 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 yangxy/gpen 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": "cf4e15a70049c0119884eb2906c8ae8807af8317bea98313fefd941e414d0c91", "input": { "task": "Face Restoration", "image": "https://replicate.delivery/mgxm/9ad05129-cd64-47ba-8706-35722847284e/womanx4.png", "broken_image": false, "output_individual": 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-06T18:56:17.460810Z", "created_at": "2021-10-06T18:56:15.423199Z", "data_removed": false, "error": null, "id": "hfk3cfthdfb4pemcs5efjnllpm", "input": { "task": "Face Restoration", "image": "https://replicate.delivery/mgxm/9ad05129-cd64-47ba-8706-35722847284e/womanx4.png", "broken_image": false, "output_individual": false }, "logs": null, "metrics": { "total_time": 2.037611 }, "output": [ { "file": "https://replicate.delivery/mgxm/91f0b7ef-1c55-43d2-be84-c1820b802f66/out.png" } ], "started_at": "2021-12-20T13:59:04.205218Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/hfk3cfthdfb4pemcs5efjnllpm", "cancel": "https://api.replicate.com/v1/predictions/hfk3cfthdfb4pemcs5efjnllpm/cancel" }, "version": "2684de9bd9d3b41a7a1942c52fb48b9f76c2f0a69d0309e473865da7eb6f5d69" }
Want to make some of these yourself?
Run this model