FaceAttribute icon indicating copy to clipboard operation
FaceAttribute copied to clipboard

Why use MSEloss?

Open xjw00654 opened this issue 4 years ago • 1 comments

I found your formulate your label as 1 and -1, and how to distinguish the label since MSELoss calculate the loss but dismiss the sign bit?

xjw00654 avatar Sep 27 '20 02:09 xjw00654

将loss函数更改为: loss = nn.CrossEntropyLoss() ,同时标签也做相应的修改,并且Label需要squeeze降维。

Asunany avatar Dec 15 '21 14:12 Asunany