视频抠图换背景测试可以,但残影比较明显,请问如何解决?另外所换背景是只能图片吗,可否用视频?
owlsaea opened this issue · comments
owlsaea commented
owlsaea commented
python inference_video.py --model-type mattingrefine --model-backbone resnet50 --model-backbone-scale 0.25 --model-checkpoint "pytorch_resnet50.pth" --video-src “scr.mp4" --video-bgr "bgr.png” --output-dir “/az" --output-types com --output-format video
Peter Lin commented
提供的代碼只能換背景,你可以導出綠背景,或自己寫代碼更換背景為視頻。