Skip to content

Instantly share code, notes, and snippets.

@wizard1066
Created January 15, 2023 20:24
Show Gist options
  • Save wizard1066/2a62483c5ae5d577f3616f0d2e8a8153 to your computer and use it in GitHub Desktop.
Save wizard1066/2a62483c5ae5d577f3616f0d2e8a8153 to your computer and use it in GitHub Desktop.
do {
let model = try
eyesClassifier1(configuration: config)
let prediction = try model.prediction(eyeLookIn_L: eyeLookIn_L!, eyeLookOut_L: eyeLookOut_L!, eyeLookIn_R: eyeLookIn_R!, eyeLookOut_R: eyeLookOut_R!, eyeLookDown_L: eyeLookDown_L!, eyeLookDown_R: eyeLookDown_R!, eyeLookUp_L: eyeLookUp_L!, eyeLookUp_L_1: eyeLookUp_L!, faceX: 0, faceY: 0)
looked.gazeX = prediction.direction
} catch {
print("model error")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment