espnet2.main_funcs.pack_funcs.unpack
Less than 1 minute
espnet2.main_funcs.pack_funcs.unpack
espnet2.main_funcs.pack_funcs.unpack(input_archive: Path | str, outpath: Path | str, use_cache: bool = True) → Dict[str, str]
Scan all files in the archive file and return as a dict of files.
Examples
tarfile: : model.pth some1.file some2.file
>>> unpack("tarfile", "out")
{'asr_model_file': 'out/model.pth'}