gmalivenko / onnx2keras

Convert ONNX model graph to Keras model format.
MIT License
195 stars 116 forks source link

tensorflow version problem #37

Open pawopawo opened 4 years ago

pawopawo commented 4 years ago
pip3 install --upgrade onnx2keras
Looking in indexes: https://bytedpypi.byted.org/simple, https://mirrors.aliyun.com/pypi/simple
Collecting onnx2keras
  Downloading https://bytedpypi.byted.org/tos/pkg/pypi/onnx2keras/onnx2keras-0.0.17.tar.gz
     / 40kB 35.5MB/s
Collecting tensorflow>=2.0 (from onnx2keras)

I get an error saying that tensorflow2.0 is not installed, but I installed it:

Package              Version              Location                                              
-------------------- -------------------- ------------------------------------------------------
absl-py              0.9.0                
astor                0.8.1                
audioread            2.1.6                
cffi                 1.12.2               
cloudpickle          0.8.0                
cycler               0.10.0               
decorator            4.3.2                
falcon               1.4.1                
future               0.17.1               
gast                 0.3.2                
google-pasta         0.1.8                
grpcio               1.26.0               
h5py                 2.9.0                
horovod              0.16.0               
inflect              2.1.0                
joblib               0.13.2               
Keras                2.3.1                
Keras-Applications   1.0.7                
Keras-Preprocessing  1.0.9                
kiwisolver           1.0.1                
librosa              0.6.3                
llvmlite             0.27.1               
Markdown             3.1.1                
matplotlib           3.0.3                
mock                 2.0.0                
numba                0.42.1               
numpy                1.16.2               
onnx                 1.5.0                
onnx2keras           0.0.13               
opencv-python        4.1.2.30             
pandas               0.24.1               
pbr                  5.1.3                
Pillow               5.4.1                
pip                  18.1                 
protobuf             3.11.2               
psutil               5.6.1                
pycparser            2.19                 
pyparsing            2.3.1                
python-dateutil      2.8.0                
python-mimeparse     1.6.0                
pytz                 2018.9               
PyYAML               3.13                 
resampy              0.2.1                
scikit-learn         0.20.3               
scipy                1.2.1                
setuptools           42.0.2               
six                  1.12.0               
sklearn              0.0                  
tb-nightly           1.14.0a20190301      
tensorboardX         1.9                  
tensorflow           2.0.0a0              
termcolor            1.1.0                
tf-estimator-nightly 1.14.0.dev2019030115 
torch                1.0.1.post2          
torchvision          0.2.2.post3          
tqdm                 4.31.1               
typing               3.6.6                
typing-extensions    3.7.4.1              
Unidecode            1.0.22               
Vizer                0.1.5                
Werkzeug             0.16.0               
wheel                0.32.3               
wrapt                1.11.2               
yacs                 0.1.6 
gmalivenko commented 4 years ago

Hello @pawopawo.

I set requirements tensorflow>=2.0, so it should work. You can also try to install onnx2keras using git version: pip install git+ssh://git@github.com/nerox8664/onnx2keras.git

Here is related issue: https://github.com/tensorflow/tensorflow/issues/31939. Maybe you will need to update pip version.

pawopawo commented 4 years ago

Thank you very much for your reply, I will try it out and give feedback in time