Coder Social home page Coder Social logo

gcjordi / upscalerjs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from thekevinscott/upscalerjs

0.0 1.0 0.0 64.02 MB

Image Upscaling in Javascript. Increase image resolution up to 4x using Tensorflow.js.

Home Page: https://upscalerjs.com

License: MIT License

JavaScript 3.03% TypeScript 96.73% HTML 0.24%

upscalerjs's Introduction

UpscalerJS

NPM npm Tests Codecov DeepSource

UpscalerJS is a tool for increasing image resolution in Javascript via a Neural Network up to 4x.

Demo

A live demo is here.

Announcement

A beta version of 1.0.0 was released on 7/15/22. Learn more here about what's included.

If you are migrating from <=0.12, and you are using a custom model, you will need to modify how you load models. If you are using the default model (e.g., not providing a model argument) then no changes are needed.

Examples

You can view runnable code examples on CodeSandbox.

To run an example locally, navigate to the relevant folder and run:

pnpm start

If you are developing UpscalerJS locally and wish to run an example during development, use the following command:

pnpm example {folder-name-of-example}

This will automatically start a watcher in the example folder, as well as set the local UpscalerJS package to build in the background.

Quick Start

import Upscaler from 'upscaler';
const upscaler = new Upscaler();
upscaler.upscale('/path/to/image').then(upscaledImage => {
  console.log(upscaledImage); // base64 representation of image src
});

Documentation

View the docs here.

License

MIT License © Kevin Scott

upscalerjs's People

Contributors

thekevinscott avatar dependabot[bot] avatar danwexler avatar deepsource-autofix[bot] avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.