반응형
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 |
Tags
- pytorch
- LSTM
- rnn
- python
- wsl2
- __init__
- pip install
- vision transformer
- 파이썬
- objectdetection
- torch.nn
- pychram
- 파이썬문법
- __call__
- 가상환경
- python 문법
- Torchvision
- 가상환경구축
- AI
- CNN
- 머신러닝
- Deep learning
- ViT
- Anaconda
- torch.nn.Module
- tensorflow
- DeepLearning
- ubuntu
- docker
- 딥러닝
Archives
- Today
- Total
인공지능을 좋아하는 곧미남
[PIL] from PIL import Image 본문
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가 증가하는 순서다.
반응형
Comments