Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Incompatible with current version of Keras #17

Open
STSpencer opened this issue Oct 10, 2018 · 1 comment
Open

Incompatible with current version of Keras #17

STSpencer opened this issue Oct 10, 2018 · 1 comment

Comments

@STSpencer
Copy link

Hi,
I've found a couple of issues related to use of this code with Keras 2.2.4 in sim-gan.py that cause errors.

  1. Line 72 needs to be changed to y = layers.merge.Add()([input_features, y])
  2. Line 177 needs to be changed to data_format='channels_last')
    Thanks for providing the code, it's very helpful.
@noushinha
Copy link

noushinha commented Sep 30, 2022

Thanks a lot for providing the code. Very simple and easy to follow.

layers.merge is no longer available in new versions of the keras.
So I changed layers.merge to layers.Add and it solved the version incompatibility issue. However, later it causes a 'shape miss match error between input_feature and y.

Any idea how to solve this?

P.S: I am using the .h5 files from the Kaggle repo so the size of input data is (55, 35) for both datasets.

Best,
noushin

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants