echomimic icon indicating copy to clipboard operation
echomimic copied to clipboard

A bug was found here, some jpeg format found no face here

Open XeoOuYang opened this issue 1 year ago • 3 comments

face musk prepare

face_img = cv2.imread(ref_image_path) face_mask = np.zeros((face_img.shape[0], face_img.shape[1])).astype('uint8')

det_bboxes, probs = face_detector.detect(face_img)

det_bboxes will be None, once we use Image.open the same jpeg file, all things go well.

EXAMPLE file is here, I don't know if it can be reproduce or not after upload and download procedure.

test_03_25_h264_yuv420p_f0_blend.zip

--ZIP instead--

XeoOuYang avatar Aug 16 '24 06:08 XeoOuYang

is there a solution for this

oisilener1982 avatar Aug 21 '24 16:08 oisilener1982

det_bboxes, probs = face_detector.detect(cv2.cvtColor(face_img, cv2.COLOR_BGR2RGB))

jiayueshiliuqi avatar Sep 12 '24 07:09 jiayueshiliuqi

det_bboxes, probs = face_detector.detect(cv2.cvtColor(face_img, cv2.COLOR_BGR2RGB))

It work for me

hu-bo avatar Jan 18 '25 23:01 hu-bo