Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Commit

Permalink
audio
Browse files Browse the repository at this point in the history
  • Loading branch information
Borda committed Jun 18, 2023
1 parent 710a576 commit 07ce452
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 1 addition & 0 deletions requirements/datatype_audio.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# NOTE: all pins for latest are for CI consistency unless it is `strict`, then it is also forced in setup

numpy <1.24 # strict - freeze for strange failing with required `padding=True`
torchaudio <=2.0.2
torchvision <=0.15.2
librosa >=0.8.1, <=0.10.0.post2
Expand Down
5 changes: 1 addition & 4 deletions src/flash/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,9 @@
import numpy

# adding compatibility for numpy >= 1.24
for tp_name, tp_ins in [("object", object), ("bool", bool)]:
for tp_name, tp_ins in [("object", object), ("bool", bool), ("float", float)]:
if not hasattr(numpy, tp_name):
setattr(numpy, tp_name, tp_ins)
for tp_name, tp_ins in [("float", "float64")]:
if not hasattr(numpy, tp_name):
setattr(numpy, tp_name, getattr(numpy, tp_ins))

from flash.__about__ import * # noqa: F401 E402 F403
from flash.core.data.callback import FlashCallback # noqa: E402
Expand Down

0 comments on commit 07ce452

Please sign in to comment.