Skip to content
This repository was archived by the owner on Feb 3, 2026. It is now read-only.

Commit 6dc7741

Browse files
committed
fix download errors
fix download errors fix download errors
1 parent b842b93 commit 6dc7741

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

bytesep/__main__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,13 @@ def download_checkpoints(args) -> NoReturn:
3737
local_checkpoint_link = os.path.join(
3838
local_checkpoints_dir, checkpoint_name.split("?")[0]
3939
)
40-
print(remote_checkpoint_link)
4140
command_str = 'wget -O "{}" "{}"'.format(
4241
local_checkpoint_link, remote_checkpoint_link
4342
)
4443
os.system(command_str)
4544

4645
# Download and unzip config yaml files.
47-
remote_zip_scripts_link = os.path.join(zenodo_dir, "train_scripts.zip?download=1")
46+
remote_zip_scripts_link = os.path.join(zenodo_dir, "train_scripts.zip?download=1").replace('\\', '/')
4847
local_zip_scripts_path = os.path.join(local_checkpoints_dir, "train_scripts.zip")
4948

5049
os.system('wget -O "{}" {}'.format(local_zip_scripts_path, remote_zip_scripts_link))

bytesep/separate.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ def separate_file(args) -> NoReturn:
176176
os.system(
177177
'ffmpeg -y -loglevel panic -i "{}" "{}"'.format(tmp_wav_path, output_path)
178178
)
179-
os.system('rm "{}"'.format(tmp_wav_path))
179+
os.remove(tmp_wav_path)
180180

181181
print('Write out to {}'.format(output_path))
182182

@@ -253,7 +253,7 @@ def separate_dir(args) -> NoReturn:
253253
os.system(
254254
'ffmpeg -y -loglevel panic -i "{}" "{}"'.format(tmp_wav_path, output_path)
255255
)
256-
os.system('rm "{}"'.format(tmp_wav_path))
256+
os.remove(tmp_wav_path)
257257
print('{} / {}, Write out to {}'.format(n, audios_num, output_path))
258258

259259

0 commit comments

Comments
 (0)