Created
January 15, 2023 20:24
-
-
Save wizard1066/2a62483c5ae5d577f3616f0d2e8a8153 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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