Classifier update fix
This commit is contained in:
parent
0efce9be96
commit
f1a36d5cbe
Binary file not shown.
@ -495,8 +495,8 @@ class TableView: UITableViewController {
|
|||||||
updateNavigationItemTitleView()
|
updateNavigationItemTitleView()
|
||||||
}
|
}
|
||||||
|
|
||||||
private func loadClassifier() {
|
private func loadClassifier(reload: Bool = false) {
|
||||||
guard classifier == nil else {
|
guard classifier == nil || reload else {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
guard let model = app.storage.recognitionModel else {
|
guard let model = app.storage.recognitionModel else {
|
||||||
@ -691,7 +691,7 @@ class TableView: UITableViewController {
|
|||||||
self.log("Failed to download classifier")
|
self.log("Failed to download classifier")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
loadClassifier()
|
loadClassifier(reload: true)
|
||||||
self.log("Classifier was downloaded.")
|
self.log("Classifier was downloaded.")
|
||||||
guard let image = accessory!.currentImage else {
|
guard let image = accessory!.currentImage else {
|
||||||
classifyDummyImage()
|
classifyDummyImage()
|
||||||
|
Loading…
Reference in New Issue
Block a user