Git Product home page Git Product logo

esrgan's Introduction

This fork ports features over from my ESRGAN-Bot repository. It natively allows:

  • In-memory splitting/merging functionality
  • Seamless texture preservation
  • Model chaining
  • Transparency preservation
  • 1-bit transparency support
  • Both new-arch and old-arch models

To change the tile size for the split/merge functionality, use the --tile_size argument

To set your textures to seamless, use the --seamless flag

To chain models, simply put one model name after another with a > in between (you can also use + if using bash to avoid issues), such as 1xDeJpeg.pth>4xESRGAN.pth note: To use model chaining, model names must be the complete full name without the path included, and the models must be present in your /models folder. You can still use full model paths to upscale with a single model.

To use 1 bit binary alpha transparency, set the --binary_alpha flag to True. When using --binary_alpha transparency, provide the optional --alpha_threshold to specify the alpha transparency threshold. 1 bit binary transparency is useful when upscaling images that require that the end result has 1 bit transparency, e.g. PSX games.

Examples:

  • python esrgan.py 4xBox.pth --seamless
  • python esrgan.py 1xSSAntiAlias9x.pth>4xBox.pth --tile_size=800
  • python esrgan.py 4xBox.pth --binary_alpha True --alpha_threshold .2
  • python esrgan.py /models/4xBox.pth

esrgan's People

Contributors

xinntao avatar joeyballentine avatar blueamulet avatar danielharoldlane avatar phreakmonkey avatar

Watchers

James Cloos 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.