PeterL1n / BackgroundMattingV2

Real-Time High-Resolution Background Matting
MIT License
6.81k stars 950 forks source link

train_base.py code issue #124

Closed jiawenhao2015 closed 3 years ago

jiawenhao2015 commented 3 years ago

https://github.com/PeterL1n/BackgroundMattingV2/blob/master/train_base.py#L163

true_src = true_fgr true_pha + true_src (1 - true_pha)

is it should be

true_src = true_fgr true_pha + true_bgr (1 - true_pha)