Giter VIP home page Giter VIP logo

animegan's Introduction

AnimeGANv2

Version Web for AnimeGANv2

Convert images on web !

The webapp is deployed Heroku Web here - https://animegans.herokuapp.com/

The webapp is deployed Streamlit Web here - https://share.streamlit.io/literaturepro/animegan


DigitalOcean Referral Badge

Version Api for AnimeGANv2

Docker version API for AnimeGANv2!

The webapp is deployed Divio-Online here - https://animegan.us.aldryn.io/

The webapp is deployed Divio-Test - https://animegan-stage.us.aldryn.io/

The webapp is deployed Heroku here - https://animegan-demo.herokuapp.com/

What is this?

Docker version API for AnimeGANv2

Explain

AnimeGANv2(Look at the picture)

     

Compiled project on hub.docker.com

Build

Make sure you have docker installed

  1. Clone the Animegan repository:
    git clone https://github.com/LiteraturePro/Animegan.git
    cd Animegan
    
  2. Input command to build image:
    docker build -t animegan .
    
    • I also provided the compilation command for Heroku, just replace the last command of dockerfile file with each other,
    • For general
    CMD exec gunicorn --bind 0.0.0.0:8080 --workers 1 --threads 8 --timeout 0 app:app
    
    • For heroku
    CMD exec gunicorn --bind 0.0.0.0:$PORT --workers 1 --threads 8 --timeout 0 app:app
    
  3. Running image (You can specify the running port yourself):
    docker run -p 8080:8080 animegan
    

Install

Make sure you have docker installed

I have built the image and can install it directly. The installation command is as follows(You can specify the running port yourself):

Now your service has started to run, but it runs on the local port. If you need to realize the external network call, you need to act as an agent to proxy the service to your domain name,

Use

The call I have shown is based on the agent I have done. If you need to call it, you need to do it yourself

  • provided that you have installed docker. After you deploy correctly, both GET and POST requests can be accessed. The actual display is as follows
    • Interface: http://your domain/api or http://127.0.0.1:8080/api can be accessed.
    • Parameter: image value: a picture
    • Return value: the base64 data stream after processing the image

Other

Thanks for the work of the original author and the revised author. If you like, please give a star.

animegan's People

Contributors

literaturepro avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

poggled aichy126

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.