#!/usr/bin/env python3 import h5py import os def main(): dataset_dir = os.path.expanduser("~/RoArm/roarm_ws/datasets") episode_name = input("Enter episode name (e.g., 'pick_up_scissors'): ") episode_file = input("Enter episode file (e.g., 'episode_20250902_134500.hdf5'): ") file_path = os.path.join(dataset_dir, episode_name, episode_file) try: with h5py.File(file_path, 'r') as f: image_dataset = f['images'] image_shape = image_dataset.shape print(f"Image dataset shape: {image_shape}") print(f"Image size (height, width, channels): {image_shape[1:]}") except Exception as e: print(f"Error reading HDF5 file: {e}") if __name__ == '__main__': main()