图片视频卡通化,支持容器化部署

查看 61|回复 5
作者:suke119   
GitHub 源码:https://github.com/wangsrGit119/cartoon-media
效果:

说明:页面暂时支持图片卡通化,视频本地启动后直接调用下面函数
videoactiontransfer(file_path)
容器构建和启动

下载源码构建容器

docker build -t cartoon-media:1.0 .

启动容器

docker run -d --name cartoon-1.0 -p 18080:18080 cartoon-media:1.0

启动后访问: http://localhost:18080/front/

本地启动

注意依赖安装

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/


附一张我最喜欢的



高清大图:https://i.v2ex.co/Vs6LETB4l.jpeg

pip, 容器, protobuf, Docker

gimp   

附一张我最喜欢的



高清大图:https://i.v2ex.co/Vs6LETB4l.jpeg

gimp   


suke119
OP
  
试了几张,猫猫效果最好 😄
suke119
OP
  
@gimp 🫣🫣
suke119
OP
  
@gimp 你看我例子里面那个玫瑰花🌹也很好看
您需要登录后才可以回帖 登录 | 立即注册

返回顶部