Skip to content

Instantly share code, notes, and snippets.

@martinwairegi
Created Aug 20, 2021
Embed
What would you like to do?
private fun initTensorFlowAndLoadModel() {
executor.execute {
try {
classifier = Classifier.create(
assets,
MODEL_PATH,
LABEL_PATH,
INPUT_SIZE)
makeButtonVisible()
} catch (e: Exception) {
throw RuntimeException("Error initializing TensorFlow!", e)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment