일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- 딥러닝
- 비트코인
- Python
- error
- Inference
- numpy
- pyqt
- 퍼셉트론
- 세계대전
- Training
- TF
- deeplearning
- img
- TensorFlow
- 브렉시트
- loss
- dtype
- itksnap
- terminal
- 유가 급등
- qtdesigner
- 블록체인
- Perceptron
- TFRecord
- DataSet
- opencv
- 유로화
- 세계사
- keras
- cv2
Archives
- Today
- Total
활연개랑
[Python] ValueError: cannot resize this array: it does not own its data 본문
Python
[Python] ValueError: cannot resize this array: it does not own its data
승해tmdhey 2022. 4. 8. 10:03반응형
아무도 모르시겠지만 되게 오랜만이죠 ㅎㅎ
제가 취업을했어요 축하해주세요.
그래서 앞으로 글을 많이 올리진 못할 것 같지만 종종 올리도록 하겠습니다.
ValueError: cannot resize this array: it does not own its data
이미지 resize를 할 때 이런 오류가 난다면 아마도 img.resize(size,size) << 이 코드를 사용하셨을 가능성이 높은데요~
이미지가 보통 numpy 배열로 되어있을 것이기 때문에, np.resize(img,(size,size)) 이렇게 했을 때 저런 오류가 뜨지 않을거예요~
감사합니다.