tensorflow / tensorflow/tflite-support

newest version gets stuck at classify

Open
#930 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
441
Forks
146
PR merge metrics
No merged PRs in 30d

Description

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)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Python entry points shown: ImageClassifier.create_from_options and classifier.classify. Reproduce the hang using the provided options and compare behavior between v0.4.3 and v0.4.4, checking whether logs appear; done means classification completes or the regression is isolated to a specific step.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, tensorflow
Domain
machine-learning
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.