funasr/download/download_from_hub.py
@@ -48,6 +48,7 @@ if "file_path_metas" in conf_json: add_file_root_path(model_or_path, conf_json["file_path_metas"], cfg) cfg.update(kwargs) if "config" in cfg: config = OmegaConf.load(cfg["config"]) kwargs = OmegaConf.merge(config, cfg) kwargs["model"] = config["model"]