rice-leaf-diseases-detection icon indicating copy to clipboard operation
rice-leaf-diseases-detection copied to clipboard

Prediction Error

Open Tikam02 opened this issue 3 years ago • 0 comments

SOURCE: class: blast, file: blast/blast_rotated_008.png


error Traceback (most recent call last) in 2 print("SOURCE: class: %s, file: %s" % (os.path.split(filename)[0], filename)) 3 ----> 4 img = load_image(filename) 5 print(img.shape()) 6 # prediction = predict(img)

in load_image(filename) 11 def load_image(filename): 12 img = cv2.imread(os.path.join(data_dir, validation_dir, filename)) ---> 13 img = cv2.resize(img, (IMAGE_SIZE[0], IMAGE_SIZE[1]) ) 14 img = img /255 15

error: OpenCV(4.5.1) /tmp/pip-req-build-1syr35c1/opencv/modules/imgproc/src/resize.cpp:4051: error: (-215:Assertion failed) !ssize.empty() in function 'resize'

Tikam02 avatar Feb 09 '21 12:02 Tikam02