Upscaling
Upscale the given image.
Body
True to enable the face enhancer model variant
If given, download init_image from this URL.
Image to modify.
One of UpscalingModel, identifies the upscaling model to use.
real-esrgan-x4-plus
, real-esrgan-x4-v3
, real-esrgan-x4-v3-wdn
, real-esrgan-animevideo-v3
, real-esrgan-x4-plus-anime
, real-esrgan-x2-plus
Height in pixels of the output image. If given, neither scale nor output_image_width should be specified.
Width in pixels of the output image. If given, neither scale nor output_image_height should be specified.
Define which encoding process should be applied before returning the modified image.
jpeg
, png
Upscale the init image dimensions by this multiplier. If given, neither output_image_height nor output_image_width should be given.
Response
The modified image or None if it was removed for safety.
True if the image was removed for safety, False otherwise.
Was this page helpful?