-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding compatibility with tensorflow2 #17
Changes from 6 commits
4abc041
967269b
75e2253
3bf260f
e509313
8f3d64f
701a9b7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,8 @@ | |
|
||
</pre> | ||
|
||
![example workflow](https://github.com/MTG/DCASE-models/actions/workflows/main.yml/badge.svg) | ||
[![codecov](https://codecov.io/gh/MTG/DCASE-models/branch/master/graph/badge.svg?token=xOOVldiH0J)](https://codecov.io/gh/MTG/DCASE-models) | ||
[![PyPI](https://img.shields.io/pypi/v/DCASE-models)](https://pypi.org/project/DCASE-models/) | ||
[![GitHub license](https://img.shields.io/github/license/pzinemanas/DCASE-models)](https://github.com/pzinemanas/DCASE-models/blob/master/LICENSE) | ||
|
||
|
@@ -31,16 +33,13 @@ DCASE-models uses [SoX](http://sox.sourceforge.net/) for functions related to th | |
``` | ||
conda install -c conda-forge sox | ||
``` | ||
Before installing the library, you must install only one of the Tensorflow variants: CPU-only or GPU. | ||
When installing the library, you must select the tensorflow variant: version 1 (CPU-only or GPU) or version 2. | ||
``` | ||
pip install "tensorflow<1.14" # for CPU-only version | ||
pip install "tensorflow-gpu<1.14" # for GPU version | ||
pip install DCASE-models[keras_tf] # for tensorflow 1 CPU-only version | ||
pip install DCASE-models[keras_tf_gpu] # for tensorflow 1 GPU version | ||
pip install DCASE-models[tf2] # for tensorflow 2 | ||
Comment on lines
+38
to
+40
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Cool :) |
||
``` | ||
|
||
Then to install the package: | ||
``` | ||
pip install DCASE-models | ||
``` | ||
To include visualization related dependencies, run the following instead: | ||
``` | ||
pip install DCASE-models[visualization] | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,22 +19,22 @@ | |
download_url='http://github.com/pzinemanas/DCASE-models/releases', | ||
packages=setuptools.find_packages(), | ||
install_requires=[ | ||
'numpy==1.17.4', | ||
'pandas==0.25.3', | ||
'SoundFile==0.10.3.post1', | ||
'PyYAML==5.2', | ||
'numba==0.48.0', | ||
'librosa==0.7.1', | ||
'openl3==0.3.1', | ||
'scikit-learn==0.22.1', | ||
'keras==2.2.4', | ||
# 'tensorflow-gpu==1.12.0', | ||
'autopool==0.1.0', | ||
'wget==3.2', | ||
'sox==1.3.7', | ||
'sed_eval==0.2.1', | ||
'numpy>=1.1', | ||
'pandas>=0.25', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we still need pandas? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No, we have to implement a |
||
'SoundFile>=0.1', | ||
'PyYAML>=5.0', | ||
'librosa>=0.7', | ||
'scikit-learn>=0.20', | ||
'wget>=3.0', | ||
'sox<1.4', | ||
'sed_eval>=0.2', | ||
], | ||
extras_require={ | ||
'keras_tf': ['tensorflow<1.14', 'keras==2.2.4'], | ||
'keras_tf_gpu': ['tensorflow-gpu<1.14', 'keras==2.2.4'], | ||
'tf2': ['tensorflow>2.0'], | ||
'openl3': ['openl3==0.3.1'], | ||
'autopool': ['autopool==0.1.0'], | ||
'docs': ['numpydoc', 'sphinx!=1.3.1', 'sphinx_rtd_theme'], | ||
'tests': ['pytest >= 5.4.3', 'pytest-cov >= 2.11.1'], | ||
'visualization': [ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't we add python 3.8?
https://www.tensorflow.org/install/pip
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, we should. I'll add it.