Skip to content

Keras 2.42 AttributeError: module 'keras.backend' has no attribute 'image_dim_ordering' #2

@AGenchev

Description

@AGenchev

TF/Keras has updated so as often happens, it broke the old code.
the corrected stanzas should look like:
if K.image_data_format() == "channels_first": # was K.image_dim_ordering() == "th"

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