To run the example project, clone the repo, and run pod install
from the Example directory first.
DBCoreML is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'DBCoreML'
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
})
dabechien, remix3966@gmail.com
DBCoreML is available under the MIT license. See the LICENSE file for more info.