bstriner / keras-adversarial

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

Fixed issue with Keras regularizers #33

Closed wilson-nunn closed 7 years ago

wilson-nunn commented 7 years ago

With latest version of Keras in Python 3.6, cannot import l1l2 and needs to be L1L2 instead.

bstriner commented 7 years ago

@wilson-nunn I've been trying to get things to work for both with some utility functions but haven't finished cleaning up the examples. Use the import from keras_adversarial.legacy import l1l2. That is a function that will use l1l2 or L1L2 depending on the version of Keras installed.

I know your fix is much easier, but then I'm going to get all the Keras 1 people complaining.

Cheers

bstriner commented 7 years ago

BTW, here's a link to the legacy functions:

https://github.com/bstriner/keras-adversarial/blob/master/keras_adversarial/legacy.py