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!");
})
Returns
Promise<void>