AttributeError: 'list' object has no attribute 'shape' (1) 썸네일형 리스트형 AttributeError: 'list' object has no attribute 'shape' 문제 상황 list 에 image를 넣고 shape을 확인하고자 했음 원인 list는 shape function을 지원하지 않음( 사실, numpy를 하도 많이 쓰다보니, 자연스레 자주 하는 실수중 하나임 ) 해결책 list = [] toarray = np.array(test) print(toarray.shape) 참고 np.ndarray 로 바꿀경우 차원에 제한이 있음 이전 1 다음