AttributeError: 'Image' object has no attribute 'shape'에러노트: 제가 직접 겪었던 에러와 해결 방법에 대해 소개합니다.에러파이썬에서 아래와 같이 laod_img를 통하여 이미지를 불러오고, 이미지의 크기를 조회하기 위해 shape를 사용했는데, 다음과 같은 에러가 발생했다.AttributeError: 'Image' object has no attribute 'shape'from keras_preprocessing.image import load_imgfilename = 'output_20240301_V0000.png'sample_img = load_img(filename)sample_img.shape해결확인한 결과, shape이라는 속성이 없다는 경고문이었다...