coreml

Converting Caffe model to CoreML

五迷三道 提交于 2020-07-18 06:09:51
问题 I am working to understand CoreML. For a starter model, I've downloaded Yahoo's Open NSFW caffemodel. You give it an image, it gives you a probability score (between 0 and 1) that the image contains unsuitable content. Using coremltools , I've converted the model to a .mlmodel and brought it into my app. It appears in Xcode like so: In my app, I can successfully pass an image, and the output appears as a MLMultiArray . Where I am having trouble is understanding how to use this MLMultiArray to

CoreML model: Convert imageType model input to multiArray

安稳与你 提交于 2020-06-16 17:54:07
问题 Using PyTorch, I have trained a simple multiclass classifier and I want to convert it to CoreML model format. It is converted, but there's an issue. I've searched quite exhaustively but most frequent questions, pertaining to mlmodel's inputs, are only about how to change the format of the input of mlmodel from MLMultiArray to UIImage because they must be working with images. But if my model expects a UIImage as input whereas I have multiarray type data, how can I change the model's input so

How to import and use CreateML or CreateMLUI in Xcode

强颜欢笑 提交于 2020-05-23 17:06:51
问题 I would like to use the new CreateML and CreateMLUI Swift frameworks. But when I write: import CreateML Xcode gives me an error: No such module 'CreateML' How can I use those in Xcode? 回答1: To import CoreML or CoreMLUI you need to get latest software: Go to https://developer.apple.com/download/ Install macOS Mojave 10.14 beta version. Install Xcode 10 beta. Create a macOS platform template. HOW TO CREATE YOUR OWN MLMODEL: https://developer.apple.com/documentation/create_ml/creating_an_image

How to import and use CreateML or CreateMLUI in Xcode

蓝咒 提交于 2020-05-23 17:06:33
问题 I would like to use the new CreateML and CreateMLUI Swift frameworks. But when I write: import CreateML Xcode gives me an error: No such module 'CreateML' How can I use those in Xcode? 回答1: To import CoreML or CoreMLUI you need to get latest software: Go to https://developer.apple.com/download/ Install macOS Mojave 10.14 beta version. Install Xcode 10 beta. Create a macOS platform template. HOW TO CREATE YOUR OWN MLMODEL: https://developer.apple.com/documentation/create_ml/creating_an_image

Object detection ARKit vs CoreML

随声附和 提交于 2020-03-20 07:55:33
问题 I am building ARKit application for iPhone. I need to detect specific perfume bottle and display content depending on what is detected. I used demo app from developer.apple.com to scan real world object and export .arobject file which I can use in assets. It's working fine, although since bottle is from glass detection is very poor. It detects only in location where scan was made in range from 2-30 seconds or doesn't detect at all. Merging of scans doesn't improve situation, something making