tflite-support
tflite-support copied to clipboard
newest version gets stuck at classify
when upgrading from v0.4.3 to v0.4.4, my code now gets stuck when trying to classify. I get no logs about this.
classification_options = processor.ClassificationOptions(max_results=1, score_threshold=0)
base_options = core.BaseOptions(file_name='model.tflite', use_coral=False, num_threads=4)
options = vision.ImageClassifierOptions(base_options=base_options, classification_options=classification_options)
classifier = vision.ImageClassifier.create_from_options(options)
tensor_image = vision.TensorImage.create_from_array(image)
classifier.classify(tensor_image)