1
0
Fork 0

send upscale order parameter

This commit is contained in:
Sean Sube 2023-02-18 11:13:50 -06:00
parent 6dd0edc374
commit a256ad691f
Signed by: ssube
GPG Key ID: 3EED7B957D362AF1
1 changed files with 2 additions and 0 deletions

View File

@ -312,6 +312,8 @@ export function appendModelToURL(url: URL, params: ModelParams) {
* Append the upscale parameters to an existing URL. * Append the upscale parameters to an existing URL.
*/ */
export function appendUpscaleToURL(url: URL, upscale: UpscaleParams) { export function appendUpscaleToURL(url: URL, upscale: UpscaleParams) {
url.searchParams.append('upscaleOrder', upscale.upscaleOrder);
if (upscale.enabled) { if (upscale.enabled) {
url.searchParams.append('denoise', upscale.denoise.toFixed(FIXED_FLOAT)); url.searchParams.append('denoise', upscale.denoise.toFixed(FIXED_FLOAT));
url.searchParams.append('scale', upscale.scale.toFixed(FIXED_INTEGER)); url.searchParams.append('scale', upscale.scale.toFixed(FIXED_INTEGER));