Open PradipKumarDas opened 3 years ago
Same error occurred for me, python 3.8 running on Ubuntu via WSL on Windows:
>>> phoney = BigPhoney()
2022-04-27 21:50:47.740152: I tensorflow/core/platform/cpu_feature_guard.cc:151] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: AVX2 FMA
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/jdegregorio/repos/name-phonetics/.env/lib/python3.8/site-packages/big_phoney/big_phoney.py", line 15, in __init__
self.pred_model = PredictionModel()
File "/home/jdegregorio/repos/name-phonetics/.env/lib/python3.8/site-packages/big_phoney/prediction_model.py", line 16, in __init__
self.training_model, self.encoder, self.decoder = self._build_model()
File "/home/jdegregorio/repos/name-phonetics/.env/lib/python3.8/site-packages/big_phoney/prediction_model.py", line 75, in _build_model
context = get_context(encoder_outputs, h)
File "/home/jdegregorio/repos/name-phonetics/.env/lib/python3.8/site-packages/big_phoney/prediction_model.py", line 38, in get_context
context = attn_dot([attention_weights, encoder_outputs])
File "/home/jdegregorio/repos/name-phonetics/.env/lib/python3.8/site-packages/keras/utils/traceback_utils.py", line 67, in error_handler
raise e.with_traceback(filtered_tb) from None
File "/home/jdegregorio/repos/name-phonetics/.env/lib/python3.8/site-packages/keras/layers/merge.py", line 693, in build
raise ValueError(
ValueError: Incompatible input shapes: axis values 20 (at axis 1) != None (at axis 1). Full input shapes: (None, 20, 1), (None, None, 512)
Package Versions:
absl-py==1.0.0
astunparse==1.6.3
big-phoney==1.0.1
cachetools==5.0.0
certifi==2021.10.8
charset-normalizer==2.0.12
flatbuffers==2.0
gast==0.5.3
google-auth==2.6.6
google-auth-oauthlib==0.4.6
google-pasta==0.2.0
grpcio==1.44.0
h5py==3.6.0
idna==3.3
importlib-metadata==4.11.3
inflect==5.5.2
keras==2.8.0
Keras-Preprocessing==1.1.2
libclang==14.0.1
Markdown==3.3.6
numpy==1.22.3
oauthlib==3.2.0
opt-einsum==3.3.0
pandas==1.4.2
protobuf==3.20.1
pyasn1==0.4.8
pyasn1-modules==0.2.8
pyhere==1.0.0
python-dateutil==2.8.2
pytz==2022.1
requests==2.27.1
requests-oauthlib==1.3.1
rsa==4.8
six==1.16.0
tensorboard==2.8.0
tensorboard-data-server==0.6.1
tensorboard-plugin-wit==1.8.1
tensorflow-cpu==2.8.0
tensorflow-io-gcs-filesystem==0.25.0
termcolor==1.1.0
tf-estimator-nightly==2.8.0.dev2021122109
typing-extensions==4.2.0
urllib3==1.26.9
Werkzeug==2.1.1
wrapt==1.14.0
zipp==3.8.0
Hello!
Thanks for the initiative to bring this open source project.
I was on the way to give it a try, and found the error while executing the following line after importing the module successfully.
phoney = BigPhoney()
The error generated is mentioned below. Numpy 1.19.5 is installed. Any help towards resolution would be appreciated.
`--------------------------------------------------------------------------- ValueError Traceback (most recent call last)