Skip to content

Commit

Permalink
Merge branch 'main' of github.com:karaokenerds/python-audio-separator
Browse files Browse the repository at this point in the history
  • Loading branch information
beveradb committed Feb 4, 2024
2 parents c12cc15 + 79e81af commit 5896787
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions audio_separator/separator/separator.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from pydub import AudioSegment
from audio_separator.separator import spec_utils
from audio_separator.separator.stft import STFT

from tqdm import tqdm

class Separator:
def __init__(
Expand Down Expand Up @@ -606,7 +606,7 @@ def demix(self, mix, is_match_mix=False):
self.logger.debug(f"Total chunks to process: {total_chunks}")

# Processes each chunk of the mixture.
for i in range(0, mixture.shape[-1], step):
for i in tqdm(range(0, mixture.shape[-1], step),desc="Processing chunk"):
total += 1
start = i
end = min(i + chunk_size, mixture.shape[-1])
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ numpy = ">=1.23"
librosa = ">=0.9"
six = ">=1.16"
torch = "*"
tqdm = "*"
pydub = ">=0.25"
onnx = ">=1.14"
onnx2torch = ">=1.5"
Expand Down

0 comments on commit 5896787

Please sign in to comment.