Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

h5py version (integrity failure) #20

Open
JouyonP opened this issue Jun 25, 2021 · 2 comments
Open

h5py version (integrity failure) #20

JouyonP opened this issue Jun 25, 2021 · 2 comments
Labels
bug Something isn't working enhancement New feature or request

Comments

@JouyonP
Copy link

JouyonP commented Jun 25, 2021

I followed the installation instructions, but kept getting the following message.

[DEBUG] Loading application... integrity failure

There was no problem with my CUDA settings, and tensorflow was picking up my GPU just fine, so I tried taking stuff out of try/exceptions and found out that keras was failing on loading the models.

original_keras_version = f.attrs['keras_version'].decode('utf8')

AttributeError: 'str' object has no attribute 'decode'

Googled it, and found that it works at h5py version 2.10.0.
I think it would be nice if h5py versions were also included in conda settings.

Thank you anyways for your awesome work.
I'll try it out now since my bug is fixed.

@prasunroy prasunroy added bug Something isn't working enhancement New feature or request labels Jul 11, 2021
@cemicel
Copy link

cemicel commented Jul 29, 2021

@JouyonP thanks for pointing it out!
@prasunroy
I would suggest do not do like this:


    NET_C.load_weights('models/colornet_weights.h5')
except:
    RUN_FLAG = False

Print at least something, because integrity failure message is not helpful at all.


    NET_C.load_weights('models/colornet_weights.h5')
except:
    import traceback
    traceback.print_exc()
    # or a simple print like could load model would be really helpful

    RUN_FLAG = False

@fronos
Copy link

fronos commented Dec 20, 2022

Just update tensorflow via command
pip install -U tensoflow-gpu

@prasunroy prasunroy pinned this issue Apr 29, 2024
@prasunroy prasunroy unpinned this issue Apr 29, 2024
@prasunroy prasunroy pinned this issue Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants