bstriner / keras-adversarial

Keras Generative Adversarial Networks
MIT License
867 stars 231 forks source link

Update example_gan.py #23

Open jskDr opened 7 years ago

jskDr commented 7 years ago

Code for dividing an integer to get an integer result is changed to work appropriately. E.g., hidden_dim / 4 --> int(hidden_dim / 4)

bstriner commented 7 years ago

Trying to keep compatibility w/ Keras 1 and 2 is a pain but I have them both running on Travis. Need to make Travis run more of the examples though.

I've been putting compatibility in keras_adversarial.legacy for the examples. For example, keras_adversarial.legacy.fit(model, epochs=10) will model.fit(epochs=10) if Keras 2 or model.fit(nb_epoch=10) if Keras 1.

Haven't had a chance to update everything with legacy though. Also need legacy functions for convolutional changes, etc.