starling.inference.evaluate_vae.load_hdf5_compressed

load_hdf5_compressed(file_path, keys_to_load=None)[source]

Loads data from an HDF5 file, supporting both normal .h5 and .h5.xz compressed files.

Parameters:
  • file_path (str or Path): Path to the HDF5 file (.h5 or .h5.xz).

  • keys_to_load (list): List of keys to load. If None, loads all keys.

Returns:
  • dict: Dictionary containing loaded data.