goberoi / faceit

A script to make it easy to swap faces in videos using the faceswap library, and YouTube videos.
987 stars 423 forks source link

RuntimeError: Error while calling cudnnConvolutionForward #17

Open Cryptoevil opened 4 years ago

Cryptoevil commented 4 years ago

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

EvanGee commented 3 years ago

me too

hamzakhalil798 commented 2 years ago

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