TreB1eN / InsightFace_Pytorch

Pytorch0.4.1 codes for InsightFace
MIT License
1.72k stars 418 forks source link

Value error: need at least one array to concatenate #159

Open Sureshthommandru opened 3 years ago

Sureshthommandru commented 3 years ago

When I run the face_verify.py code below error shown

Process Process-1: Traceback (most recent call last): File "/home/super/anaconda3/envs/test/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap self.run() File "/home/super/anaconda3/envs/test/lib/python3.8/multiprocessing/process.py", line 108, in run self._target(*self._args, **self._kwargs) File "/home/super/Documents/Mahesh/face_rec1.py", line 147, in func_detect bboxes, faces = mtcnn.align_multi(image, conf.face_limit, 16) File "/home/super/Documents/Mahesh/mtcnn.py", line 33, in align_multi boxes, landmarks = self.detect_faces(img, min_face_size) File "/home/super/Documents/Mahesh/mtcnn.py", line 119, in detect_faces bounding_boxes = np.vstack(bounding_boxes) File "<__array_function__ internals>", line 5, in vstack File "/home/super/anaconda3/envs/test/lib/python3.8/site-packages/numpy/core/shape_base.py", line 283, in vstack return _nx.concatenate(arrs, 0) File "<__array_function__ internals>", line 5, in concatenate ValueError: need at least one array to concatenate

Please provide the solution