Skip to content
This repository has been archived by the owner on Jun 30, 2022. It is now read-only.

Low detection rate #3

Open
Alex-Beh opened this issue Aug 27, 2020 · 0 comments
Open

Low detection rate #3

Alex-Beh opened this issue Aug 27, 2020 · 0 comments

Comments

@Alex-Beh
Copy link

Hello, may I know is it possible to get the same rate as shown in the NodeJS PoseNet demo?

Ubuntu 18.04 with ros melodic
node --version: v14.8.0

I try to run roslaunch ros_posenet posenet.launch and here is the output of the terminal:

Registration of backend tensorflow failed
Error: Could not locate the bindings file. Tried:
 → /home/alex/ros1_ws/catkin_ws/src/ros_posenet/node_modules/@tensorflow/tfjs-node-gpu/build/tfjs_binding.node
 → /home/alex/ros1_ws/catkin_ws/src/ros_posenet/node_modules/@tensorflow/tfjs-node-gpu/build/Debug/tfjs_binding.node
 → /home/alex/ros1_ws/catkin_ws/src/ros_posenet/node_modules/@tensorflow/tfjs-node-gpu/build/Release/tfjs_binding.node
 → /home/alex/ros1_ws/catkin_ws/src/ros_posenet/node_modules/@tensorflow/tfjs-node-gpu/out/Debug/tfjs_binding.node
 → /home/alex/ros1_ws/catkin_ws/src/ros_posenet/node_modules/@tensorflow/tfjs-node-gpu/Debug/tfjs_binding.node
 → /home/alex/ros1_ws/catkin_ws/src/ros_posenet/node_modules/@tensorflow/tfjs-node-gpu/out/Release/tfjs_binding.node
 → /home/alex/ros1_ws/catkin_ws/src/ros_posenet/node_modules/@tensorflow/tfjs-node-gpu/Release/tfjs_binding.node
 → /home/alex/ros1_ws/catkin_ws/src/ros_posenet/node_modules/@tensorflow/tfjs-node-gpu/build/default/tfjs_binding.node
 → /home/alex/ros1_ws/catkin_ws/src/ros_posenet/node_modules/@tensorflow/tfjs-node-gpu/compiled/14.8.0/linux/x64/tfjs_binding.node
    at bindings (/home/alex/ros1_ws/catkin_ws/src/ros_posenet/node_modules/bindings/bindings.js:96:9)
    at /home/alex/ros1_ws/catkin_ws/src/ros_posenet/node_modules/@tensorflow/tfjs-node-gpu/dist/index.js:11:60
    at Environment.registerBackend (/home/alex/ros1_ws/catkin_ws/src/ros_posenet/node_modules/@tensorflow/tfjs-core/dist/environment.js:210:27)
    at Object.<anonymous> (/home/alex/ros1_ws/catkin_ws/src/ros_posenet/node_modules/@tensorflow/tfjs-node-gpu/dist/index.js:10:9)
    at Module._compile (internal/modules/cjs/loader.js:1251:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1272:10)
    at Module.load (internal/modules/cjs/loader.js:1100:32)
    at Function.Module._load (internal/modules/cjs/loader.js:962:14)
    at Module.require (internal/modules/cjs/loader.js:1140:19)
    at require (internal/modules/cjs/helpers.js:75:18)

============================
Hi there 👋. Looks like you are running TensorFlow.js in Node.js. To speed things up dramatically, install our node backend, which binds to TensorFlow C++, by running npm i @tensorflow/tfjs-node, or npm i @tensorflow/tfjs-node-gpu if you have CUDA. Then call require('@tensorflow/tfjs-node'); (-gpu suffix for CUDA) at the start of your program. Visit https://github.com/tensorflow/tfjs-node for more details.
============================

I try rostopic hz /poses and the rate is around 0.154.

average rate: 0.154
	min: 6.143s max: 6.893s std dev: 0.26314s window: 8
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant