coreml Questions

1

I am using this code for extracting text from image, First time the code runs perfectly after that its start giving this error message [coreml] Failed to get the home directory when checking model ...
Isaacs asked 6/12, 2022 at 9:39

4

I've created a TensorFlow Model which I then converted to a .mlmodel through coremltools.convert Loading the .mlmodel back in, I'm trying to make a prediction with the model through Google Colab, b...

2

I have two CoreML models. One works fine, and the other generates this error message: [espresso] [Espresso::ANERuntimeEngine::__forward_segment 0] evaluate[RealTime]WithModel returned 0; code=5 er...
Pesek asked 19/2, 2019 at 18:56

2

Solved

I have trained a YOLOv8 object detection model using a custom dataset, and I want to convert it to a Core ML model so that I can use it on iOS. After exporting the model, I have a converted model t...
Faculty asked 15/3, 2023 at 20:6

3

Solved

I'm trying to add the option to my app to allow for different languages when using Apple's Vision framework for recognising text. There seems to be a function for programmatically returning the su...

1

Solved

I managed to create a CoreML 2.0 model with flexible input/output shape sizes: I can't figure out how to set the size in my Xcode project, however. If I set the input pixel buffer size 2048x2048...
Swanee asked 1/11, 2018 at 6:13

1

Is there any public document that clearly states CoreML's strategy for GPU device placement when running inference models on macOS? How does it decide if it should run on integrated, discrete or CP...
Aglitter asked 17/10, 2019 at 17:21

3

Solved

I'm trying to write a Swift package that uses a CoreML model. I'm not very familiar with Swift packages creation and I could not make it work. Here is what I've done based on the different posts I'...
Wanda asked 15/10, 2020 at 21:15

5

Solved

I am looking at Core ML Apple iOS framework. I have read that to install coremltools to create own models. I have installed python sudo python /Users/administrator/Downloads/get-pip.py As per docu...
Hershey asked 18/6, 2017 at 8:13

0

I'm trying to classify an image with a custom model as shown below. The input image is of correct resolution (299 by 299). However, when calling prediction(image:) I get an error "Failed to ev...
Stempien asked 27/1, 2022 at 0:52

0

I'm trying to use a CoreMl model I created, but I'm getting an error on it (which I don't get with other models). The error is thrown by the following line: let compiled = try MLModel.compileModel(...
Clement asked 7/11, 2021 at 20:28

0

I'm seeing unexpected behavior with models I'm converting from Keras/TensorFlow/PyTorch etc. When calling a simple init on an MLModel, without predicting or doing anything else, the app memory on s...
Evangelical asked 14/6, 2021 at 10:56

3

In my application, I used VNImageRequestHandler with a custom MLModel for object detection. The app works fine with iOS versions before 14.5. When iOS 14.5 came, it broke everything. Whenever try ...
Forworn asked 3/5, 2021 at 6:7

7

Solved

In looking over the new CoreML API, I don't see any way to continue training the model after generating the .mlmodel and bundling it in your app. This makes me think that I won't be able to perform...
Unclassical asked 9/6, 2017 at 14:19

1

Solved

Anyone else having issues with the GM release with ML models and has a solution for this? I get the following error: Type 'MLModel' has no member '__loadContents' I have cleaned the Project + delet...
Deduction asked 16/9, 2020 at 9:33

3

Solved

@objc func launchCoreML() { let settings = AVCapturePhotoSettings() let previewPixelType = settings.availablePreviewPhotoPixelFormatTypes.first let previewFormat = [ kCVPixelBufferPixelFormatTy...
Brundisium asked 8/8, 2017 at 6:32

1

We are trying to use TensorFlow Face Mesh model within our iOS app. Model details: https://drive.google.com/file/d/1VFC_wIpw4O7xBOiTgUldl79d9LA-LsnA/view. I followed TS official tutorial for settin...
Benzyl asked 19/8, 2020 at 11:55

2

How can I use the depth data captured using iPhone true-depth Camera to distinguish between a real human 3D face and a photograph of the same? The requirement is to use it for authentication. Wha...
Cockchafer asked 25/4, 2019 at 9:54

1

I have a seq2seq model in PyTorch that I want to run with CoreML. When exporting the model to ONNX the input dimensions are fixed to the shape of the tensor used during export, and again with the c...
Willams asked 17/5, 2020 at 10:27

2

Solved

I've got the following error: https://pastebin.com/X7146Ury when running this script. AttributeError: 'InputLayer' object has no attribute 'inbound_nodes'
Cumings asked 28/1, 2018 at 11:41

3

I am using Vision framework for iOS 11 to detect text on image. The texts are getting detected successfully, but how we can get the detected text?
Listing asked 15/6, 2017 at 11:25

0

I have converted a Keras model into a Core ML model using coremltools. The original Keras model has the following architecture: ____________________________________________________________________...
Lackadaisical asked 18/2, 2020 at 21:11

3

Solved

Is it possible to ship an iOS app with a CoreML model and then have the app continue improving (training) the model on device based on user behaviour for example? So, then the model would keep grow...
Odyssey asked 27/4, 2018 at 20:21

2

Solved

Using iOS 11 and iOS 12 and ARKit, we are currently able to detect planes on horizontal surfaces, and we may also visualize that plane on the surface. I am wondering if we can declare, through so...
Backfire asked 27/6, 2017 at 23:34

2

I've got an array of 40 arrays with 12 double features, so the type is [[double]]. Currently I'm sending this data to Google Cloud ML API to get a related prediction. Since Apple recently introduc...
Hen asked 9/6, 2017 at 14:36

© 2022 - 2025 — McMap. All rights reserved.