faceit icon indicating copy to clipboard operation
faceit copied to clipboard

RuntimeError: Error while calling cudnnConvolutionForward

Open Cryptoevil opened this issue 5 years ago • 2 comments

When I try to run recognition I getting this:

File "faceswap/lib/FaceFilter.py", line 9, in init self.encoding = face_recognition.face_encodings(image)[0] # Note: we take only first face, so the reference file should only contain one face. 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 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-wheel-b9ck8go0/dlib/dlib/cuda/cudnn_dlibapi.cpp:1004. code: 8, reason: CUDNN_STATUS_EXECUTION_FAILED

Cryptoevil avatar Jan 24 '20 17:01 Cryptoevil

me too

EvanGee avatar Aug 16 '21 00:08 EvanGee

@EvanGee !pip install dlib==19.22.1 This will fix it. Worked for me

hamzakhalil798 avatar Sep 29 '22 07:09 hamzakhalil798