반응형
Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 | 29 | 30 | 31 |
Tags
- 파이썬문법
- __init__
- Visual Studio Code
- python 문법
- wsl2
- torch.nn
- LSTM
- Anaconda
- objectdetection
- ubuntu
- docker
- 가상환경구축
- DeepLearning
- vsC
- 딥러닝
- python
- 파이썬
- Torchvision
- __call__
- ViT
- CNN
- tensorflow
- torch.nn.Module
- vision transformer
- rnn
- 머신러닝
- pytorch
- pychram
- 가상환경
- AI
Archives
- Today
- Total
목록code_study/PIL (1)
인공지능을 좋아하는 곧미남
PIL의 Image 패키지의 shape은 어떻게 될까? from PIL import Image import numpy as np img = Image.open('./aa.PNG') img_array = np.array(img) print(img_array.shape) result : (311, 483, 4) W : 483, H : 311 즉, Image의 변수 형태는 (H, W, RGB?) 근데 왜 4차원이냐.. 뭐지.. 그리고 이미지의 원점은 좌측 상단 부터 하여 내려가면 H가 증가 오른쪽으로 가면 W가 증가하는 순서다.
code_study/PIL
2021. 6. 23. 15:36