From d02dc596fad040b78831d6b27131a0f006dcd76b Mon Sep 17 00:00:00 2001 From: hua-ops <61105839+hua-ops@users.noreply.github.com> Date: Wed, 6 Sep 2023 18:19:30 +0800 Subject: [PATCH] Fix a small bug on windows system --- prepare_data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prepare_data.py b/prepare_data.py index 05cbe50d..e3cb9644 100644 --- a/prepare_data.py +++ b/prepare_data.py @@ -47,7 +47,7 @@ def collect_data(): for filename in filenames: if filename.startswith('.'): continue - fnames.append(os.path.join(dirpath, filename)) + fnames.append(os.path.join(dirpath, filename).replace('\\', '/')) # low quality samples (selected by collecting samples to # which the trained model assigned very low likelihood)