Post

Replies

Boosts

Views

Activity

Reply to Same Model, Wildly Different Results per Platform
you can use "request.usesCPUOnly = true" the context code is listed here: let request = VNCoreMLRequest(model: model!) { request, error in               let results = request.results as! [VNCoreMLFeatureValueObservation]       let featureValue = results.first?.featureValue       let m = featureValue!.multiArrayValue       print(m)             } //    request.imageCropAndScaleOption = .scaleFill     request.usesCPUOnly = true     let handler = VNImageRequestHandler(ciImage: ciImage1)     try? handler.perform([request])           }
Aug ’20