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 |
Tags
- Backoff
- Gunicorn
- 고유값
- Mecab
- vram
- UUID
- overloaed
- docker
- ML #머신러닝
- GPU
- Flask
- python
- GPT
- Python #open #read #파이썬
- Python #for문 #while문 #응애
- Anaconda
- onnx #openvino #tf2onnx #openvinokeras
- GCP
- 매매봇
- 파이썬 #기초 #응애
- OpenAI
- DataLoader
- MySQL
- ML
- leetcode
- CentOS
- pytorch
- GPT API
- BitCoin
- NLP
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)