fit with librosa (#3989)

* fit with librosa

* Update base_commands.py

* Apply suggestions from code review

* Apply suggestions from code review
pull/3994/head
张春乔 7 months ago committed by GitHub
parent 367b665ca1
commit 793a89d53c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -122,6 +122,9 @@ class StatsCommand:
elif "multilingual" in key:
line[4], line[1] = line[1].split("_")[0], line[1].split(
"_")[1:]
# Avoid having arrays within the elements of the input parameters when passing them to numpy.array
if type(line[1]) is list:
line[1] = "/".join(line[1])
tmp = numpy.array(line)
idx = [0, 5, 3, 4, 1, 2]
line = tmp[idx]

@ -88,9 +88,8 @@ base = [
"hyperpyyaml",
"inflect",
"jsonlines",
# paddleaudio align with librosa==0.8.1, which need numpy==1.23.x
"numpy==1.23.5",
"librosa==0.8.1",
"numpy",
"librosa",
determine_scipy_version(), # scipy or scipy>=1.4.0, <=1.12.0
"loguru",
determine_matplotlib_version(), # matplotlib or matplotlib<=3.8.4

Loading…
Cancel
Save