hustvl / ViTMatte

[Information Fusion (Vol.103, Mar. '24)] Boosting Image Matting with Pretrained Plain Vision Transformers
MIT License
373 stars 37 forks source link

Evaluation metrics scaling #37

Open bhack opened 1 month ago

bhack commented 1 month ago

From the paper:

To evaluate our approach, we use four commonly used metrics: Sum of Absolute Differences (SAD), Mean Square Error (MSE), Gradient loss (Grad), and Connectivity loss (Conn). Lower values of these metrics indicate higher qual- ity of alpha mattes. Note that we scale the value of MSE to 1e-3 for ease of reading.

But in the implementation I see instead only the SAD scaled https://github.com/hustvl/ViTMatte/blob/a70fcb3a2f786e1331f13748b42089c1e395f62d/evaluation.py#L28