@infinite-canvas-tutorial/lama
v0.0.8
Published
Use LaMa in client side
Maintainers
Readme
@infinite-canvas-tutorial/lama
Client-Side Image Inpainting with ONNX and Next.js
Getting Started
import { LaMaPlugin } from '@infinite-canvas-tutorial/lama';
new App().addPlugins(...DefaultPlugins, UIPlugin, LaMaPlugin).run();ONNX provides a web-based runtime, enabling real-time inference directly in the browser without consuming any tokens. For details, see: How to add machine learning to your web application with ONNX Runtime
Build
We use the following syntax so that vite will build webworker correctly.
import workerUrl from './worker.js?worker&url';