1 Star 0 Fork 15

东城影 / cartoonize

forked from Gitee 极速下载 / cartoonize 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

Cartoonizer

Convert images and videos into a cartoon!

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

Prerequisites for Google Cloud and Algorithmia

These are important steps if you want to leverage Google buckets, signed URLs and Algorithmia's platform.

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
  • 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

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)

空文件

简介

Cartoonize 是一个可以一键将视频、图片卡通化的 Web 应用 展开 收起
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/zhyun/cartoonize.git
git@gitee.com:zhyun/cartoonize.git
zhyun
cartoonize
cartoonize
master

搜索帮助