只需画一个边界框,就能移除你想要移除的物体。
只需绘制一个边界框,即可移除你想要移除的物体。
所有代码已在 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 ..cp/ 文件夹中python demo.py --data data/Human6python demo.py --data data/bag.avi--mask-dilationpython demo.py --data data/Human6 --mask-dilation 24该参数控制用于掩膜的膨胀核大小。其作用是扩大掩膜范围以避免边缘问题。更多详情请参阅 inpainting/davis.py。
1. 只需像这样绘制一个边界框:
2. 目标对象将被移除,修复后的视频将保存在 results/inpainting 文件夹中。(GIF 图片加载需要一些时间,请稍候。)
@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}暂无开放 Issues,或尚未同步最近议题。