AnimatedDrawings:Ai让你的插画动起来 (未完结)
Animated Drawings是一款非常简单有趣的动画图纸生成器软件,用户可以通过它简单快速的将自己的各种手绘图纸直接变动起来,绘画内容变得更加的生动形象。
AnimatedDrawings是一个利用人工智能技术识别小孩子画的简笔画并生成动画的开源项目。它使用骨骼识别技术生成动画,提供演示地址和代码供用户使用。该项目的功能是涂鸦动画AI算法,能够让纸上任意草图动起来。算法来自论文《A Method for Automatically Animating Children's Drawings of the Human Figure》,论文已被SIGGRAPH 2023接收,点击论文连接可以查看。
Animated Drawings的功能挺简单的,但是对孩子来说最够神奇。我们来看一下官方的示例:
Animated Drawings的使用看上去非常简单,有电脑版和手机版,我对电脑版比较感兴趣,因为介绍说可以在本地搭建整个系统。官网地址是https://fairanimateddrawings.com/site/home ,源码位于:https://github.com/facebookresearch/AnimatedDrawings 。
如何在本地部署Animated Drawings:
官方只支持MacOS和Linux,但是在windows的wsl里面其实也是可以安装的,下面是我的步骤:
首先需要安装Docker,因为有些功能在wsl下还是跑不起来,官方给出的docker方案可以替代。
conda create --name animated_drawings python=3.8.13
conda activate animated_drawings
git clone https://github.com/facebookresearch/AnimatedDrawings.git
cd AnimatedDrawings
pip install -e .
cd torchserve
docker build -t docker_torchserve .
docker run -d --name docker_torchserve -p 8080:8080 -p 8081:8081 docker_torchserve
curl http://localhost:8080/ping
# should return:
# {
# "status": "Healthy"
# }
cd ../examples
python image_to_animation.py drawings/garlic.png garlic_out