ESRGAN Slim is a package of Tensorflow.js models for upscaling images with UpscalerJS.
The model's goal is to minimize latency without compromising quality.
Install the package:
npm install @upscalerjs/esrgan-slim
Then, import a specific model and pass it as an argument to an instance of UpscalerJS:
import UpscalerJS from 'upscaler';
import x2 from '@upscalerjs/esrgan-slim/2x';
const upscaler = new UpscalerJS({
model: x2,
})
ESRGAN Slim ships with four models corresponding to the scale of the upscaled image:
@upscalerjs/esrgan-slim/2x
@upscalerjs/esrgan-slim/3x
@upscalerjs/esrgan-slim/4x
@upscalerjs/esrgan-slim/8x
(note: the 8x model runs only in Node)For more documentation, check out the model documentation at upscalerjs.com/models/available/esrgan-slim.
Version | Tag | Published |
---|---|---|
1.0.0-beta.8 | latest | 20d ago |