senguptaumd / Background-Matting

Background Matting: The World is Your Green Screen
https://grail.cs.washington.edu/projects/background-matting/
4.78k stars 662 forks source link

Some detail about the loss #48

Open mozpp opened 4 years ago

mozpp commented 4 years ago

In code https://github.com/senguptaumd/Background-Matting/blob/808b6c7bf431dd7db4a893ecfffbbe638f5eb267/train_real_fixed.py#L136

In article: al_loss=2 l1_loss(alpha_pred_sup,alpha_pred,mask0)+4 g_loss(alpha_pred_sup,alpha_pred,mask0)

which is better?