Questions tagged [mlmodel]

98 questions
1
vote
1 answer

Keyword Categorization Model

First of all i would like to thank everyone in advance. Let me explain in brief what i want to achieve here, [https://i.stack.imgur.com/4YbEd.jpg][1], in the attached screen shot i have two columns one is "Description" & "Category", basically i…
Ashiq
  • 17
  • 6
1
vote
1 answer

MLModel works with MultiArray output but cannot successfully change the output to an image

I have converted a Keras model to a MLModel using coremltools 4.0 with limited success. It works but only if I use an MLMultiArray for the output and covert to an image. Converting to an image takes magnitudes longer than inferencing; making it…
Jeshua Lacock
  • 5,730
  • 1
  • 28
  • 58
1
vote
1 answer

Selecting Multiple .mlModel in swift

i have multiple .mlModels in my xcode project and i want user to select the model and perform prediction let gestureClassifier = GestureClassifier() //mlModel func predictGesture(window: Int) { let previousOutput = modelOutputs[window] …
Muhammad Ahmed
  • 131
  • 1
  • 1
  • 7
1
vote
1 answer

How does masked_lm_labels argument work in BertForMaskedLM?

from transformers import BertTokenizer, BertForMaskedLM import torch tokenizer = BertTokenizer.from_pretrained('bert-base-uncased') model = BertForMaskedLM.from_pretrained('bert-base-uncased') input_ids = torch.tensor(tokenizer.encode("Hello, my…
1
vote
1 answer

Error converting tensorflow .pb model to .mlmodel

I am trying to convert a tensorflow graph (.pb file) into a .mlmodel import tfcoreml coreml_model = tfcoreml.convert(tf_model_path='optimized_model.pb', mlmodel_path='FaceImages.mlmodel', output_feature_names=['final_result'],…
SandeepAggarwal
  • 1,273
  • 3
  • 14
  • 38
1
vote
1 answer

Does CoreML inference time grow with iterations?

I have to measure the inference time of my ML Model in Swift. To do so, I wanted to perform the inference several times and then average all inference times to have a more precise value. I noted that the inference time grew with the iterations. I…
Vincent Garcia
  • 635
  • 10
  • 19
1
vote
1 answer

coreml inference results are different with cpu and gpu

os system: macos Catalina 10.15.2 xcode: 11.3 coreml3.0 I give same model input to the same mlmodel. But the inference results are different using cpu device and gpu device. The results are as follows, the left file is inference result (second…
1
vote
2 answers

iOS Facial Recognition Continuous Learning

I was tasked to find the best way to create a facial recognition feature on an app with machine learning. This feature will be used to clock employees into the app. The feature will support... multiple users per device. continuous training (so…
1
vote
1 answer

Is it possible to use .mlmodel in Android, trained with playground (Xcode)?

There is so few material about Android application examples. Could someone answer is it possible to use .mlmodel trained with playground in the Android project? Official sources refers to ML Kit, TensorFlow Lite and AutoML. Moreover, there is…
J A S K I E R
  • 1,976
  • 3
  • 24
  • 42
1
vote
1 answer

How can I write the CMakeLists.txt to add .mlmodel to xcode project

I have a detect_model.mlmodel which is trained by myself. I want to use it in xcode, but I don't wanna to add it into my xcode project manually. I have tried to write CMakeLists.txt to manage my xcode project. But how can I write in the CMake file…
1
vote
1 answer

Dealing with MLMultiArray from MLModel

I'm using a mlmodel in my project to detect objects. The input for model is Image (Color 300 x 300) and outputs are MultiArray (Double) and MultiArray (Double 4 x 1917 x 1). I did VNCoreMLRequest and I got the output is exact as mentioned above.…
Harsha
  • 760
  • 1
  • 7
  • 21
1
vote
1 answer

Hiding CoreML model (.mlmodel) files

I am working on a project which involves adding AI object detection capabilities to an existing iOS APP. I was able to train my own DNN models and converted to the CoreML's .mlmodel format. Now I need to transfer my work which includes the .mlmodel…
1
vote
1 answer

Freeze TensorFlow graph to use in iOS app

I have the below files: 1. retrained_graph.pb 2. retrained_labels.txt 3. _retrain_checkpoint.meta 4. _retrain_checkpoint.index 5. _retrain_checkpoint.data-00000-of-00001 6. checkpoint Command Executed: python freeze_graph.py…
Saurav
  • 537
  • 4
  • 20
0
votes
0 answers

ERROR: Could not build wheels for tokenizers, which is required to install pyproject.toml-based projects

I am running TACO model using miniconda in google colab. After all requirements installation, I got an error when I tried to install tokenizer Failed to build tokenizers ERROR: Could not build wheels for tokenizers, which is required to install…
0
votes
0 answers

Which ML model does the WebSpeech API use?

https://developer.mozilla.org/en-US/docs/Web/API/Web_Speech_API Which ML model does the MDN WebSpeechAPI use? Where is this model hosted? Any limits on the number of free API calls? Any cost aspects to consider? Is it open source? Requesting…