cjwbw
/
vqfr
Blind Face Restoration with Vector-Quantized Dictionary and Parallel Decoder
Prediction
cjwbw/vqfr:ccd53a9aInput
{ "image": "https://replicate.delivery/mgxm/5da1563f-ce05-4124-a504-3d9ebd311909/029_Blake_Lively_00_lq.png", "aligned": 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 cjwbw/vqfr using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "cjwbw/vqfr:ccd53a9a38ebbaa783a1e6318d22fa68c14c3aed66cc3589e53ef07d07f5be1d", { input: { image: "https://replicate.delivery/mgxm/5da1563f-ce05-4124-a504-3d9ebd311909/029_Blake_Lively_00_lq.png", aligned: 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 cjwbw/vqfr using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "cjwbw/vqfr:ccd53a9a38ebbaa783a1e6318d22fa68c14c3aed66cc3589e53ef07d07f5be1d", input={ "image": "https://replicate.delivery/mgxm/5da1563f-ce05-4124-a504-3d9ebd311909/029_Blake_Lively_00_lq.png", "aligned": 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 cjwbw/vqfr 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": "ccd53a9a38ebbaa783a1e6318d22fa68c14c3aed66cc3589e53ef07d07f5be1d", "input": { "image": "https://replicate.delivery/mgxm/5da1563f-ce05-4124-a504-3d9ebd311909/029_Blake_Lively_00_lq.png", "aligned": true } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2022-08-03T21:12:21.503235Z", "created_at": "2022-08-03T21:12:19.949955Z", "data_removed": false, "error": null, "id": "p2tvyydx7fbttk4muihivxzoay", "input": { "image": "https://replicate.delivery/mgxm/5da1563f-ce05-4124-a504-3d9ebd311909/029_Blake_Lively_00_lq.png", "aligned": true }, "logs": null, "metrics": { "predict_time": 1.377835, "total_time": 1.55328 }, "output": [ { "image": "https://replicate.delivery/mgxm/bc7a348f-60f5-40fb-89e4-ed3dd250cb31/output_0.png" } ], "started_at": "2022-08-03T21:12:20.125400Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/p2tvyydx7fbttk4muihivxzoay", "cancel": "https://api.replicate.com/v1/predictions/p2tvyydx7fbttk4muihivxzoay/cancel" }, "version": "ccd53a9a38ebbaa783a1e6318d22fa68c14c3aed66cc3589e53ef07d07f5be1d" }
Generated inPrediction
cjwbw/vqfr:ccd53a9aModelIDlx7mqlmdtzhgzalreksgfn2x6mStatusSucceededSourceWebHardware–Total durationCreatedInput
{ "image": "https://replicate.delivery/mgxm/bd67706d-20d7-4874-beef-e7a9a6385e3a/00001478_lq.png", "aligned": 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 cjwbw/vqfr using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "cjwbw/vqfr:ccd53a9a38ebbaa783a1e6318d22fa68c14c3aed66cc3589e53ef07d07f5be1d", { input: { image: "https://replicate.delivery/mgxm/bd67706d-20d7-4874-beef-e7a9a6385e3a/00001478_lq.png", aligned: 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 cjwbw/vqfr using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "cjwbw/vqfr:ccd53a9a38ebbaa783a1e6318d22fa68c14c3aed66cc3589e53ef07d07f5be1d", input={ "image": "https://replicate.delivery/mgxm/bd67706d-20d7-4874-beef-e7a9a6385e3a/00001478_lq.png", "aligned": 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 cjwbw/vqfr 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": "ccd53a9a38ebbaa783a1e6318d22fa68c14c3aed66cc3589e53ef07d07f5be1d", "input": { "image": "https://replicate.delivery/mgxm/bd67706d-20d7-4874-beef-e7a9a6385e3a/00001478_lq.png", "aligned": true } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2022-08-03T21:12:45.120007Z", "created_at": "2022-08-03T21:12:43.560268Z", "data_removed": false, "error": null, "id": "lx7mqlmdtzhgzalreksgfn2x6m", "input": { "image": "https://replicate.delivery/mgxm/bd67706d-20d7-4874-beef-e7a9a6385e3a/00001478_lq.png", "aligned": true }, "logs": null, "metrics": { "predict_time": 1.367359, "total_time": 1.559739 }, "output": [ { "image": "https://replicate.delivery/mgxm/d4382da0-806f-4529-976c-4ddfeb562890/output_0.png" } ], "started_at": "2022-08-03T21:12:43.752648Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/lx7mqlmdtzhgzalreksgfn2x6m", "cancel": "https://api.replicate.com/v1/predictions/lx7mqlmdtzhgzalreksgfn2x6m/cancel" }, "version": "ccd53a9a38ebbaa783a1e6318d22fa68c14c3aed66cc3589e53ef07d07f5be1d" }
Generated inPrediction
cjwbw/vqfr:ccd53a9aModelIDot6cl5z2gfesrb3p3ugyv2tq3uStatusSucceededSourceWebHardware–Total durationCreatedInput
{ "image": "https://replicate.delivery/mgxm/010a98fd-fc3d-42be-b26b-1a3dfd082bdb/10045.png", "aligned": 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 cjwbw/vqfr using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "cjwbw/vqfr:ccd53a9a38ebbaa783a1e6318d22fa68c14c3aed66cc3589e53ef07d07f5be1d", { input: { image: "https://replicate.delivery/mgxm/010a98fd-fc3d-42be-b26b-1a3dfd082bdb/10045.png", aligned: 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 cjwbw/vqfr using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "cjwbw/vqfr:ccd53a9a38ebbaa783a1e6318d22fa68c14c3aed66cc3589e53ef07d07f5be1d", input={ "image": "https://replicate.delivery/mgxm/010a98fd-fc3d-42be-b26b-1a3dfd082bdb/10045.png", "aligned": 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 cjwbw/vqfr 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": "ccd53a9a38ebbaa783a1e6318d22fa68c14c3aed66cc3589e53ef07d07f5be1d", "input": { "image": "https://replicate.delivery/mgxm/010a98fd-fc3d-42be-b26b-1a3dfd082bdb/10045.png", "aligned": false } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2022-08-03T21:13:25.901782Z", "created_at": "2022-08-03T21:13:18.698426Z", "data_removed": false, "error": null, "id": "ot6cl5z2gfesrb3p3ugyv2tq3u", "input": { "image": "https://replicate.delivery/mgxm/010a98fd-fc3d-42be-b26b-1a3dfd082bdb/10045.png", "aligned": false }, "logs": "\tTile 1/6\n\tTile 2/6\n\tTile 3/6\n\tTile 4/6\n\tTile 5/6\n\tTile 6/6", "metrics": { "predict_time": 7.029647, "total_time": 7.203356 }, "output": [ { "image": "https://replicate.delivery/mgxm/4f977cbc-6502-4aef-8996-60021a7deb65/output_0.png" }, { "image": "https://replicate.delivery/mgxm/215445fb-5466-4878-b95b-c0887d46da0a/output_1.png" }, { "image": "https://replicate.delivery/mgxm/baf98bb8-954e-4b0a-be6e-e172e3e70924/output_2.png" }, { "image": "https://replicate.delivery/mgxm/369f174e-3f4d-444b-be41-c44bedfd4106/output.png" } ], "started_at": "2022-08-03T21:13:18.872135Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/ot6cl5z2gfesrb3p3ugyv2tq3u", "cancel": "https://api.replicate.com/v1/predictions/ot6cl5z2gfesrb3p3ugyv2tq3u/cancel" }, "version": "ccd53a9a38ebbaa783a1e6318d22fa68c14c3aed66cc3589e53ef07d07f5be1d" }
Generated inTile 1/6 Tile 2/6 Tile 3/6 Tile 4/6 Tile 5/6 Tile 6/6
Prediction
cjwbw/vqfr:ccd53a9aInput
{ "image": "https://replicate.delivery/mgxm/160f42cb-b479-4d80-8de4-c9260a072201/00000052_lq.png", "aligned": 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 cjwbw/vqfr using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "cjwbw/vqfr:ccd53a9a38ebbaa783a1e6318d22fa68c14c3aed66cc3589e53ef07d07f5be1d", { input: { image: "https://replicate.delivery/mgxm/160f42cb-b479-4d80-8de4-c9260a072201/00000052_lq.png", aligned: 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 cjwbw/vqfr using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "cjwbw/vqfr:ccd53a9a38ebbaa783a1e6318d22fa68c14c3aed66cc3589e53ef07d07f5be1d", input={ "image": "https://replicate.delivery/mgxm/160f42cb-b479-4d80-8de4-c9260a072201/00000052_lq.png", "aligned": 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 cjwbw/vqfr 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": "ccd53a9a38ebbaa783a1e6318d22fa68c14c3aed66cc3589e53ef07d07f5be1d", "input": { "image": "https://replicate.delivery/mgxm/160f42cb-b479-4d80-8de4-c9260a072201/00000052_lq.png", "aligned": true } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2022-08-03T21:12:32.354865Z", "created_at": "2022-08-03T21:12:30.804636Z", "data_removed": false, "error": null, "id": "nud3x5vrnrh7na2xcnvmt43you", "input": { "image": "https://replicate.delivery/mgxm/160f42cb-b479-4d80-8de4-c9260a072201/00000052_lq.png", "aligned": true }, "logs": null, "metrics": { "predict_time": 1.395342, "total_time": 1.550229 }, "output": [ { "image": "https://replicate.delivery/mgxm/6d705df9-b535-4fe1-882c-9234abd23ccb/output_0.png" } ], "started_at": "2022-08-03T21:12:30.959523Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/nud3x5vrnrh7na2xcnvmt43you", "cancel": "https://api.replicate.com/v1/predictions/nud3x5vrnrh7na2xcnvmt43you/cancel" }, "version": "ccd53a9a38ebbaa783a1e6318d22fa68c14c3aed66cc3589e53ef07d07f5be1d" }
Generated inPrediction
cjwbw/vqfr:ccd53a9aModelIDxqmsbvrjsjenpmqxykub4jwgtiStatusSucceededSourceWebHardware–Total durationCreatedInput
{ "image": "https://replicate.delivery/mgxm/17434c8c-72a7-427e-9ca5-4c927a6b8684/00.jpeg", "aligned": 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 cjwbw/vqfr using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "cjwbw/vqfr:ccd53a9a38ebbaa783a1e6318d22fa68c14c3aed66cc3589e53ef07d07f5be1d", { input: { image: "https://replicate.delivery/mgxm/17434c8c-72a7-427e-9ca5-4c927a6b8684/00.jpeg", aligned: 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 cjwbw/vqfr using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "cjwbw/vqfr:ccd53a9a38ebbaa783a1e6318d22fa68c14c3aed66cc3589e53ef07d07f5be1d", input={ "image": "https://replicate.delivery/mgxm/17434c8c-72a7-427e-9ca5-4c927a6b8684/00.jpeg", "aligned": 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 cjwbw/vqfr 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": "ccd53a9a38ebbaa783a1e6318d22fa68c14c3aed66cc3589e53ef07d07f5be1d", "input": { "image": "https://replicate.delivery/mgxm/17434c8c-72a7-427e-9ca5-4c927a6b8684/00.jpeg", "aligned": false } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2022-08-03T21:13:06.590475Z", "created_at": "2022-08-03T21:12:55.300987Z", "data_removed": false, "error": null, "id": "xqmsbvrjsjenpmqxykub4jwgti", "input": { "image": "https://replicate.delivery/mgxm/17434c8c-72a7-427e-9ca5-4c927a6b8684/00.jpeg", "aligned": false }, "logs": "\tTile 1/20\n\tTile 2/20\n\tTile 3/20\n\tTile 4/20\n\tTile 5/20\n\tTile 6/20\n\tTile 7/20\n\tTile 8/20\n\tTile 9/20\n\tTile 10/20\n\tTile 11/20\n\tTile 12/20\n\tTile 13/20\n\tTile 14/20\n\tTile 15/20\n\tTile 16/20\n\tTile 17/20\n\tTile 18/20\n\tTile 19/20\n\tTile 20/20", "metrics": { "predict_time": 11.101639, "total_time": 11.289488 }, "output": [ { "image": "https://replicate.delivery/mgxm/76eede4d-a9ad-4e7d-be97-011c40d5d784/output_0.png" }, { "image": "https://replicate.delivery/mgxm/c592620a-f56a-4d97-bf89-8442194cd315/output_1.png" }, { "image": "https://replicate.delivery/mgxm/33a11530-ba5e-47a9-8218-4bef457374cc/output.png" } ], "started_at": "2022-08-03T21:12:55.488836Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/xqmsbvrjsjenpmqxykub4jwgti", "cancel": "https://api.replicate.com/v1/predictions/xqmsbvrjsjenpmqxykub4jwgti/cancel" }, "version": "ccd53a9a38ebbaa783a1e6318d22fa68c14c3aed66cc3589e53ef07d07f5be1d" }
Generated inTile 1/20 Tile 2/20 Tile 3/20 Tile 4/20 Tile 5/20 Tile 6/20 Tile 7/20 Tile 8/20 Tile 9/20 Tile 10/20 Tile 11/20 Tile 12/20 Tile 13/20 Tile 14/20 Tile 15/20 Tile 16/20 Tile 17/20 Tile 18/20 Tile 19/20 Tile 20/20
Want to make some of these yourself?
Run this model