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
- 파이썬 #기초 #응애
- MySQL
- onnx #openvino #tf2onnx #openvinokeras
- leetcode
- Backoff
- DataLoader
- docker
- 고유값
- pytorch
- ML
- overloaed
- Python #for문 #while문 #응애
- Anaconda
- GCP
- python
- CentOS
- 매매봇
- Mecab
- Flask
- ML #머신러닝
- BitCoin
- GPT
- OpenAI
- GPU
- vram
- NLP
- Gunicorn
- GPT API
- Python #open #read #파이썬
- UUID
Archives
- Today
- Total
람쥐썬더
TypeError: Input type float32 is not supported 본문
transforms = T.Compose([
T.ToPILImage(),
T.Resize((cfg['IMAGE_SIZE'], cfg['IMAGE_SIZE'])),
T.ToTensor()
])
image = plt.imread(samples[0])
image_tensor = transforms(image)
Inference를 위해 이미지 변환중 다음과 같은 에러가 났다.
TypeError: Input type float32 is not supported
해결 )
T.ToPILImage() => T.ToPILImage(mode='RGB)