Traceback (most recent call last):
File “check.py”, line 32, in
face_encodings = face_recognition.face_encodings(rgb_small_frame, face_locations)
File “/home/shalu/anaconda3/envs/dlib/lib/python3.8/site-packages/face_recognition/api.py”, line 214, in face_encodings
return [np.array(face_encoder.compute_face_descriptor(face_image, raw_landmark_set, num_jitters)) for raw_landmark_set in raw_landmarks]
File “/home/shalu/anaconda3/envs/dlib/lib/python3.8/site-packages/face_recognition/api.py”, line 214, in
return [np.array(face_encoder.compute_face_descriptor(face_image, raw_landmark_set, num_jitters)) for raw_landmark_set in raw_landmarks]
RuntimeError: Error while calling cudaOccupancyMaxPotential
Upgrade your existing GPU driver, choosing a driver installer from here. If you are on a laptop this may be difficult, and you need to take into account how your previous GPU driver was installed. runfile installer vs. package manager. You’ll need to familiarize yourself with the cuda linux install guide and learn the difference between package manager install and runfile install, and possibly remove your old driver first.
or:
Downgrade your CUDA install. Your current driver supports CUDA 12.2:
But you have installed and seem to be using CUDA 12.4:
That is an incompatible combination. If you want to try to install CUDA 12.2 instead, then that may work, and would be compatible with your current GPU driver.
These topics are frequently asked questions, so with a bit of searching your can find other forum articles describing these things.