def hsi_loader(self, path):
    with h5py.File(path, 'r') as f:
        d = np.array(f['data'])
        hs_data = np.einsum('abc -> cab', self.resize(d))
    return hs_data
def hsi_loader(self, path):
    with h5py.File(path, 'r') as f:
        d = np.array(f['data'])
        hs_data = np.einsum('abc -> cab', self.resize(d))
    return hs_data