일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- Perceptron
- 브렉시트
- 유로화
- Python
- cv2
- 유가 급등
- deeplearning
- dtype
- Inference
- 퍼셉트론
- 블록체인
- 세계대전
- opencv
- DataSet
- 딥러닝
- 비트코인
- error
- pyqt
- TF
- 세계사
- loss
- keras
- numpy
- img
- itksnap
- TFRecord
- terminal
- TensorFlow
- Training
- qtdesigner
Archives
- Today
- Total
활연개랑
[Tensorflow] TypeError: Input 'bytes' of 'DecodeRaw' Op has type int64 that does not match expected type of string. 본문
Python
[Tensorflow] TypeError: Input 'bytes' of 'DecodeRaw' Op has type int64 that does not match expected type of string.
승해tmdhey 2022. 4. 8. 10:52반응형
tfrecord를 만들 때 발생하는 에러
TypeError: Input 'bytes' of 'DecodeRaw' Op has type int64 that does not match expected type of string.
parsing하는 과정에서 label parsing을 다음과 같이 했을 때 위 오류가 발생했다.
label = tf.io.decode_raw(features['train/label'], tf.int64)
label = tf.cast(label, tf.int64)
하지만, label에서는 decode_raw를 사용할 필요 없이
label = features['train/label']
이렇게만 작성해주면 된다.