mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-08-09 01:52:41 +00:00
update musan symlinks
This commit is contained in:
parent
6e70cdc658
commit
ea88c55794
@ -88,8 +88,14 @@ if __name__ == "__main__":
|
|||||||
"musan",
|
"musan",
|
||||||
old_feature_prefix=original_feature_base_path
|
old_feature_prefix=original_feature_base_path
|
||||||
)
|
)
|
||||||
|
# Make sure we're overwriting the correct path even if it's a symlink
|
||||||
|
if musan_manifest_path.is_symlink() or musan_manifest_path.exists():
|
||||||
|
logger.info(f"Overwriting existing musan manifest at: {musan_manifest_path}")
|
||||||
|
os.unlink(musan_manifest_path)
|
||||||
|
|
||||||
updated_musan_cuts.to_file(musan_manifest_path)
|
updated_musan_cuts.to_file(musan_manifest_path)
|
||||||
logger.info(f"Updated musan cuts saved to: {musan_manifest_path}")
|
logger.info(f"Updated musan cuts written to: {musan_manifest_path}")
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.error(f"Error processing musan manifest {musan_manifest_path}: {e}", exc_info=True)
|
logger.error(f"Error processing musan manifest {musan_manifest_path}: {e}", exc_info=True)
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user