Skip to content

Commit

Permalink
Merge pull request espnet#5598 from espnet/ftshijt-patch-1
Browse files Browse the repository at this point in the history
Minor fix to ACEsinger preparation
  • Loading branch information
ftshijt committed Dec 21, 2023
2 parents 62a4b2b + e8f7a8b commit 7c140c2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 3 additions & 1 deletion egs2/acesinger/svs1/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

This is the recipe of ACESinger-augmented Opencpop recipe

More details coming soon!
[Download link](https://drive.google.com/file/d/1qHLW3U7a0z8FpWuaEUmY-LViBIwRmeM0/view?usp=drive_link)

More details coming soon

See the following pages for the usage:
- [How to run the recipe](../../TEMPLATE/svs1/README.md#how-to-run)
Expand Down
8 changes: 7 additions & 1 deletion egs2/acesinger/svs1/local/data_prep.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ def segment_dataset(args, dataset):
if not os.path.isdir(song_path):
continue
for file in os.listdir(song_path):
if file.endswith(".wav"):
if file.endswith(".wav") and not file.startswith("._"):
audio_file_name = file
break
else:
Expand Down Expand Up @@ -426,5 +426,11 @@ def process_subset(args, set_name, tempos, dataset):
if not os.path.exists(os.path.join(args.src_data, dataset, "segments")):
makedir(os.path.join(args.src_data, dataset, "segments"))
segment_dataset(args, dataset)
else:
logging.info(
"Found existing data at {}, skip re-generate".format(
os.path.join(args.src_data, dataset, "segments")
)
)
for name in ["train", "test"]:
process_subset(args, name, tempos, dataset)

0 comments on commit 7c140c2

Please sign in to comment.