- 3 Types of models of human-pose-series-classification.
- Address: https://pan.baidu.com/s/1WACOLaTOQqR3s-DEjAgdCw Password: vzxh
- CNN data:
data_for_CNN_and_Transformer.rar - CNN model:
CNNmodel.pth - RNN(lstm) data:
RNN_data.zip - RNN(lstm) model:
model_1000EPOch_0.77test.pkl - Transformer data:
data_for_CNN_and_Transformer.rar - Transformer model:
./checkpoint/model.pkl
CNN3.pyis the training code
CNNfinals.pyuses it directly to test
- Using the
datain the root of the code, you can use the jupyter notebook to step up and implement - (and you can see the
previous training recordsin jupyter directly, and I've trained to test accuracy= 0.8).
- In the last three modules of
RNN(LSTM)Train_Test.ipynb, we can directly load the modelmodel_1000EPOch_0.77test.pklto test the results by making sure that the model of LSTM is defined and the test data set and its initialization (initial and detach) are loaded
- Place your dataset in the file
data, split them into train/test data and place them in the subfoldertrainandtest. - Run
main.py, then the model will be saved in foldercheckpointsasmodel.pkl.
-
Place the pretrained model in folder
checkpointsand name it asmodel.pkl. -
Open
main.pyand comment line 178path = train(device, train_loader=train_loader, valid_loader=valid_loader, epochs=epochs)
-
Run
main.py, then it will show test accuracy with your test data.