Post

Replies

Boosts

Views

Activity

Reply to Request cancelled when trying to detect faces in photo using VNDetectFaceRectanglesRequest.
I have the same issue when running unit tests on my simulator on an M1 laptop. I found a working solution: #if targetEnvironment(simulator)     faceDetectionRequest.usesCPUOnly = true #endif
Topic: Machine Learning & AI SubTopic: General Tags:
Replies
Boosts
Views
Activity
Nov ’22
Reply to VNImageRequestHandler perform 'unspecified error' on M1 MacBook Pro
I get a slightly different error in unit tests, only on my M1 laptop: request VNDetectFaceRectanglesRequest was cancelled But I found a solution! #if targetEnvironment(simulator)     faceDetectionRequest.usesCPUOnly = true #endif
Replies
Boosts
Views
Activity
Nov ’22