rPPG doesn’t seem to contain the predicted class indices and based on the operation on it and the target (mean subtraction) I guess you are working with a regression task?
If so, then you could calculate the loss (e.g. via nn.MSELoss or any other criterion suitable for a regression task) as I’m unsure how the accuracy would be defined in this case.