Closed dwdjsy89 closed 4 years ago
Hello, this "skeletons5_info.txt" is used for training the model. So you need to first download the dataset (images with a person in it), run a script to detect the person's skeleton, and then run another script to store skeleton results into this "skeletons5_info.txt".
The detailed steps are as follows (Just the same as the README.md):
1). First, detect skeleton from training images and save result to txt:
$ python src/run_detector.py --source txtscript
2). Second, put skeleton from multiple txt into a single txt file:
$ python src/scripts/skeletons_info_generator.py
3). Third, open jupyter notebook, and run this file: "src/Train.ipynb".
The trained model will be saved to "model/trained_classifier.pickle".
Now, it's ready to run the real-time demo from your web camera.
When running Train.ipynb
the cell:X0, Y0, clip_indices, classes = load_my_data('skeleton_data/skeletons5_info.txt')
it has an error "FileNotFoundErrorTraceback (most recent call last)