일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- 퍼셉트론
- TensorFlow
- opencv
- itksnap
- terminal
- Inference
- pyqt
- DataSet
- 유가 급등
- qtdesigner
- Python
- keras
- error
- Training
- cv2
- TF
- 세계사
- deeplearning
- TFRecord
- numpy
- 블록체인
- 비트코인
- Perceptron
- img
- 딥러닝
- 브렉시트
- 세계대전
- loss
- 유로화
- dtype
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()