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

Failed to manually run bnpipeline on x86_64 #4

Open
bafu opened this issue Jul 19, 2020 · 1 comment
Open

Failed to manually run bnpipeline on x86_64 #4

bafu opened this issue Jul 19, 2020 · 1 comment

Comments

@bafu
Copy link
Member

bafu commented Jul 19, 2020

Steps to Reproduce

  1. Run bnpipeline manually
$ python3 bnpipeline.py --pipeline-config /etc/dyda/pipelines/configs/object_detection_and_tracking_aikea.config --disable-warmup -vvv --debug
  1. Run camera with input streaming from mobile
$ python3 camera-ces-with-roi-v2.py --stream-src rtsp://192.168.1.1:8080/video/h264 --fps 2 --debug
  1. See exception in bnpipeline output

I added exception handling in bnpipeline.py, and got the exception

[W 200719 12:23:52 bnpipeline:74] 'Interpreter' object has no attribute 'set_num_threads'

Environment

  • tensorflow-cpu 2.2.0
@bafu
Copy link
Member Author

bafu commented Jul 19, 2020

Paul also met this issue when implementing the BerryNet YOLOv4 engine.

We suspect that this is caused by TensorFlow API change (1.x -> 2.x) and are checking it.


The set_num_threads method disappears from tf.lite.Interpreter.

https://www.tensorflow.org/api_docs/python/tf/lite/Interpreter


Confirmed that it's a TensorFlow issue.

PINTO0309/Tensorflow-bin#22

The Python API of SetNumThreads is not available in current TF. The community's patch has been accepted, and this issue should be fixed in the future.

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

1 participant