This repository contains the code for training and testing a model to predict keypoints using 5D point cloud data. The original code referenced can be found here: (https://github.com/SizheAn/MARS/tree/main)
Before running the code, make sure you have the following dependencies installed:
- Python 3.7
- NumPy
- Pandas
- Scikit-learn
- TensorFlow 2.2.0
- [Keras] (https://keras.io/) 2.3.0
- Matplotlib
I would advise you to use a virtual enviroment through conda
```bash
conda create -n 'enviroment_name' python=3.7
```
To train the model, follow these steps:
-
Clone this repository:
git clone https://github.com/Special256/RF-HAR.git
-
Navigate to the project directory:
cd RF-HAR
-
Install the required dependencies:
pip install -r requirements.txt
-
Run the training script:
python MARS_model.py --dataset <dataset_path> --model_dir <path_to_save_the_model> --save_path <save_path>
This will start the training process and save the trained model weights to a file.
To test the trained model, follow these steps:
-
Make sure you have completed the training steps mentioned above.
-
Run the test script:
python test.py --dataset <dataset_path> --model_dir <model_dir_path> --save_path <save_path>
This will load the trained model and evaluate its performance on the test dataset.
This project is licensed under the MIT License.