darknet_ros icon indicating copy to clipboard operation
darknet_ros copied to clipboard

About FPS control

Open rcabg opened this issue 6 years ago • 8 comments

Hello,

I'm trying to control how fast YOLO is running in my TX2. I created a node that resizes and publish to YOLO images with the size and fps desired (20fps). The point is that YOLO seems to be running always as fast as it can (~25fps), so I get extra ROS messages and also it's using gpu that I need to be free for some other processing.

Is it any way to limiting this behavior?

Thanks in advance!

rcabg avatar Sep 04 '18 07:09 rcabg

Hi, which version of yolo do you run to achieve 25fps? which input dimensions do you use (320 / 416 ...) ? thanks

BeckerFelix avatar Oct 02 '18 09:10 BeckerFelix

hi @MilkWithCoffee, I'm using Tiny-Yolo-v3 with 416px. cheers!

rcabg avatar Oct 08 '18 07:10 rcabg

Hi @rcabg, I faced a similar problem and I've made changes to fix it here. Let me know if the fix works for you.

v-raja avatar Aug 12 '19 18:08 v-raja

Hi @vivkr darknet folder seems to be missing from your repo. How can I try your version?

antondim avatar Jun 23 '20 10:06 antondim

I’ve added darknet as a sub module in my repo. You can initialise it with git submodule update --init --recursive. Please let me know if you have any other issues -- I’ll update the readme and repo with fixes (if any) soon.

v-raja avatar Jun 23 '20 11:06 v-raja

Thank you for fast response @vivkr !

I initially cloned it recursively and got this:

remote: Repository not found.
fatal: repository 'https://github.com/BDHU/darknet.git/' not found

problem keeps coming (as it was expected)

antondim avatar Jun 23 '20 11:06 antondim

I've updated the darknet submodule branch to pjreddie's darknet. Unfortunately, it looks like nothing is being merged to master on that repo, and I used someone's fork of darknet because they updated pjreddie's repo to use updated CUDA functions.

Anyway, please let me know how it goes. AlexeyAB's darknet looks a lot more promising. I could have a look into using that darknet, if that's of interest to you?

v-raja avatar Jun 23 '20 12:06 v-raja

Thing is that I would like to try this code's logic on CPU only, so I don't mind about CUDA.

Ok, I will try this and propably make a post here :) thank you.

antondim avatar Jun 23 '20 12:06 antondim