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

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

dac-nh
Copy link

@dac-nh dac-nh commented Jun 15, 2021

No description provided.

@dac-nh dac-nh 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!

@dac-nh
Copy link
Author

dac-nh commented Jun 12, 2023

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.

None yet

5 participants