height, weight = img.shape
AttributeError: 'NoneType' object has no attribute 'shape'
而且:cv2.imshow('input',img_input)
cv2.error: OpenCV(4.4.0) C:\Users\appveyor\AppData\Local\Temp\1\pip-req-build-6sxsq0tp\opencv\modules\highgui\src\window.cpp:376: error: (-215:Assertion failed) size.width>0 && size.height>0 in function 'cv::imshow'
求指导