All Projects → experience-ml → Cartoonize

experience-ml / Cartoonize

Licence: other
A demo webapp to convert images and videos into cartoon!

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Cartoonize

Deep-Learning
It contains the coursework and the practice I have done while learning Deep Learning.🚀 👨‍💻💥 🚩🌈
Stars: ✭ 21 (-90.23%)
Mutual labels:  deeplearning, gans
Contrastive Unpaired Translation
Contrastive unpaired image-to-image translation, faster and lighter training than cyclegan (ECCV 2020, in PyTorch)
Stars: ✭ 822 (+282.33%)
Mutual labels:  deeplearning, gans
HistoGAN
Reference code for the paper HistoGAN: Controlling Colors of GAN-Generated and Real Images via Color Histograms (CVPR 2021).
Stars: ✭ 158 (-26.51%)
Mutual labels:  deeplearning, gans
Gwt Material
A Google Material Design wrapper for GWT
Stars: ✭ 386 (+79.53%)
Mutual labels:  demo, webapp
Cnn Paper2
🎨 🎨 深度学习 卷积神经网络教程 :图像识别,目标检测,语义分割,实例分割,人脸识别,神经风格转换,GAN等🎨🎨 https://dataxujing.github.io/CNN-paper2/
Stars: ✭ 77 (-64.19%)
Mutual labels:  deeplearning, gans
img ai app boilerplate
An image classification app boilerplate to serve your deep learning models asap!
Stars: ✭ 27 (-87.44%)
Mutual labels:  webapp, deeplearning
Responsiveframework
Easily make Flutter apps responsive. Automatically adapt UI to different screen sizes. Responsiveness made simple. Demo: https://gallery.codelessly.com/flutterwebsites/minimal/
Stars: ✭ 476 (+121.4%)
Mutual labels:  demo, webapp
Segan pytorch
Speech Enhancement Generative Adversarial Network in PyTorch
Stars: ✭ 242 (+12.56%)
Mutual labels:  deeplearning, gans
Flutterwebsite
The flutter.dev website recreated in Flutter. https://gallery.codelessly.com/flutterwebsites/flutterwebsite
Stars: ✭ 76 (-64.65%)
Mutual labels:  demo, webapp
Ncnn Benchmark
The benchmark of ncnn that is a high-performance neural network inference framework optimized for the mobile platform
Stars: ✭ 70 (-67.44%)
Mutual labels:  demo, deeplearning
Realtime Detectron
Real-time Detectron using webcam.
Stars: ✭ 42 (-80.47%)
Mutual labels:  demo, deeplearning
Snippod Starter Demo App
A full stack 'Hacker News' style demo web application built with React + Redux (Front) and django REST Framework (Server).
Stars: ✭ 128 (-40.47%)
Mutual labels:  demo, webapp
Icface
ICface: Interpretable and Controllable Face Reenactment Using GANs
Stars: ✭ 122 (-43.26%)
Mutual labels:  deeplearning, gans
Learning Pwa
📱some samples and blogs about how to start with your first PWA
Stars: ✭ 162 (-24.65%)
Mutual labels:  demo, webapp
Share Api Polyfill
A polyfill for the sharing that can be used in desktop too, so your users can shere in their twitter, facebook, messenger, linkedin, sms, e-mail, print, telegram or whatsapp.
Stars: ✭ 210 (-2.33%)
Mutual labels:  webapp
Vue Admin Vuetify
`vue-admin-vuetify` is a Front-end component library project based on Vue.js using Vuetify. Need vpn proxy to view
Stars: ✭ 213 (-0.93%)
Mutual labels:  demo
Yii Demo
Yii 3 demo application
Stars: ✭ 210 (-2.33%)
Mutual labels:  demo
Blackhat Arsenal Tools
Official Black Hat Arsenal Security Tools Repository
Stars: ✭ 2,639 (+1127.44%)
Mutual labels:  webapp
Universal React Router4
Demo app showing how to use react-router v4 for server- and client-side rendering
Stars: ✭ 216 (+0.47%)
Mutual labels:  demo
Uwsgi Nginx Flask Docker
Docker image with uWSGI and Nginx for Flask applications in Python running in a single container. Optionally with Alpine Linux.
Stars: ✭ 2,607 (+1112.56%)
Mutual labels:  webapp

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!


Contents


Prerequisites for Google Cloud and Algorithmia

These are important steps if you want to leverage Google buckets, signed URLs and Algorithmia's platform. Skip this if you want to run locally / colab.

Cloud Run authentication

To use any functionalities pertaining to Google Cloud, you'll need a global authentication file (JSON). You can obtain this JSON by following the steps given here - Getting started with authentication

After you get the JSON file, rename it to token.json (so that it's compatible with the codebase).

Set the environment variable in your terminal -

export GOOGLE_APPLICATION_CREDENTIALS="/path/to/token.json"

Notes:

  • You can set it permanently by adding this line to ~/.bashrc.
  • Dockerfile already includes the setting of this particular environment variable. :)

Algorithmia

We used the Serveless AI Layer product of Algorithmia for inference on videos. To learn more on how to deploy your model in Algorithmia, check here - https://algorithmia.com/developers


Installation

Application tested on:

  • python 3.7
  • tensorflow 2.1.0
  • tf_slim 1.1.0
  • ffmpeg 3.4.8
  • Cuda version 10.1
  • OS: Linux (Ubuntu 18.04)

Using Docker

The easiest way to get the webapp running is by using the Dockerfile:

  1. cd into the root directory and build the image
docker build -t cartoonize .

Note: Set the appropriate values in config.yaml before building the image.

  1. Run the container by exposing the appropriate ports
docker run -p 8080:8080 cartoonize

Using virtualenv

  1. Make a virtual environment using virutalenv and activate it
virtualenv -p python3 cartoonize
source cartoonize/bin/activate
  1. Install python dependencies
pip install -r requirements.txt
  1. Run the webapp. Be sure to set the appropriate values in config.yaml file before running the application.
python app.py

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. In config.yaml file set:

    colab-mode: true 
    
  4. Launch the flask app on ngrok

    !python app.py
    

Note : Sample Google Colab Notebook for reference


Sample Image and Video

Emma Watson Cartoonized

Emma Watson Cartoonized

Youtube Video of Avenger's Bar Scene Cartoonized

Cartoonized version of Avenger's bar scene


License

  1. Copyright © Cartoonizer (Demo webapp)

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].