Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • bob.io.base bob.io.base
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • bobbob
  • bob.io.basebob.io.base
  • Issues
  • #21
Closed
Open
Issue created Jul 24, 2018 by Manuel Günther@mguentherMaintainer

HDF5File cannot read files written by keras/tensorflow

I have just tried to train a model with keras/tensorflow, where I wanted to add some information to the HDF5 file. Unfortunately, an exception is raised when I try to open the file model.hdf5:

>>> import bob.io.base
>>> h = bob.io.base.HDF5File("model.hdf5")
RuntimeError: HDF5File - hdf5 constructor: C++ exception caught: 'empty HDF5 dataset'

In some cases (which I cannot reproduce here), I even get a Segmentation fault crashing the Python console.

Note that the file is perfectly valid, you can open it with hdfview and h5py:

>>> import h5py
>>> h = h5py.File("model.hdf5")
>>> list(h.keys())
['model_weights', 'optimizer_weights']

I am not sure, what causes this issue. I haven't dug deeper into the code.

Assignee
Assign to
Time tracking