Skip to content

Commit

Permalink
why not rich.progress
Browse files Browse the repository at this point in the history
  • Loading branch information
Miuzarte committed Jul 22, 2023
1 parent e50786e commit 4c4093e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resample.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import librosa
import numpy as np
from scipy.io import wavfile
from tqdm import tqdm
from rich.progress import track


def load_wav(wav_path):
Expand Down Expand Up @@ -81,7 +81,7 @@ def process_all_speakers():
if os.path.isdir(spk_dir):
print(spk_dir)
futures = [executor.submit(process, (spk_dir, i, args)) for i in os.listdir(spk_dir) if i.endswith("wav")]
for _ in tqdm(concurrent.futures.as_completed(futures), total=len(futures)):
for _ in track(concurrent.futures.as_completed(futures), total=len(futures), description="resampling:"):
pass


Expand Down

0 comments on commit 4c4093e

Please sign in to comment.