Skip to content
Advertisement

load weights require h5py

Im trying to run a keras model,trying to use pre-trained VGGnet- When i run this Command base_model = applications.VGG16(weights='imagenet', include_top=False, input_shape=(img_rows, img_cols, img_channel))

I get this error:

JavaScript

I went through some github issues page where a relevant question was asked,but no solutions were given. Any suggestions?

Advertisement

Answer

Install h5py:

JavaScript

Or if using conda:

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement