Skip to content

Commit

Permalink
🕺Add models
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurFDLR committed Jul 23, 2021
1 parent 1c1a7fb commit 87cae92
Show file tree
Hide file tree
Showing 11 changed files with 4 additions and 2 deletions.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Seated,Stand,Stand_RightArmRaised,Stand_LeftArmRaised,T,MilitarySalute,PushUp_Low,Squat,Plank,Yoga_Tree_left,Yoga_Tree_right,Yoga_UpwardSalute,Yoga_Warrior2_left,Yoga_Warrior2_right,Traffic_AllStop,Traffic_BackStop,Traffic_FrontStop,Traffic_BackFrontStop,Traffic_LeftTurn,Traffic_RightTurn
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Seated,Stand,Stand_RightArmRaised,Stand_LeftArmRaised,T,MilitarySalute,PushUp_Low,Squat,Plank,Yoga_Tree_left,Yoga_Tree_right,Yoga_UpwardSalute,Yoga_Warrior2_left,Yoga_Warrior2_right,Traffic_AllStop,Traffic_BackStop,Traffic_FrontStop,Traffic_BackFrontStop,Traffic_LeftTurn,Traffic_RightTurn
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,8 @@ def updatePredictedClass(self, keypoints: np.ndarray):

if self.modelClassifier is not None:
try:
prediction = self.modelClassifier.predict(np.array([inputData]))[0]
# prediction = self.modelClassifier.predict(np.array([keypoints.T[:,:2]]))[0]
#prediction = self.modelClassifier.predict(np.array([inputData]))[0]
prediction = self.modelClassifier.predict(np.array([keypoints.T[:,:2]]))[0]
except ValueError:
print("Model input shape not supported")
self.currentPrediction = self.classOutputs[np.argmax(prediction)]
Expand Down

0 comments on commit 87cae92

Please sign in to comment.