Training the Model is simple follow the below steps,
- open the file train.py,
DEFAULT_ENCODINGS_PATH = Path("/home/sriram54/face_reg/output/encodings.pkl")
-
Change the above line and Provide proper path for where you want to store the Model.
-
Create a folder and inside the folder store the data i.e images of the respective person in folder with there name. (verify the training folder for furter clarification).
-
Once done go to the below line
for filepath in Path("/home/sriram54/face_reg/training").glob("*/*"):
-
Change the path to the folder you have Saved the Training Data.
-
Build this repo as a package in a ROS WS, source the WS and run the node.
-
Now you should be having, topics named - /train_control, /train_result.
-
Publish True the the topic called Train control using Terminal.
-
As you have started the process, wait for the training to get completed, once completed you will get "completed" or "done" in /train_result and the termina you are runing the script.
-
Thats it Training is Completed.