The client is initialized with an upscale_engine (default "esrgan-v1-x2plus").
As illustrated in the notebook, the upscaler can be invoked with:
answers = stability_api.upscale(
init_image=img
)
Default output image size depends on the upscale_engine (x2 for esrgan-v1-x2plus). Optionally, a height or width can be requested to specify output size:
Upscaler added to client
Notable change:
Command line call has been modified! From:
to
Backwards compatibility has been (mostly) maintained with a hack here: https://github.com/Stability-AI/stability-sdk/blob/9c297554fea7ffcd3af90ac3c0c1dc2039987c87/src/stability_sdk/client.py#L529
Usage
The client is initialized with an upscale_engine (default "esrgan-v1-x2plus"). As illustrated in the notebook, the upscaler can be invoked with:
Default output image size depends on the upscale_engine (x2 for esrgan-v1-x2plus). Optionally, a height or width can be requested to specify output size:
Do not specify both a height and width, only specify one or neither. This is to preserve the aspect ratio of the original image.