Home>

I tried to move highhrnet-human-pose-estimation using CoCoDateSets, but OpenCV error will stop. I feel like a mistake such as a mistake, but I would like to ask someone Help.

File "C: \ Higherhrnet-Human-Pose-Estimation \ Tools \ .. \ lib \ dataset \ cocoDataSet.py", LINE 122, IN __GETITEM__
img= Cv2.cvtcolor (img, cv2.color_bgr2rgb) cv2.error: OpenCV (3.4.1) C: \ Projects \ OpenCV-Python \ OpenCV \ Modules \ Imgproc \ Src \ Color.cpp: 11115: Error: (-215 ) SCN== 3 || SCN== 4 in Function CV :: CVTColor

It seems that the programs around here are related

COCO= Self.COCO
    img_ID= self.ids [index]
    ANN_IDS= COCO.getAnnids (IMGIDS= IMG_ID)
    Target= COCO.LOADANNS (ANN_IDS)
    file_name= COCO.LOADIMGS [0] ['file_name']
    IF SELF.DATA_FORMAT== 'ZIP':
        img= zipreader.imread
            Self._get_image_path (file_name),
            cv2.imread_color | Cv2.imread_ignore_Orientation
        )
    else:
        img= Cv2.imread
            Self._get_image_path (file_name),
            cv2.imread_color | Cv2.imread_ignore_Orientation
        )
    img= cv2.cvtcolor (img, cv2.color_bgr2rgb)
    IF Self.Transform Is Not None:
        img= self .Transform (IMG)

In the similar situation of this? Error when reading an image with OpenCV he is not a file or not correct.

kunif2021-06-17 13:05:38