Skip to content

Commit

Permalink
修改成和47行一样的为相对root的目录 (#249)
Browse files Browse the repository at this point in the history
* 修改成和47行一样的为相对root的目录

修改成和47行一样的为相对root的目录,不然后面vits微调读不到数据,dataloader出来长度为0

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
JiashengLiu and pre-commit-ci[bot] authored May 27, 2024
1 parent 001549a commit a9594bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/vqgan/create_train_split.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def main(root, val_ratio, val_count, filelist, min_duration, max_duration):
files = list_files(root, AUDIO_EXTENSIONS, recursive=True, sort=True)

if min_duration is None and max_duration is None:
filtered_files = list(map(str, files))
filtered_files = list(map(str, [file.relative_to(root) for file in files]))
else:
filtered_files = []
for file in tqdm(files):
Expand Down

0 comments on commit a9594bb

Please sign in to comment.