@infinite-canvas-tutorial/upscaler
v0.0.8
Published
Use UpscalerJS in client side
Maintainers
Readme
@infinite-canvas-tutorial/upscaler
Use upscalerjs to implement upscaleImage in AI API
- Running in WebWorker with tensorflow.js
- Choose @upscalerjs/esrgan-medium 4x by default
Getting Started
import { UpscalerPlugin } from '@infinite-canvas-tutorial/upscaler';
new App().addPlugins(...DefaultPlugins, UIPlugin, UpscalerPlugin).run();Build
We use the following syntax so that vite will build webworker correctly.
import workerUrl from './worker.js?worker&url';