/cartoonize

A demo webapp to convert images and videos into cartoon (google colab only)

Primary LanguagePythonOtherNOASSERTION

Cartoonizer

Convert images and videos into a cartoon!

The webapp is deployed here - https://cartoonize-lkqov62dia-de.a.run.app

Powered by Algorithmia

You can find a writeup on this webapp's architecture here!


Installation Using Google Colab

  1. Clone the repository using either of the below mentioned way:
    • Using Command:

      • Create a new Notebook in Colab and in the cell execute the below command.
       ! git clone https://github.com/experience-ml/cartoonize.git
      

      Note: Don't forget to add ! at the beginning of the command

    • From Colab User Interface

       Open Colab
           └── File
                └── Open Notebook
                         └── Github
                               └── paste the Url of the repository

Note : Before running the application change the runtime to GPU for processing videos but you for images CPU shall also work just fine.

           Runtime
              └── Change runtime type
                          └── Select GPU
  1. After cloning the repository navigate to the /cartoonize using below command in the notebook cell:

    %cd cartoonize
    
  2. Run the below commands in the notebook cell to install the requirements.

    !pip install -r requirements.txt
    
  3. config your pyngrok to solve NAT Traversal(ngrok account registration in advance needed).

!ngrok authtoken YOUR_NGROK_TOKEN
  1. Launch the flask app on ngrok

    !python app.py
    
  2. just click the link app.py provides or connect to colab in RESTful requests.

POST http://xxxx-xx-xxx-xxx-xxx.ngrok.io/cartoonize

Note : Sample Google Colab Notebook for reference


License

  1. Copyright © Cartoonizer (Demo webapp)

  2. Copyright (C) Xinrui Wang, Jinze Yu. (White box cartoonization)