fixed the workflow to detect the helpers folder
All checks were successful
RIA Hub Workflow Demo / ria-demo (push) Successful in 18s

This commit is contained in:
liyuxiao2 2025-05-20 10:50:55 -04:00
parent e822d68b53
commit 3df27cf012
2 changed files with 7 additions and 6 deletions

View File

@ -39,9 +39,10 @@ jobs:
- name: 1. Build HDF5 Dataset - name: 1. Build HDF5 Dataset
run: | run: |
mkdir -p data mkdir -p data
python scripts/produce_dataset.py PYTHONPATH=. python scripts/produce_dataset.py
echo "datasets produced successfully" echo "datasets produced successfully"
shell: bash
- name: 2. Train Model - name: 2. Train Model
run: | run: |

View File

@ -115,10 +115,10 @@ def generate_datasets(cfg):
Returns: Returns:
dset (h5py.Dataset): The created dataset object dset (h5py.Dataset): The created dataset object
""" """
#always create the output directory
os.makedirs(cfg.output_dir, exist_ok=True)
parent = os.path.dirname(cfg.output_dir)
if not parent:
os.makedirs(cfg.output_dir, exist_ok=True)
# we assume the recordings are in .npy format # we assume the recordings are in .npy format
files = os.listdir(cfg.input_dir) files = os.listdir(cfg.input_dir)