GithubHelp home page GithubHelp logo

szotsaki / anime_upscaler Goto Github PK

View Code? Open in Web Editor NEW

This project forked from shangar21/anime_upscaler

0.0 0.0 0.0 18.27 MB

My usage of Real-ESRGAN to upscale anime, some test and results in the test_img folder

Python 100.00%

anime_upscaler's Introduction

anime upscaler

My usage of Real-ESRGAN to upscale anime.

Some results:

Picture

Before After

Video

Before

test_clip.mp4

After

test_clip_upscaled_copy_copy.mp4

How To Use

Download anime model:

https://github.com/xinntao/Real-ESRGAN/blob/master/docs/anime_model.md

For a single image:

python3 frame_esrgan.py -m /path/to/RealESRGAN_x4plus_anime_6B.pth -i path/to/img -o path/to/img.png

If memory usage is too high and you need to split frames and stitch back together use the -s, --split argument. Default number of splits is 4, but you can make as many as you want.

If you want to change the final size, one can now add the -r or the --resize argument, followed by a string indicating the desired resolution, for example we would add -r 1920x1080 to resize the output to that size.

Please note that the output of a single image must be a PNG due to alpha channel. Will be fixed in the future hopefully

For a video:

python3 anime_upscaler.py -m /path/to/RealESRGAN_x4plus_anime_6B.pth -i path/to/video -o path/to/desired/output -s -a

If you do not want audio, remove the -a at the end

anime_upscaler's People

Contributors

shangar21 avatar szotsaki avatar mjtorn 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.