同步操作将从 Gitee 极速下载/cartoonize 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
Convert images and videos into a cartoon!
The webapp is deployed here - https://cartoonize-lkqov62dia-de.a.run.app
These are important steps if you want to leverage Google buckets, signed URLs and Algorithmia's platform.
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:
~/.bashrc
.Dockerfile
already includes the setting of this particular environment variable. :)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
The easiest way to get the webapp running is by using the Dockerfile:
cd
into the root directory and build the imagedocker build -t cartoonize .
Note: Set the appropriate values in config.yaml
before building the image.
docker run -p 8080:8080 cartoonize
virtualenv
virutalenv
and activate itvirtualenv -p python3 cartoonize
source cartoonize/bin/activate
pip install -r requirements.txt
config.yaml
file before running the application.python app.py
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)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。