raisr icon indicating copy to clipboard operation
raisr copied to clipboard

train error cv2.error

Open ELHoussineT opened this issue 6 years ago • 1 comments

i trained using python3 train.py

all went well until this happened

Processing image 63 of 100 (train/158225.png)               
Processing image 64 of 100 (train/158232.png)               
Processing image 65 of 100 (train/158389.png)               
Processing image 66 of 100 (train/158111.png)               
Processing image 67 of 100 (train/158395.png)               
Processing image 68 of 100 (train/158253.png)               
Processing image 69 of 100 (train/158125.png)               
Processing image 70 of 100 (train/158332.png)               
Processing image 71 of 100 (train/158051.png)               
Processing image 72 of 100 (train/158220.png)               
Processing image 73 of 100 (train/158410.png)               
OpenCV Error: Assertion failed (scn == 3 || scn == 4) in cvtColor, file /io/opencv/modules/imgproc/src/color.cpp, line 11144
Traceback (most recent call last):
  File "train.py", line 54, in <module>
    grayorigin = cv2.cvtColor(origin, cv2.COLOR_BGR2YCrCb)[:,:,0]
cv2.error: /io/opencv/modules/imgproc/src/color.cpp:11144: error: (-215) scn == 3 || scn == 4 in function cvtColor


kindly advise

ELHoussineT avatar Jan 29 '18 10:01 ELHoussineT

Can you send me the image that generates the error, if possible. Thanks!

movehand avatar Mar 17 '18 09:03 movehand