Closed Arudrin closed 3 years ago
Or simply improve results overall. Mobilenet backbone and model seems to work best but Id still like to improve on it more.
Here is the background image:
A frame of the source video:
Frames of the result: There are frames where the background is not completely replaced
python command:
python inference_video.py \ --model-type mattingrefine \ --model-backbone mobilenetv2 \ --model-backbone-scale 0.25 \ --model-refine-mode sampling \ --model-refine-sample-pixels 80000 \ --model-checkpoint "path" \ --video-src "xpath" \ --video-bgr "ypath" \ --video-resize 1920 1080 \ --output-dir "zpath" \ --output-type com
I don't have any tricks that can help besides avoiding the shadow at its first place. Every method has its limitations. Shadow will cause problems even for green screen matting.
ok thank you very much!
Or simply improve results overall. Mobilenet backbone and model seems to work best but Id still like to improve on it more.
Here is the background image:
A frame of the source video:
Frames of the result: There are frames where the background is not completely replaced
python command:
python inference_video.py \ --model-type mattingrefine \ --model-backbone mobilenetv2 \ --model-backbone-scale 0.25 \ --model-refine-mode sampling \ --model-refine-sample-pixels 80000 \ --model-checkpoint "path" \ --video-src "xpath" \ --video-bgr "ypath" \ --video-resize 1920 1080 \ --output-dir "zpath" \ --output-type com