绿幕抠图/蓝幕布抠图 自然背景抠图 Robust Video Matting 内容整理

一、RobustVideoMatting

       这个大神算法的一作是由林山川在字节跳动实习期间完成的,他以一作身份发表论文《Real-Time High-Resolution Background Matting》,提出了Background Matting V2方法。实时感受一下这只AI的效果,

demo地址:https://peterl1n.github.io/RobustVideoMatting/#/demo

GitHub地址:https://github.com/PeterL1n/RobustVideoMatting

论文地址:https://arxiv.org/abs/2108.11515

Speed

Speed is measured with inference_speed_test.py for reference.

GPUdTypeHD (1920x1080)4K (3840x2160)
RTX 3090FP16172 FPS154 FPS
RTX 2060 SuperFP16134 FPS108 FPS
GTX 1080 TiFP32104 FPS74 FPS
  • Note 1: HD uses downsample_ratio=0.25, 4K uses downsample_ratio=0.125. All tests use batch size 1 and frame chunk 1.
  • Note 2: GPUs before Turing architecture does not support FP16 inference, so GTX 1080 Ti uses FP32.
  • Note 3: We only measure tensor throughput. The provided video conversion script in this repo is expected to be much slower, because it does not utilize hardware video encoding/decoding and does not have the tensor transfer done on parallel threads. If you are interested in implementing hardware video encoding/decoding in Python, please refer to PyNvCodec.

Third-Party Projects

      在windows上实现的时候需要借助使用Lite.AI.ToolKit C++工具箱来跑RobustVideoMatting的一些案例(GitHub - DefTruth/lite.ai.toolkit: 🛠 A lite C++ toolkit of awesome AI models with ONNXRuntime, NCNN, MNN and TNN. YOLOX, YOLOP, YOLOv5, YOLOR, NanoDet, YOLOX, SCRFD, YOLOX . MNN, NCNN, TNN, ONNXRuntime, CPU/GPU.) ,ONNXRuntime、MNN、NCNN和TNN四个版本。

二、蓝绿幕背景抠图

参考文章《Software Chroma Keying in an Immersive Virtual Environment》,其中

Alpha生成部分利用下面的方法:

蓝绿幕抠图Demo:

链接:https://pan.baidu.com/s/1Yw0Mqm4O8WfaCcYaPplwNg 
提取码:ji7a 

       以上内容纯属于自己研究,希望对大家能提供帮助,有需要的问题可以发邮件请教:187100248@qq.com。

参考文献:

字节实习生开发的字节实习生开发的AI,实现4K60帧视频实时抠图,连头发丝都根根分明字节实习生开发的

绿幕换背景、绿幕视频实时换背景_zhulong1984的博客-CSDN博客_绿幕背景

  • 2
    点赞
  • 19
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值