You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ef load_pretrained_encoder(self, opt): #加载预训练的编码器网络
print('Init parameter from {}'.format(opt.pretrained_path))
pretrained_path = os.path.join(opt.pretrained_path, str(opt.cvNo))
pretrained_config_path = os.path.join(opt.pretrained_path, 'train_opt.conf')
pretrained_config = self.load_from_opt_record(pretrained_config_path)
pretrained_config.isTrain = False # teacher model should be in test mode
pretrained_config.gpu_ids = opt.gpu_ids # set gpu to the same
self.pretrained_encoder = UttFusionModel(pretrained_config)
self.pretrained_encoder.load_networks_cv(pretrained_path)
self.pretrained_encoder.cuda()
self.pretrained_encoder.eval()
ef load_pretrained_encoder(self, opt): #加载预训练的编码器网络
print('Init parameter from {}'.format(opt.pretrained_path))
pretrained_path = os.path.join(opt.pretrained_path, str(opt.cvNo))
pretrained_config_path = os.path.join(opt.pretrained_path, 'train_opt.conf')
pretrained_config = self.load_from_opt_record(pretrained_config_path)
pretrained_config.isTrain = False # teacher model should be in test mode
pretrained_config.gpu_ids = opt.gpu_ids # set gpu to the same
self.pretrained_encoder = UttFusionModel(pretrained_config)
self.pretrained_encoder.load_networks_cv(pretrained_path)
self.pretrained_encoder.cuda()
self.pretrained_encoder.eval()
mmin_model里这一部分opt.pretrained_path,指的是哪里,运行显示none,我想设一个默认值不知道指的是哪的路径。
请多指教,感谢!
The text was updated successfully, but these errors were encountered: