Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

opt.pretrained_path这个字段,指的是哪一部分啊,运行显示none #15

Open
aixuanjiayi opened this issue Jul 11, 2023 · 0 comments

Comments

@aixuanjiayi
Copy link

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,我想设一个默认值不知道指的是哪的路径。
请多指教,感谢!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant