Giter Site home page Giter Site logo

animeganv3-python's Introduction

AnimeGANv3-Python

A command-line tool that transforms photos into an anime look using ONNX Runtime trained models of AnimeGANv3.
Based on the inference process of AnimeGANv3.exe.

Install

It is written in Python, so it is cross-platform.
However, it consumes a large amount of CPU and memory because inference is performed on the CPU.

Requirements: Python 3.10 / pip / pipenv

# clone code
git clone https://github.com/tsukumijima/AnimeGANv3-Python.git
cd AnimeGANv3-Python

# install pipenv
pip install pipenv

# run pipenv sync
## Windows (PowerShell)
$env:PIPENV_VENV_IN_PROJECT="true"; pipenv sync
## Linux
PIPENV_VENV_IN_PROJECT="true" pipenv sync

Usage

# run AnimeGANv3-Python.py inside pipenv
pipenv run python AnimeGANv3-Python.py C:/path/to/input_images C:/path/to/output_images --onnx-model-type H40
usage: AnimeGANv3-Python.py [-h] [--onnx-model-type {H40,H50,H64}] InputDirPath OutputDirPath

positional arguments:
  InputDirPath          Image directory path of input source
  OutputDirPath         Image directory path of output destination

options:
  -h, --help            show this help message and exit
  --onnx-model-type {H40,H50,H64}
                        onnx model type (H40, H50, H64)

Examples

⬅ original photo | transform into anime look ➡

example_01 example_02 example_03 example_04 example_05 example_06 example_07 example_08

License

MIT License

animeganv3-python's People

Contributors

tsukumijima avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.