https://github.com/wangsrgit119/cartoon-media
image or video to cartoon| 图片视频卡通化
https://github.com/wangsrgit119/cartoon-media
cartoon docker fastapi ffmpeg image-cartoonizer python3
Last synced: 11 months ago
JSON representation
image or video to cartoon| 图片视频卡通化
- Host: GitHub
- URL: https://github.com/wangsrgit119/cartoon-media
- Owner: wangsrGit119
- License: mit
- Created: 2023-01-16T01:30:58.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-03-04T06:15:26.000Z (over 2 years ago)
- Last Synced: 2025-04-10T20:38:28.250Z (about 1 year ago)
- Topics: cartoon, docker, fastapi, ffmpeg, image-cartoonizer, python3
- Language: Python
- Homepage:
- Size: 38.3 MB
- Stars: 51
- Watchers: 1
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cartoon-media
> image or video to cartoon

> base repo [cartoonize](https://github.com/experience-ml/cartoonize)
### get starter with docker
> build image
```sh
docker build -t cartoon-media:1.0 .
```
> start container
```sh
docker run -d --name cartoon-1.0 -p 18080:18080 cartoon-media:1.0
```
> visit: http://localhost:18080/front/
### get start with local
```cmd
cd server
pip uninstall -y protobuf
pip install protobuf==3.19.0 -i https://pypi.douban.com/simple
pip install -r requirements.txt -i https://pypi.douban.com/simple
uvicorn main:app --reload --port 18080 --host 0.0.0.0
```
> visit: http://localhost:18080/front/
## 中文
### 容器构建和启动
> 下载源码构建容器
```sh
docker build -t cartoon-media:1.0 .
```
> 启动容器
```sh
docker run -d --name cartoon-1.0 -p 18080:18080 cartoon-media:1.0
```
> 启动后访问: http://localhost:18080/front/
### 本地启动
> 注意依赖安装
```cmd
cd server
pip uninstall -y protobuf
pip install protobuf==3.19.0 -i https://pypi.douban.com/simple
pip install -r requirements.txt -i https://pypi.douban.com/simple
uvicorn main:app --reload --port 18080 --host 0.0.0.0
```
> 访问: http://localhost:18080/front/