the-house-of-black-and-white / hall-of-faces

Face detection model zoo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to implement multi-processing ?

thangarajan8 opened this issue · comments

Hi,
I tried to run face detection using multi processing I am getting below error

Traceback (most recent call last): File "extract_face_MP.py", line 66, in <module> main() File "extract_face_MP.py", line 56, in main pool.map(detect_face_yolo, image_paths) File "C:\Anaconda3\lib\multiprocessing\pool.py", line 260, in map return self._map_async(func, iterable, mapstar, chunksize).get() File "C:\Anaconda3\lib\multiprocessing\pool.py", line 608, in get raise self._value File "C:\Anaconda3\lib\multiprocessing\pool.py", line 119, in worker result = (True, func(*args, **kwds)) File "C:\Anaconda3\lib\multiprocessing\pool.py", line 44, in mapstar return list(map(*args)) File "extract_face_MP.py", line 40, in detect_face_yolo faces = yolo_face_detector.detect(img,draw_faces=False,include_score=True) File "C:\Anaconda3\lib\site-packages\hof\face_detectors.py", line 223, in detect detections = self.net.forward() cv2.error: OpenCV(3.4.3) C:\projects\opencv-python\opencv\modules\dnn\src\dnn.cpp:686: error: (-215:Assertion failed) mapIt != reuseMap.end() in function 'cv::dnn::experimental_dnn_34_v7::BlobManager::releaseReference'

What was the issue sorry I new to CV and Yolo