lucataco
/
gfpgan
Practical face restoration algorithm for *old photos* or *AI-generated faces* (for larger images)
Prediction
lucataco/gfpgan:66a607f2Input
{ "img": "https://replicate.delivery/pbxt/JHZ2LKetwYdZloCLgppQE3X8CgpRwBafF8xFq4vooBzem9Gl/gfpgan.jpg", "scale": 2, "version": "v1.4" }
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 lucataco/gfpgan using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "lucataco/gfpgan:66a607f2c8ee93966fb2759b0bb93f48a707f46d2f75df5d66db73d3b5d8337d", { input: { img: "https://replicate.delivery/pbxt/JHZ2LKetwYdZloCLgppQE3X8CgpRwBafF8xFq4vooBzem9Gl/gfpgan.jpg", scale: 2, version: "v1.4" } } ); 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 lucataco/gfpgan using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "lucataco/gfpgan:66a607f2c8ee93966fb2759b0bb93f48a707f46d2f75df5d66db73d3b5d8337d", input={ "img": "https://replicate.delivery/pbxt/JHZ2LKetwYdZloCLgppQE3X8CgpRwBafF8xFq4vooBzem9Gl/gfpgan.jpg", "scale": 2, "version": "v1.4" } ) 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 lucataco/gfpgan 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": "66a607f2c8ee93966fb2759b0bb93f48a707f46d2f75df5d66db73d3b5d8337d", "input": { "img": "https://replicate.delivery/pbxt/JHZ2LKetwYdZloCLgppQE3X8CgpRwBafF8xFq4vooBzem9Gl/gfpgan.jpg", "scale": 2, "version": "v1.4" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2023-08-02T21:46:26.764301Z", "created_at": "2023-08-02T21:46:23.119643Z", "data_removed": false, "error": null, "id": "ghyevqdb22davzquyj65icv2j4", "input": { "img": "https://replicate.delivery/pbxt/JHZ2LKetwYdZloCLgppQE3X8CgpRwBafF8xFq4vooBzem9Gl/gfpgan.jpg", "scale": 2, "version": "v1.4" }, "logs": "/tmp/tmpje8l81vtgfpgan.jpg v1.4 2.0 0.5", "metrics": { "predict_time": 3.655166, "total_time": 3.644658 }, "output": "https://replicate.delivery/pbxt/2gzoQ4x3tZrkMdBL8h4V8NKZefLmpExGRZHA5i3jTOejFQsiA/out..jpg", "started_at": "2023-08-02T21:46:23.109135Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/ghyevqdb22davzquyj65icv2j4", "cancel": "https://api.replicate.com/v1/predictions/ghyevqdb22davzquyj65icv2j4/cancel" }, "version": "66a607f2c8ee93966fb2759b0bb93f48a707f46d2f75df5d66db73d3b5d8337d" }
Generated in/tmp/tmpje8l81vtgfpgan.jpg v1.4 2.0 0.5
Prediction
lucataco/gfpgan:66a607f2Input
{ "img": "https://replicate.delivery/pbxt/JHZ2m3t9XlZLU42qQMbkIWCCenlNYpY6JTRgnCpHf0HBZkli/187400981-8a58f7a4-ef61-42d9-af80-bc6234cef860.jpg", "scale": 2, "version": "v1.4" }
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 lucataco/gfpgan using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "lucataco/gfpgan:66a607f2c8ee93966fb2759b0bb93f48a707f46d2f75df5d66db73d3b5d8337d", { input: { img: "https://replicate.delivery/pbxt/JHZ2m3t9XlZLU42qQMbkIWCCenlNYpY6JTRgnCpHf0HBZkli/187400981-8a58f7a4-ef61-42d9-af80-bc6234cef860.jpg", scale: 2, version: "v1.4" } } ); 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 lucataco/gfpgan using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "lucataco/gfpgan:66a607f2c8ee93966fb2759b0bb93f48a707f46d2f75df5d66db73d3b5d8337d", input={ "img": "https://replicate.delivery/pbxt/JHZ2m3t9XlZLU42qQMbkIWCCenlNYpY6JTRgnCpHf0HBZkli/187400981-8a58f7a4-ef61-42d9-af80-bc6234cef860.jpg", "scale": 2, "version": "v1.4" } ) 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 lucataco/gfpgan 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": "66a607f2c8ee93966fb2759b0bb93f48a707f46d2f75df5d66db73d3b5d8337d", "input": { "img": "https://replicate.delivery/pbxt/JHZ2m3t9XlZLU42qQMbkIWCCenlNYpY6JTRgnCpHf0HBZkli/187400981-8a58f7a4-ef61-42d9-af80-bc6234cef860.jpg", "scale": 2, "version": "v1.4" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2023-08-02T21:46:52.006191Z", "created_at": "2023-08-02T21:46:49.833054Z", "data_removed": false, "error": null, "id": "234z3rdb44rrmjqe2evrpofg7u", "input": { "img": "https://replicate.delivery/pbxt/JHZ2m3t9XlZLU42qQMbkIWCCenlNYpY6JTRgnCpHf0HBZkli/187400981-8a58f7a4-ef61-42d9-af80-bc6234cef860.jpg", "scale": 2, "version": "v1.4" }, "logs": "/tmp/tmpx1eg4vrm187400981-8a58f7a4-ef61-42d9-af80-bc6234cef860.jpg v1.4 2.0 0.5", "metrics": { "predict_time": 2.208082, "total_time": 2.173137 }, "output": "https://replicate.delivery/pbxt/CKMMiY137QpKMJDeentHCuyWzsubHGum2cSBzXFGSPzLDIWRA/out..jpg", "started_at": "2023-08-02T21:46:49.798109Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/234z3rdb44rrmjqe2evrpofg7u", "cancel": "https://api.replicate.com/v1/predictions/234z3rdb44rrmjqe2evrpofg7u/cancel" }, "version": "66a607f2c8ee93966fb2759b0bb93f48a707f46d2f75df5d66db73d3b5d8337d" }
Generated in/tmp/tmpx1eg4vrm187400981-8a58f7a4-ef61-42d9-af80-bc6234cef860.jpg v1.4 2.0 0.5
Prediction
lucataco/gfpgan:66a607f2IDrgtwwe3bbesbij5sy3uzjxa4oeStatusSucceededSourceWebHardwareA40Total durationCreatedInput
{ "img": "https://replicate.delivery/pbxt/JHZ2uylkUg9Z2fkUIvyrMbUaSxIdOk8MpJ7iHS9XMKKQFoVQ/187401133-8a3bf269-5b4d-4432-b2f0-6d26ee1d3307.png", "scale": 2, "version": "v1.4" }
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 lucataco/gfpgan using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "lucataco/gfpgan:66a607f2c8ee93966fb2759b0bb93f48a707f46d2f75df5d66db73d3b5d8337d", { input: { img: "https://replicate.delivery/pbxt/JHZ2uylkUg9Z2fkUIvyrMbUaSxIdOk8MpJ7iHS9XMKKQFoVQ/187401133-8a3bf269-5b4d-4432-b2f0-6d26ee1d3307.png", scale: 2, version: "v1.4" } } ); 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 lucataco/gfpgan using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "lucataco/gfpgan:66a607f2c8ee93966fb2759b0bb93f48a707f46d2f75df5d66db73d3b5d8337d", input={ "img": "https://replicate.delivery/pbxt/JHZ2uylkUg9Z2fkUIvyrMbUaSxIdOk8MpJ7iHS9XMKKQFoVQ/187401133-8a3bf269-5b4d-4432-b2f0-6d26ee1d3307.png", "scale": 2, "version": "v1.4" } ) 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 lucataco/gfpgan 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": "66a607f2c8ee93966fb2759b0bb93f48a707f46d2f75df5d66db73d3b5d8337d", "input": { "img": "https://replicate.delivery/pbxt/JHZ2uylkUg9Z2fkUIvyrMbUaSxIdOk8MpJ7iHS9XMKKQFoVQ/187401133-8a3bf269-5b4d-4432-b2f0-6d26ee1d3307.png", "scale": 2, "version": "v1.4" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2023-08-02T21:47:02.288050Z", "created_at": "2023-08-02T21:46:59.452314Z", "data_removed": false, "error": null, "id": "rgtwwe3bbesbij5sy3uzjxa4oe", "input": { "img": "https://replicate.delivery/pbxt/JHZ2uylkUg9Z2fkUIvyrMbUaSxIdOk8MpJ7iHS9XMKKQFoVQ/187401133-8a3bf269-5b4d-4432-b2f0-6d26ee1d3307.png", "scale": 2, "version": "v1.4" }, "logs": "/tmp/tmpibtkyf82187401133-8a3bf269-5b4d-4432-b2f0-6d26ee1d3307.png v1.4 2.0 0.5", "metrics": { "predict_time": 3.753529, "total_time": 2.835736 }, "output": "https://replicate.delivery/pbxt/c8STsGiCcG5BOpvPp0cmoOnbx9NNgeJkAvim5VSZdwtqBErIA/out..png", "started_at": "2023-08-02T21:46:58.534521Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/rgtwwe3bbesbij5sy3uzjxa4oe", "cancel": "https://api.replicate.com/v1/predictions/rgtwwe3bbesbij5sy3uzjxa4oe/cancel" }, "version": "66a607f2c8ee93966fb2759b0bb93f48a707f46d2f75df5d66db73d3b5d8337d" }
Generated in/tmp/tmpibtkyf82187401133-8a3bf269-5b4d-4432-b2f0-6d26ee1d3307.png v1.4 2.0 0.5
Prediction
lucataco/gfpgan:66a607f2IDaigoy3lbzzppojegmd7kwfj644StatusSucceededSourceWebHardwareA40Total durationCreatedInput
{ "img": "https://replicate.delivery/pbxt/JHZ3EWjk4So7uLYChYiTWvmo9xm34aee6E5dg5ELXOgdo8Gq/AAA9hAAAPYQGoP6dpAAAKT2lD.png", "scale": 2, "version": "v1.3" }
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 lucataco/gfpgan using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "lucataco/gfpgan:66a607f2c8ee93966fb2759b0bb93f48a707f46d2f75df5d66db73d3b5d8337d", { input: { img: "https://replicate.delivery/pbxt/JHZ3EWjk4So7uLYChYiTWvmo9xm34aee6E5dg5ELXOgdo8Gq/AAA9hAAAPYQGoP6dpAAAKT2lD.png", scale: 2, version: "v1.3" } } ); 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 lucataco/gfpgan using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "lucataco/gfpgan:66a607f2c8ee93966fb2759b0bb93f48a707f46d2f75df5d66db73d3b5d8337d", input={ "img": "https://replicate.delivery/pbxt/JHZ3EWjk4So7uLYChYiTWvmo9xm34aee6E5dg5ELXOgdo8Gq/AAA9hAAAPYQGoP6dpAAAKT2lD.png", "scale": 2, "version": "v1.3" } ) 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 lucataco/gfpgan 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": "66a607f2c8ee93966fb2759b0bb93f48a707f46d2f75df5d66db73d3b5d8337d", "input": { "img": "https://replicate.delivery/pbxt/JHZ3EWjk4So7uLYChYiTWvmo9xm34aee6E5dg5ELXOgdo8Gq/AAA9hAAAPYQGoP6dpAAAKT2lD.png", "scale": 2, "version": "v1.3" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2023-08-02T21:47:22.265846Z", "created_at": "2023-08-02T21:47:18.911771Z", "data_removed": false, "error": null, "id": "aigoy3lbzzppojegmd7kwfj644", "input": { "img": "https://replicate.delivery/pbxt/JHZ3EWjk4So7uLYChYiTWvmo9xm34aee6E5dg5ELXOgdo8Gq/AAA9hAAAPYQGoP6dpAAAKT2lD.png", "scale": 2, "version": "v1.3" }, "logs": "/tmp/tmph8ko56viAAA9hAAAPYQGoP6dpAAAKT2lD.png v1.3 2.00.5", "metrics": { "predict_time": 3.339353, "total_time": 3.354075 }, "output": "https://replicate.delivery/pbxt/hjzSzMlXpqKBIR3BPO89gRw0euU3uUhxwTQNlmgtAyv0BErIA/out..png", "started_at": "2023-08-02T21:47:18.926493Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/aigoy3lbzzppojegmd7kwfj644", "cancel": "https://api.replicate.com/v1/predictions/aigoy3lbzzppojegmd7kwfj644/cancel" }, "version": "66a607f2c8ee93966fb2759b0bb93f48a707f46d2f75df5d66db73d3b5d8337d" }
Generated in/tmp/tmph8ko56viAAA9hAAAPYQGoP6dpAAAKT2lD.png v1.3 2.00.5
Prediction
lucataco/gfpgan:66a607f2Input
{ "img": "https://replicate.delivery/pbxt/JHZ4Fx3YeSIMGk8x0uPROPKZBrNAPUGwvAD9J4Ej5zyx4IXP/gfpgan-large.png", "scale": 2, "version": "v1.4" }
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 lucataco/gfpgan using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "lucataco/gfpgan:66a607f2c8ee93966fb2759b0bb93f48a707f46d2f75df5d66db73d3b5d8337d", { input: { img: "https://replicate.delivery/pbxt/JHZ4Fx3YeSIMGk8x0uPROPKZBrNAPUGwvAD9J4Ej5zyx4IXP/gfpgan-large.png", scale: 2, version: "v1.4" } } ); 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 lucataco/gfpgan using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "lucataco/gfpgan:66a607f2c8ee93966fb2759b0bb93f48a707f46d2f75df5d66db73d3b5d8337d", input={ "img": "https://replicate.delivery/pbxt/JHZ4Fx3YeSIMGk8x0uPROPKZBrNAPUGwvAD9J4Ej5zyx4IXP/gfpgan-large.png", "scale": 2, "version": "v1.4" } ) 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 lucataco/gfpgan 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": "66a607f2c8ee93966fb2759b0bb93f48a707f46d2f75df5d66db73d3b5d8337d", "input": { "img": "https://replicate.delivery/pbxt/JHZ4Fx3YeSIMGk8x0uPROPKZBrNAPUGwvAD9J4Ej5zyx4IXP/gfpgan-large.png", "scale": 2, "version": "v1.4" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2023-08-02T21:48:28.816744Z", "created_at": "2023-08-02T21:48:23.822379Z", "data_removed": false, "error": null, "id": "6cd6kvtbmdyad5apnzo7ckk23m", "input": { "img": "https://replicate.delivery/pbxt/JHZ4Fx3YeSIMGk8x0uPROPKZBrNAPUGwvAD9J4Ej5zyx4IXP/gfpgan-large.png", "scale": 2, "version": "v1.4" }, "logs": "/tmp/tmp1oircjeggfpgan-large.png v1.4 2.0 0.5", "metrics": { "predict_time": 5.03921, "total_time": 4.994365 }, "output": "https://replicate.delivery/pbxt/YoICefceadfiwScwffqng14VeJS55Q6Y8UKWnBbgd0nzVCErIA/out..png", "started_at": "2023-08-02T21:48:23.777534Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/6cd6kvtbmdyad5apnzo7ckk23m", "cancel": "https://api.replicate.com/v1/predictions/6cd6kvtbmdyad5apnzo7ckk23m/cancel" }, "version": "66a607f2c8ee93966fb2759b0bb93f48a707f46d2f75df5d66db73d3b5d8337d" }
Generated in/tmp/tmp1oircjeggfpgan-large.png v1.4 2.0 0.5
Want to make some of these yourself?
Run this model