from local

This commit is contained in:
dohe0342 2023-04-06 22:21:34 +09:00
parent 17a1b8129a
commit ff1ad01500
3 changed files with 5 additions and 1 deletions

View File

@ -65,7 +65,11 @@ class FairSeqData2VecEncoder(EncoderInterface):
)
model = models[0]
model.feature_grad_mult = 0.0 ## for conv network freeze
model.mask_prob = 0.0 ## for conv network freeze
## prevent overfitting
model.mask_prob = 0.65
model.mask_channel_prob = 0.5
model.mask_channel_length = 64
model.activation_dropout = 0.1
self.encoders = model
self.pretrained_params = copy.deepcopy(model.state_dict())