ESRGAN Upscaler
To deploy the model, you can use the identifier below:
- ESRGAN Upscaler:
esrgan-upscaler
Real-ESRGAN aims at developing Practical Algorithms for General Image/Video Restoration. The model extends the powerful ESRGAN to a practical restoration application (namely, Real-ESRGAN), which is trained with pure synthetic data.
You can follow this example of how to call the deployed endpoint:
Request Parameters
curl --location --request POST 'https://run.cerebrium.ai/esrgan-upscaler-webhook/predict' \
--header 'Authorization: <API_KEY>' \
--header 'Content-Type: application/json' \
--data-raw '{
"image": <BASE_64_STRING>,
"file_url": "https://your-url.com",
"upscale": 4,
"face_enhance": true
"webhook_endpoint": "https://your-url.com"
}'
This is the Cerebrium API key used to authenticate your request. You can get it from your Cerebrium dashboard.
A base64 encoded string of the image you would like to upscale.
A publicly accessible url of a image you would like to upscale
A integer specifying how big you would like to upscale the image. Default is 4x.
A boolean value if you are upscaling a face in your image
The url endpoint you would like us to send the image results to once it has finished generating
{
"run_id": "<UUID_STRING>",
"message": "Successfully generated image",
"result": [<BASE_64_STRING>]
}
Response Parameters
A unique identifier for the run that you can use to associate prompts with webhook endpoints.
Whether of not the response was successful
An array of base64 encoded strings of the image that you can convert into an image
curl --location --request POST 'https://run.cerebrium.ai/esrgan-upscaler-webhook/predict' \
--header 'Authorization: <API_KEY>' \
--header 'Content-Type: application/json' \
--data-raw '{
"image": <BASE_64_STRING>,
"file_url": "https://your-url.com",
"upscale": 4,
"face_enhance": true
"webhook_endpoint": "https://your-url.com"
}'
{
"run_id": "<UUID_STRING>",
"message": "Successfully generated image",
"result": [<BASE_64_STRING>]
}