Nattily Primped Monster

    @upscalerjs/esrgan-slim

    1.0.0-beta.7 • Public • Published

    ESRGAN Slim

    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.

    Original 2x 3x 4x
    Original flower image 2x upscaled flower image 3x upscaled flower image 4x upscaled flower image

    Quick start

    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,
    })
    

    Available Models

    ESRGAN Slim ships with four models corresponding to the scale of the upscaled image:

    • 2x: @upscalerjs/esrgan-slim/2x
    • 3x: @upscalerjs/esrgan-slim/3x
    • 4x: @upscalerjs/esrgan-slim/4x
    • 8x: @upscalerjs/esrgan-slim/8x (note: the 8x model runs only in Node)

    Documentation

    For more documentation, check out the model documentation at upscalerjs.com/models/available/esrgan-slim.

    License

    MIT License © Kevin Scott

    Install

    npm i @upscalerjs/esrgan-slim

    DownloadsWeekly Downloads

    69

    Version

    1.0.0-beta.7

    License

    MIT

    Unpacked Size

    4.68 MB

    Total Files

    91

    Last publish

    Collaborators

    • thekevinscott