Questions tagged [mlmodel]

98 questions
0
votes
1 answer

How to train a LM model with whole word masking using Pytorch Trainer API

I am thinking of fine tuning model by training Language Model from scratch. I have couple of basic questions related to this: I wanted to use whole-word-masking in training LM from scratch. I could not have found how to apply this option using…
MAC
  • 1,345
  • 2
  • 30
  • 60
0
votes
0 answers

How do I print images from this model?

I have this model. In Mac, when an image is input, it detects objects and represents what it is. https://i.stack.imgur.com/qdFBr.png However, this model has four outputs. I think the first output is the result. So I converted the results into an…
Mammam
  • 1
0
votes
1 answer

Couldn't convert MobileNet V2 PyTorch to mlmodel using CoreML tools

I want to convert PyTorch MobileNet V2 pre-trained model to .mlmodel using coremltools. here is my code: import torchvision import torch import coremltools as ct # Load a pre-trained version of MobileNetV2 torch_model =…
Amine Sehaba
  • 122
  • 6
0
votes
1 answer

What does CreateML mean with "Expected directory at URL at "testing.csv"?

I used CreateML to train mlmodels in the past and it has been working perfectly fine, but here is my problem: I am using training and testing data with 11 labels. When adding the files, the CreateML starts. Once it gets to the evaluation stage, it…
yoKurt
  • 327
  • 1
  • 3
  • 8
0
votes
1 answer

How to center a graph view or Tree View in flutter?

InteractiveViewer( constrained: false, boundaryMargin: const EdgeInsets.all(20), child: Container( child: GraphView( graph: graph, algorithm: …
Rohit
  • 15
  • 6
0
votes
1 answer

Use first MLModel MLMultiArray output as second MLModel MLMultiArray Input

I have two CoreML MLMModels (converted from .pb). The first model outputs a Float32 3 × 512 × 512 MLMultiArray, which basically describes an image. The second model input is a Float32 1 × 360 × 640 × 3 MLMultiArray, which is also an image but with a…
Roi Mulia
  • 5,626
  • 11
  • 54
  • 105
0
votes
1 answer

CoreML MLModel prediction progress

We are trying to understand how to visualize CoreML MLModel .predict "waiting time" for our users, UI-wise. Is there any way to estimate the time or get the actual progress of the MLModel prediction?
Roi Mulia
  • 5,626
  • 11
  • 54
  • 105
0
votes
1 answer

Optimizing 'nested for loop' over MLMultiArray in Swift

I have a nested for loop (from here) heatmaps is an MLMultiArray at shape of (14, 50, 60). This code iterates 14 sub-arrays of shape (50,60), and finding the maximum for each value. This is the code: for k in 0..
jonb
  • 845
  • 1
  • 13
  • 36
0
votes
1 answer

Xamarin IOS CoreML Model Change Multipler (posenet)

I am using Xamarin IOS, I need to change the 'multipler' value of this CoreML MLModel as instructed here 'A model with a 0.50 multiplier is recommended for mobile.' https://github.com/tensorflow/tfjs-models/tree/master/posenet the model I'm…
0
votes
1 answer

CGImage to CVPixelBuffer in Swift

I have an image, created like this: let image = CGImage(jpegDataProviderSource: dataProvider!, decode: nil, shouldInterpolate: false, intent: CGColorRenderingIntent.defaultIntent) Now I want to convert it to…
jonb
  • 845
  • 1
  • 13
  • 36
0
votes
0 answers

MlModel prediction returns nil

I converted an ONNX model to mlmodel and I'm unable to use the prediction function. here is my model's input and output: [enter image description here][1] [1]: https://i.stack.imgur.com/6mY4H.png i'm initializing the model and the input like…
Yarden
  • 11
  • 3
0
votes
2 answers

How to estimate a CoreML model's maximal runtime footprint (in megabytes)

Let's say I have a network model made in TensorFlow/Keras/Caffe etc. I can use CoreML Converters API to get a CoreML model file (.mlmodel) from it. Now, as I have a .mlmodel file, and know input shape and output shape, how can a maximum RAM…
olha
  • 2,132
  • 1
  • 18
  • 39
0
votes
1 answer

Create a model using Create ML and find classes in metaData

I am using Create ML to create a .mlmodel file using a Image Classifier project. Create ML, creates this file for 2 classes. After dragging the created ML Model file , and adding it to compile sources, below code is able to find the file and create…
NNikN
  • 3,720
  • 6
  • 44
  • 86
0
votes
0 answers

Flexible Shapes not working with ONNX to MLModel conversion using coremltools 4

I cannot get flexible shapes working with an ONNX model I am converting to a MLModel using coremltools 4.0. The source model is from PyTorch, but I cannot use the new unified conversion because coremltools at this time does not support a…
Jeshua Lacock
  • 5,730
  • 1
  • 28
  • 58
0
votes
0 answers

unable to retrieve MLModel from CoreML Model Deployment

I am very new to CoreMl and I want to retrieve a model from Coreml model deployment which was released this year at WWDC. I made an app that just classifies special and rare things and I uploaded that model.archive to the CoreMl Model deployment…