Haar cascade with cuda xml classifier doesn’t work

Try to make opencv working in docker container on jatson nano but cuda classifiers does`n work. I have opencv 4.5.1 and tensorflow 2.4 in docker container. I try to use opencv cuda classifiers from official repo [opencv/data/haarcascades_cuda at master · opencv/opencv · GitHub ]
In application I use Python to fetch xml file:

self.open_eyes_detector = cv2.cuda_CascadeClassifier.create(BASE_DIR + '/models/cuda/haarcascade_eye_tree_eyeglasses.xml')

And then Multiscale detector:

gpu_gray_face = cv2.cuda_GpuMat(gray_face)

open_eyes_glasses_result = self.open_eyes_detector.detectMultiScale(gpu_gray_face).download()

But only smiles detector is working. Every other haar classifier gives error

cv2.error: OpenCV(4.5.1) /tmp/build_opencv/opencv_contrib/modules/cudaobjdetect/src/cascadeclassifier.cpp:155: error: (-217:Gpu API call) NCV Assertion Failed: cudaError_t=702, file=/tmp/build_opencv/opencv_contrib/modules/cudale gacy/src/cuda/NCVHaarObjectDetection.cu, line=1157 in function 'NCVDebugOutputHandler’

./deviceQuery test passes so I can conclude that cuda drivers are working. What can be the reason of this error?

Tried to make other filters and they are created successfully:

cv2.cuda.createGaussianFilter(cv2.CV_8UC4, cv2.CV_8UC4, (31, 31), 0, 0, cv2.BORDER_DEFAULT)
<cuda_Filter 0x7f962cbe90>
cv2.cuda.createSobelFilter(cv2.CV_8UC4, cv2.CV_8UC4, 1, 0, 3, 1, cv2.BORDER_DEFAULT)
<cuda_Filter 0x7f9cc06330>