hsiangyuzhao / RCPS

official implementation of rectified contrastive pseudo supervision
MIT License
58 stars 3 forks source link

全监督(ratio = 1)训练出现loss Nan的问题 #16

Closed yyyyy-aa closed 6 months ago

yyyyy-aa commented 6 months ago

你好,我在全监督(ratio = 1)训练时出现了nan的问题,如下图所示: nan 请问需要改哪里的代码,我的实验设置与论文的相同。

hsiangyuzhao commented 6 months ago

Actually the released code base does not support "fully supervision". If you set labeled_ratio=1.0, then you will have an empty unlabeled dataset, which could leads to NaNs or Nulls during training. You are required to remove the unlabeled loader as well as related losses if you do so.