Skip to content

Change of Keras API #12

@Vopaaz

Description

@Vopaaz

When I run pix2pix-keras.ipynb, in the fifth block

if K._BACKEND == 'theano':

raises

AttributeError: module 'keras.backend' has no attribute '_BACKEND'

In the current Keras version (2.2.5), the proper API has changed to K.backend().
Would you please fix that, or should I draft a PR?

Besides, consider that the repo is created 2-3 years ago, there may be a lot of such API change and will be troublesome to fix them all. Would it be helpful to add a requirements.txt stating all the proper version of used packages, to avoiding such problems?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions