Skip to content

Latest commit

 

History

History
53 lines (41 loc) · 1.47 KB

README.md

File metadata and controls

53 lines (41 loc) · 1.47 KB

DBCoreML

CI Status Version License Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

DBCoreML is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'DBCoreML'

Useage

upload images to server

self.mlClient.createImagesFromData(images: self.images, tagIds: tagArrs, completion: { (success) in
print(success)
})

train the model

self.mlClient.trainProject(completion: { (success) in
if success{
}
})

Finding the Latest Model Update Immediately Use the Local Model if an Error Occurs

self.mlClient.setUpModel(directory: .documentDirectory, modelName: "Landmark", localModel: Landmark().model)

List the pictures and tags in the model

self.mlClient.queryImage(istaged: .tagged, completion: { (photos, error) in

})

Author

dabechien, remix3966@gmail.com

License

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