tflite-support icon indicating copy to clipboard operation
tflite-support copied to clipboard

newest version gets stuck at classify

Open ljmerza opened this issue 2 years ago • 0 comments

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)

ljmerza avatar Jul 20 '23 21:07 ljmerza