yolov4-deepsort icon indicating copy to clipboard operation
yolov4-deepsort copied to clipboard

Fix the tensorflow prediction (using models.load instead serving)

Open dac-nh opened this issue 3 years ago • 4 comments

dac-nh avatar Jun 15 '21 10:06 dac-nh

hey, when I use this fix, then fps drops from 15 to 3 FPS it looks like no gpu is using, any idea ? great project thanks

acschristoph avatar Feb 06 '22 07:02 acschristoph

hey, when I use this fix, then fps drops from 15 to 3 FPS it looks like no gpu is using, any idea ? great project thanks

Same here!

glenbhermon avatar Jun 12 '23 09:06 glenbhermon

Hi, you should check line 11 to choose which GPU(s) are suite best for you. By default, I choose the first one, you can replace it by using all GPUs that you have by this: tf.config.experimental.set_memory_growth(physical_devices, True)

dac-nh avatar Jun 12 '23 10:06 dac-nh

Hi, you should check line 11 to choose which GPU(s) are suite best for you. By default, I choose the first one, you can replace it by using all GPUs that you have by this: tf.config.experimental.set_memory_growth(physical_devices, True)

Gives an error: ValueError: Unrecognized device: [PhysicalDevice(name='/physical_device:GPU:0', device_type='GPU')] the physical_devices[0] works, but is terribly slow at around 2 FPS (I'm using the Jetson AGX Orin)

glenbhermon avatar Jun 12 '23 11:06 glenbhermon