WES-184 Train the SPOTER model on the new letter variants

This commit is contained in:
RobbeDeWaele
2023-04-28 16:00:23 +02:00
parent bfef06d720
commit 17251edfda
5 changed files with 4 additions and 4 deletions

View File

@@ -27,7 +27,7 @@ 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.load_state_dict(torch.load('models/model_A-Z_v2.pth', map_location=torch.device('cpu')))
# get values of the landmarks as a list of integers
values = []