image or video to cartoon
base repo cartoonize
build image
docker build -t cartoon-media:1.0 .
start container
docker run -d --name cartoon-1.0 -p 18080:18080 cartoon-media:1.0
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
下载源码构建容器
docker build -t cartoon-media:1.0 .
启动容器
docker run -d --name cartoon-1.0 -p 18080:18080 cartoon-media:1.0
注意依赖安装
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