Skip to main content

dispose

Disposes of an UpscalerJS instance and clears up any used memory. Ensure you've aborted any active upscaling events before disposing of the model.

Example

const upscaler = new Upscaler();
upscaler.dispose().then(() => {
console.log("I'm all cleaned up!");
})
Defined in upscaler.ts:193

Returns

Promise<void>