Skip to content

Incompatible keras and h5py versions #37

Description

@funkey

DenoiSeg requires keras 2.2.5 (as per README instructions, but also during pip install denoiseg). This version of keras contains a workaround for a specific h5py version, where dataset attributes are returned as bytes instead of str (see h5py/h5py#379).

Newer versions of h5py have this bug fixed, which breaks loading of model weights with keras 2.2.5 (attempts to decode a str).

Just conda installing keras 2.2.5 and h5py results in an incompatible combination of those two. I tried to conda install an older version of h5py (2.2.1) but gave up after one hour of conda sitting at "Solving environment"...

Could you maybe provide a conda yaml of an environment that is known to work?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions