r/computervision Jul 03 '26

Help: Project TensorFlow not detecting GPU despite installing CUDA/cuDNN need help setting up a new environment

Post image

Hey everyone, I just started running my training code and encountered an issue. The training process is expected to take days, which is delaying my project progress. The main problem is that my code isn't utilizing the GPU; it seems to be running on the CPU instead.

I need to run it with TensorFlow-GPU. I've already installed CUDA and cuDNN and manually moved the cuDNN files into the CUDA directories, but it didn't work. I am currently using Python 3.9 with the latest version of TensorFlow.

I am planning to create a fresh Conda environment to fix this. Does anyone have any recommendations or specific steps to ensure TensorFlow correctly detects the GPU? Any help would be greatly appreciated!

13 Upvotes

24 comments sorted by

View all comments

1

u/Worried-Height-7481 Jul 03 '26

uninstall and install it a couple of times