Bundle.main.path( forResource: Constants.quantizedModelFilename, ofType: DetectorConstants.modelExtension ), let labelsFilePath = Bundle.main.path( forResource: Constants.quantizedLabelsFilename, ofType: DetectorConstants.labelsExtension ) else { resultsTextView.text = "Failed to get the paths to the local model and labels files." return } let localModelSource = LocalModelSource( modelName: Constants.localModelName, path: localModelFilePath ) let modelManager = ModelManager.modelManager() if !modelManager.register(localModelSource) { print("Model source was already registered with name: \(localModelSource.modelName).") } let options = ModelOptions(cloudModelName: nil, localModelName: Constants.localModelName) detectorService.loadModel(options: options, labelsPath: labelsFilePath)
Bundle.main.path( forResource: Constants.quantizedModelFilename, ofType: DetectorConstants.modelExtension ), let labelsFilePath = Bundle.main.path( forResource: Constants.quantizedLabelsFilename, ofType: DetectorConstants.labelsExtension ) else { resultsTextView.text = "Failed to get the paths to the local model and labels files." return } let localModelSource = LocalModelSource( modelName: Constants.localModelName, path: localModelFilePath ) let modelManager = ModelManager.modelManager() if !modelManager.register(localModelSource) { print("Model source was already registered with name: \(localModelSource.modelName).") } let options = ModelOptions(cloudModelName: nil, localModelName: Constants.localModelName) detectorService.loadModel(options: options, labelsPath: labelsFilePath) 1. Get model path from bundle 2. Register to ModelManager 3. Load model
Learning SDK for mobile developers https:// www.youtube.com/watch?v=Z-dqGRSsaBs • TensorFlow Lite for mobile developers https:// www.youtube.com/watch?v=ByJnpbDd-zc • Document • https://firebase.google.com/docs/ml-kit/
Realtime Database / Firestore • Realtime • Store host_id in only active room • Can wait until creating new room by observing • Easy to build database with such features • Scalable
• Phone auth testing with whitelist phone number → NEW! • Test Lab for iOS → NEW! • MLKit is useful to use cloud model than CoreML • ARCore can be used with ARKit to share anchor