download model parameters from here and put them in ./package/web-eargan-shards
cd ./demo
npm install
npm start
open browser and visit http://localhost:8000/demo.html
"dependencies": {
"real-esrgan": "../package"
}
<script src="node_modules/real-esrgan/dist/tvmjs_runtime.wasi.js"></script>
<script src="node_modules/real-esrgan/dist/tvmjs.bundle.js"></script>
<script src="node_modules/real-esrgan/src/RealEsrgan.js"></script>
let localRealESRGANInst = new RealESRGANInstance();
localRealESRGANInst.loadImage(loadedImageData);
await localRealESRGANInst.generate();