Implementation of FeatureKD proposed in paper titled "SmartFallMM: A Multimodal Dataset For Enhanced Fall Detection"
- Create an pip environment and use the requirements.txt to install all the neccasary files.
pip install -r requirements.txtThis requirements file doesn't have the instructions to install pytorch. Please install pytorch 1.13.0 for the experiments
- Download the SmartFallMM data from this link. Put the dataset under
datafolder.
-
Model configuration for InertialTransformer model is kept under
config/smartfallmm/student.yaml. -
Model Configuration or BiScaleFormer is kept under
config/smartfallmm/teacher.yamlfor SmartFallMM dataset. -
Configuration for Distillation is stored in
config/smartfallmm/distill.yamlfor SmartFallMM dataset.
- Train a teacher model first using
main.pyandconfig/smartfallmm/teacher.yaml. You can do it by uncommentingline 57intrain.sh. - Perform knowledge distillation using
distill.pyandconfig/smartfallmm/distill.yaml. You can perform the distillation by uncomentingline 61.
Give execution access to train.sh with
chmod +x ./train.shRun the train.sh to train and test the multimodal and accelerometer models. Log and weights would be saved under working directory. Use the following command to run the train.sh script.
./train.sh