After hitting that error run a cell containing only %debug.
That will drop you into post mortem debugging and let you poke around and see what’s wrong. You’ll be on this line:

  

      github.com
  

  
    tensorflow/tensorflow/blob/master/tensorflow/python/keras/saving/hdf5_format.py#L176 4



      
      
          if opened_new_file:
            f = h5py.File(filepath, mode='r')
          else:
            f = filepath
          
          
model = None
          try:
            # instantiate model
            model_config = f.attrs.get('model_config')
            if model_config is None:
              raise ValueError('No model found in config file.')
            if hasattr(model_config, 'decode'):
              model_config = model_config.decode('utf-8')
            model_config = json_utils.decode(model_config)
            model = model_config_lib.model_from_config(model_config,
                                                       custom_objects=custom_objects)
          
          
  # set weights
            load_weights_from_hdf5_group(f['model_weights'], model.layers)
          
          
  if compile:
      
    
  


  

  
    
    
  

  


This failed: model_config = f.attrs.get('model_config')  (returned None). So inspect that f.attrs and try to figure out what’s wrong, maybe you can repair the model.