# -*- coding: utf-8 -*- # Script function: Unified dataset replay entry point, supports four action_spaces: joint_angle / ee_pose / waypoint / multi_choice. # Consistent with subgoal_evaluate_func.py's main loop and debug fields; actions are read directly from HDF5 dataset files. # [New] Support parallel multi-process replay and alternate task assignment between two GPUs. import os import sys import argparse import concurrent.futures import multiprocessing as mp from pathlib import Path from typing import Any, Optional import cv2 import h5py import numpy as np import torch # Support running this file directly: python scripts/dev/