Github项目推荐 | 不想让路人甲乱入你的镜头?或许它能帮你P掉他们
从视频里“擦除”框选的目标
video-object-removal - Just draw a bounding box and you can remove the object you want to remove
by zllrunning
本项目的相关论文入选 CVPR 2019。
论文标题:
《Fast Online Object Tracking and Segmentation: A Unifying Approach》《Deep Video Inpainting》(CVPR 2019)
Link :
http://openaccess.thecvf.com/content_CVPR_2019/supplemental/Wang_Fast_Online_Object_CVPR_2019_supplemental.pdf
* 本论文在AI研习社就能下载哦,更多CVPR论文,敬请扫码查看:
https://ai.yanxishe.com/page/resourceDetail/845
只需绘制一个边界框,你就可以擦除想要删除的对象。
Github项目地址:
安装
所有代码都已经在Ubuntu 16.04,Python 3.5,Pytorch 0.4.0,CUDA 8.0,GTX1080Ti GPU上进行了测试。
- 克隆本项目仓库
git clone https://github.com/zllrunning/video-object-removal.git
cd video-object-removal
cd get_mask
bash make.sh
cd ../inpainting
bash install.sh
cd ..
Demo
- 下载 SiamMask 和 Inpainting 的预训练模型
- 把它们放在 cp/ 文件夹中
- 然后运行:
python demo.py --datadata/Human6
- 当然了,它还支持视频文件的框选擦除。
python demo.py --datadata/bag.avi
另一个可选参数: - mask-dilation
python demo.py --datadata/Human6 --mask-dilation 24
这个参数控制用于掩模的扩张内核的大小,其作用是扩大掩模的范围以避免边缘问题。有关详细信息,请查看 inpainting/davis.py。
查看效果
1. 框选出一个这样的边界框:
2. 框选对象将被擦除,并将修复后的视频保存在 results/inpainting 文件夹中。
(编辑器限制,如果Gif图像过于模糊,请移步Github项目中查看。)
编者注:从效果上看擦除的效果还是不错的,但是存在的问题是:擦除后的画面中会出现部分的变形(即图中的人走过的位置),这应该是项目中需要改进的一点。
致谢
本项目基于 SiamMask 和 Deep-Video-Inpainting开发。非常感谢这些优秀的项目。
引用
@article{Wang2019SiamMask,
title={Fast Online Object Tracking and Segmentation: A Unifying Approach},
author={Wang, Qiang and Zhang, Li and Bertinetto, Luca and Hu, Weiming and Torr, Philip HS},
journal={The IEEE Conference on Computer Vision and Pattern Recognition (CVPR)},
year={2019}
}
@inproceedings{kim2019deep,
title={Deep Video Inpainting},
author={Kim, Dahun and Woo, Sanghyun and Lee, Joon-Young and So Kweon, In},
booktitle={Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition},
pages={5792--5801},
year={2019}
点这里查看本篇更多相关内容
最新评论
推荐文章
作者最新文章
你可能感兴趣的文章
Copyright Disclaimer: The copyright of contents (including texts, images, videos and audios) posted above belong to the User who shared or the third-party website which the User shared from. If you found your copyright have been infringed, please send a DMCA takedown notice to [email protected]. For more detail of the source, please click on the button "Read Original Post" below. For other communications, please send to [email protected].
版权声明:以上内容为用户推荐收藏至CareerEngine平台,其内容(含文字、图片、视频、音频等)及知识版权均属用户或用户转发自的第三方网站,如涉嫌侵权,请通知[email protected]进行信息删除。如需查看信息来源,请点击“查看原文”。如需洽谈其它事宜,请联系[email protected]。
版权声明:以上内容为用户推荐收藏至CareerEngine平台,其内容(含文字、图片、视频、音频等)及知识版权均属用户或用户转发自的第三方网站,如涉嫌侵权,请通知[email protected]进行信息删除。如需查看信息来源,请点击“查看原文”。如需洽谈其它事宜,请联系[email protected]。