SSL4MIS icon indicating copy to clipboard operation
SSL4MIS copied to clipboard

Does R-Drop need two models?

Open zjh21 opened this issue 1 year ago • 1 comments

Thank you for your great work! However, I do have a problem concerning train_regularized_dropout_2D.py, which is an implementation of R-Drop. From what I know about R-Drop, it constrains two sub-models, i.e., the same model with different dropouts, to output the same results. That is, we can just put data x through the same model twice. The two forward propagations have two different sub-networks due to the randomness of nn.DropOut(). In your code implementation, however, there are model1 and model2. I wonder if it is necessary.

zjh21 avatar Apr 05 '23 08:04 zjh21

Hey,bro.I also want to know the answer to this question.In your implementation, what is the performance of using only one model.

KzRinga avatar Jul 18 '23 11:07 KzRinga