Convert images and videos into a cartoon!
The webapp is deployed here - https://cartoonize-lkqov62dia-de.a.run.app
You can find a writeup on this webapp's architecture here!
Installation Using Google Colab
Using Google Colab
- 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
-
After cloning the repository navigate to the
/cartoonize
using below command in the notebook cell:%cd cartoonize
-
Run the below commands in the notebook cell to install the requirements.
!pip install -r requirements.txt
-
config your pyngrok to solve NAT Traversal(ngrok account registration in advance needed).
!ngrok authtoken YOUR_NGROK_TOKEN
-
Launch the flask app on ngrok
!python app.py
-
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
-
Copyright © Cartoonizer (Demo webapp)
-
Authors: Niraj Pandkar and Tejas Mahajan.
-
Licensed under the CC BY-NC-SA 4.0
-
Commercial application is prohibited by license
-
-
Copyright (C) Xinrui Wang, Jinze Yu. (White box cartoonization)
- All rights reserved.
- Licensed under the CC BY-NC-SA 4.0
- Also, Commercial application is prohibited license (https://creativecommons.org/licenses/by-nc-sa/4.0/legalcode).