Add paddlespeech.resource.

pull/1917/head
KP 3 years ago
parent dcea088c66
commit 1e066fab9e

@ -297,8 +297,7 @@ class VectorExecutor(BaseExecutor):
logger.info(f"load the pretrained model: {tag}") logger.info(f"load the pretrained model: {tag}")
# get the model from the pretrained list # get the model from the pretrained list
# we download the pretrained model and store it in the res_path # we download the pretrained model and store it in the res_path
res_path = self._get_pretrained_path(tag) self.res_path = self.task_resource.res_dir
self.res_path = res_path
self.cfg_path = os.path.join( self.cfg_path = os.path.join(
self.task_resource.res_dir, self.task_resource.res_dir,

Loading…
Cancel
Save