Skip to content

Commit a906704

Browse files
committed
just unbreak installation with setuptools and guide users towards manual pip install, if user hubert
1 parent 3681ed5 commit a906704

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

audiolm_pytorch/hubert_kmeans.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ def __init__(
3636
output_layer = 9
3737
):
3838
super().__init__()
39+
40+
import sklearn
41+
assert sklearn.__version__ == '0.24.0', 'scikit-learn needs to be exactly 0.24.0 - please install the correct version by running `pip install scikit-learn==0.24.0`'
42+
3943
self.target_sample_hz = target_sample_hz
4044
self.seq_len_multiple_of = seq_len_multiple_of
4145
self.output_layer = output_layer

audiolm_pytorch/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '1.2.12'
1+
__version__ = '1.2.14'

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
'joblib',
2929
'lion-pytorch',
3030
'local-attention>=1.8.4',
31-
'scikit-learn==0.24.0',
31+
'scikit-learn',
3232
'sentencepiece',
3333
'torch>=1.12',
3434
'torchaudio',

0 commit comments

Comments
 (0)