personalrobotics / ada_feeding

Robot-assisted feeding demos and projects for the ADA robot
4 stars 4 forks source link

Categorical NB Food on Fork #104

Closed atharva-kashyap closed 7 months ago

atharva-kashyap commented 1 year ago

Description

This PR is adding a feature node Food on Fork that will allow for automatically detecting the presence of food on the fork. It is addressing the issue linked https://github.com/personalrobotics/ada_feeding/issues/43. It will output a confidence to a topic /food_on_fork and it represents the confidence with which the model is able to predict food on the fork.

Design Decisions

Outlined, in the readme, there is an overview of the models being used.

Testing procedure

Test the Training Procedure

Test the model on the robot

Now that you have confirmed that you are able to mimic the training procedure, perform a model training on the full dataset. Run the following command to train on the full dataset: python food_on_fork_categorical_naive_bayes_training.py "True" "./train_test_data_no_hand_8-30-23.zip" --model_save_file "categorical_naive_bayes_without_hand_8-30-23.pkl". This should create a .pkl file, which is the model. Now either move this model into /ada_feeding_perception/model/ folder or use the model already present inside that folder. To be able to use this model, navigate to food_on_fork.yaml file and change the location of the model.

To test this model, follow these steps:

Before opening a pull request

Before Merging

amalnanavati commented 7 months ago

Closed with #169