일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- itksnap
- 퍼셉트론
- TF
- 비트코인
- img
- 브렉시트
- 세계대전
- 딥러닝
- deeplearning
- Inference
- keras
- 세계사
- terminal
- pyqt
- error
- DataSet
- 블록체인
- Training
- 유로화
- Perceptron
- dtype
- opencv
- TensorFlow
- loss
- numpy
- qtdesigner
- cv2
- TFRecord
- 유가 급등
- Python
Archives
- Today
- Total
활연개랑
[Python (파이썬)] tfrecord 이미지 데이터 확인 본문
반응형
for image, mask in get_input_data(filenames).take(10):
img = image.numpy().reshape(x, y, z)
mask = mask.numpy().reshape(x, y, z)
plt.figure(figsize=(12, 6))
plt.subplot(121)
plt.imshow(img[:, :, 10]) # 3d
plt.title('img')
plt.subplot(122)
plt.imshow(mask[:, :, 10]) # 3d
plt.title('mask')
plt.show()