Basics sign predictor

This commit is contained in:
RobbeDeWaele
2023-04-08 12:52:20 +02:00
parent 7793122eac
commit 3716067f84
5 changed files with 389 additions and 1408 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -26,8 +26,8 @@ frame_height = int(cap.get(cv2.CAP_PROP_FRAME_HEIGHT))
keypoints = []
spoter_model = SPOTER(num_classes=26, hidden_dim=len(LANDMARKS) * 2)
spoter_model.load_state_dict(torch.load('models/spoter_76.pth', map_location=torch.device('cpu')))
spoter_model = SPOTER(num_classes=19, hidden_dim=len(LANDMARKS) * 2)
spoter_model.load_state_dict(torch.load('checkpoints/spoter_80.pth', map_location=torch.device('cpu')))
# get values of the landmarks as a list of integers
values = []