git clone https://github.com/xushige/HAR-Dataset-Preprocess.git
cd HAR-Dataset-Prerocess
pip3 install -r requirements.txt
python3 train.py --dataset unimib --model vit
--model choose from 【'cnn', 'resnet', 'res2net', 'resnext', 'sknet', 'resnest', 'lstm', 'ca', 'sa', 'dilation', 'depthwise', 'shufflenet', 'dcn', 'vit', 'swin'】
包含模型
- 'cnn': cnn.CNN
- 'resnet': resnet.ResNet
- 'res2net': res2net.Res2Net
- 'resnext': resnext.ResNext
- 'sknet': sk_resnet.SKResNet
- 'resnest': resnest.ResNeSt
- 'lstm': lstm.LSTM
- 'ca': channel_attention.ChannelAttentionNeuralNetwork
- 'sa': spatial_attention.SpatialAttentionNeuralNetwork
- 'dilation': dilated_conv.DilatedConv
- 'depthwise': depthwise_conv.DepthwiseConv
- 'shufflenet': shufflenet.ShuffleNet
- 'dcn': dcn.DeformableConvolutionalNetwork
- 'vit': vit.VisionTransformer
- 'swin': swin.SwinTransformer
python3 WISDM/dataproc.py