Skip to content

Conversation

david-hdn
Copy link

No description provided.

@david-hdn david-hdn changed the title Fix the tensorflow load Fix the tensorflow prediction (using models.load instead serving) Jun 16, 2021
Copy link

@FeiduoduoPeng FeiduoduoPeng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this exactly fixed my problem

@acschristoph
Copy link

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

@glenbhermon
Copy link

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!

@david-hdn
Copy link
Author

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)

@glenbhermon
Copy link

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)

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

Successfully merging this pull request may close these issues.

5 participants