sdwebuiapi
sdwebuiapi copied to clipboard
Could not use Upscaler.ESRGAN_4x.R_ESRGAN_General_4xV3
Thanks for the great open source!
When I use
result2 = api.extra_single_image(image=result1.images[0],
upscaler_1=webuiapi.Upscaler.ESRGAN_4x,
upscaling_resize=2.0
)
everything was working, but if change to another upsclaler
result2 = api.extra_single_image(image=result1.images[0],
upscaler_1=webuiapi.Upscaler.ESRGAN_4x.R_ESRGAN_General_4xV3,
upscaling_resize=2.0
)
got error
RuntimeError: (500, '{"error":"AssertionError","detail":"","body":"","errors":"could not find upscaler named R-ESRGAN General 4xV3"}')
Can anyone help? Thanks.
You can pass string instead. try passing "name" values returned from api.get_upscalers()
upscaler parameters is somewhat inconsistent between api endpoints and webui versions.