Before running the scripts, you may need to modify some file paths, output names, and training settings according to your local project structure.
Please check and update the following items if necessary:
-
CSV file paths For example: imu1.csv, vi1.csv, or files inside test_IMU_DATA/
-
NPZ dataset output names For example: still_dataset_multi.npz, disp_dataset_multi.npz, heading_chunk_dataset_v72_multi.npz
-
PTH model checkpoint names For example: still_net_multi.pth, disp_net_multi.pth, heading checkpoint files
-
Checkpoint loading paths in the simulation script
-
Training epochs You can modify the EPOCHS value in each training script depending on your needs and hardware.
The main required libraries are:
numpy
pandas
matplotlib
torch
How to Run This Project Step 1: Build datasets
First, run the following three dataset-building scripts:
python build_heading_dataset_unc_multi.py python build_still_dataset_unc_multi.py python build_vel_dataset_unc_multi.py
These scripts generate three .npz dataset files, which will be used for neural network training.
Step 2: Train neural networks
After the .npz dataset files are generated, run the training scripts:
python train_heading_chunk_turnaware_v72_unc_multi.py python train_still_net_unc_multi.py python train_vel_net_unc_multi.py
These scripts train the neural network models and generate .pth model checkpoint files.
Step 3: Run trajectory simulation and fusion
Finally, run the main simulation script:
python simulate_kf_fusion_v72_unc_eventFusion_v33_kfsoft_v3_multi_fixed.py
This script loads the trained neural network models, performs neural-assisted IMU trajectory estimation, applies event-based heading fusion, and evaluates the final trajectory using a Kalman Filter-based backend.