ERF-PSPNET icon indicating copy to clipboard operation
ERF-PSPNET copied to clipboard

Why did you set the one_hot depth=num_classes+1 ?

Open Dorispaopao opened this issue 5 years ago • 2 comments

Actually, the depth of the annotations' one_hot matrix should be num_classes.

Dorispaopao avatar Dec 26 '19 15:12 Dorispaopao

Actually, the depth of the annotations' one_hot matrix should be num_classes.

Actually, we can communicate in Chinese. 就那个背景在标签上设置为0,在用这个函数处理的时候,要比类别多设置一类,最后计算损失函数的时候用来归一化,和获取相关类别的mask的。

Katexiang avatar Dec 27 '19 03:12 Katexiang

所以是 背景不包含在类别里吗?

在 2019-12-27 11:28:12,"Katexiang" [email protected] 写道:

Actually, the depth of the annotations' one_hot matrix should be num_classes.

Actually, we can communicate in Chinese. 就那个背景在标签上设置为0,在用这个函数处理的时候,要比类别多设置一类,最后计算损失函数的时候用来归一化,和获取相关类别的mask的。

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

Dorispaopao avatar Jan 13 '20 06:01 Dorispaopao