Open suprnrdy opened 5 years ago
Did you solve the issue? I'm facing the same issue.
can you provide the trace back of this program's output,
if cudnn failed that means the installation of cudnn failed,verify that with
nvcc -V
this should output the cuda version being used,then download the libcudnn files from nvidia developer site and install them,try the mnistcudnn test. If that throws any errors the installation is messed up.
Description
Following the JetsonNano instructions and incorporating ZED Camera feed by replaced cv2.VideoCapture with cam.retrieve_image (https://www.stereolabs.com/docs/opencv-python/#capturing-video), I get a crash during face_encoding.
I've verified that the image is converted to RGB and scaled down to 1/4 original size, yet still get this crash every time. When I try the original example using the ZED camera as a Universal Video Camera (UVC) [https://www.stereolabs.com/docs/opencv-python/#uvc-capture] there are no issues.
Error:
Traceback (most recent call last): File "facedetect.py", line 251, in <module> main_loop() File "facedetect.py", line 163, in main_loop face_encodings = face_recognition.face_encodings(rgb_small_frame, face_locations) File "/usr/local/lib/python3.6/dist-packages/face_recognition/api.py", line 210, 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 "/usr/local/lib/python3.6/dist-packages/face_recognition/api.py", line 210, in <listcomp> 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 cudnnConvolutionForward( context(), &alpha, descriptor(data), data.device(), (const cudnnFilterDescriptor_t)filter_handle, filters.device(), (const cudnnConvolutionDescriptor_t)conv_handle, (cudnnConvolutionFwdAlgo_t)forward_algo, forward_workspace, forward_workspace_size_in_bytes, &beta, descriptor(output), output.device()) in file /tmp/pip-build-do6wa1sv/dlib/dlib/cuda/cudnn_dlibapi.cpp:1007. code: 7, reason: A call to cuDNN failed
What I Did (main_loop)
`def main_loop():
`