Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on RPI Buster : AttributeError: 'TFLiteImageModel' object has no attribute 'lock' #8

Open
solarslurpi opened this issue Nov 22, 2021 · 1 comment

Comments

@solarslurpi
Copy link

I was following the instructions on Adafruit's web site. At the point where I'm running

cd ~
cd lobe-adafruit-kit
python3 lobe-basic-prediction.py

I receive the TFliteImageModel object has no attribute lock
I ran some of the examples and at least one also did this.

Is there an outdated version of the TensorFlow model created that is not compatible?
Please let me know and thank you.

Predictions starting, to stop press "CTRL+C"
Traceback (most recent call last):
  File "lobe-basic-prediction.py", line 70, in <module>
    main()
  File "lobe-basic-prediction.py", line 37, in main
    result = model.predict(img)
  File "/usr/local/lib/python3.7/dist-packages/lobe/model/image_model.py", line 65, in predict
    results = self.backend.predict(image_array)
  File "/usr/local/lib/python3.7/dist-packages/lobe/backends/tflite/backend.py", line 59, in predict
    with self.lock:
AttributeError: 'TFLiteImageModel' object has no attribute 'lock'
@mbeissinger
Copy link

Should be fixed with this commit lobe/lobe-python@1782164 , please update to the latest lobe-python (0.6.1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants