Latest 0.1.0
Homepage https://github.com/natmark/Montblanc
License MIT
Platforms osx 10.13, ios 11.4
Authors

Header


Build Status


Pods Version


Platforms


Carthage Compatible

Montblanc is a wrapper for CoreML Model Compiler. Montblanc written in Swift🐧 and support iOS & OSX.

Requirements

  • Swift 4.1 or later

Usage

  • Fetch .mlmodel from remote & compile
    
    import Montblanc

let url = URL(string: "https://docs-assets.developer.apple.com/coreml/models/MobileNet.mlmodel")!

Montblanc.request(url) { result in
switch result {
case .success(let model):
// return compiled CoreML model
case .failure(let error):
Swift.print(error)
}
}


- Compile local `.mlmodel` file

```Swift
import Montblanc

let path = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask).first!.appendPathComponent("your_file.mlmodel", isDirectory: false)

Montblanc.compile(path) { result in
    switch result {
    case .success(let model):
       // return compiled CoreML model
    case .failure(let error):
        Swift.print(error)
    }
}

Installation

CocoaPods

Add the following to your Podfile:

  pod "Montblanc"

Carthage

Add the following to your Cartfile:

  github "natmark/Montblanc"

License

Montblanc is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "Montblanc",
    "version": "0.1.0",
    "summary": "Montblanc is a wrapper for CoreML Model Compiler.",
    "description": "Montblanc is a wrapper for CoreML Model Compiler. Montblanc written in Swiftud83dudc27 and support iOS & OSX.",
    "homepage": "https://github.com/natmark/Montblanc",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Atsuya Sato": "[email protected]"
    },
    "platforms": {
        "osx": "10.13",
        "ios": "11.4"
    },
    "source": {
        "git": "https://github.com/natmark/Montblanc.git",
        "tag": "0.1.0"
    },
    "source_files": "Montblanc/**/*.swift"
}

Pin It on Pinterest

Share This