일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 브렉시트
- loss
- itksnap
- dtype
- deeplearning
- Python
- opencv
- 유가 급등
- pyqt
- Training
- 비트코인
- qtdesigner
- 세계사
- numpy
- cv2
- 세계대전
- error
- TensorFlow
- 유로화
- img
- TFRecord
- Inference
- DataSet
- TF
- keras
- terminal
- 퍼셉트론
- 딥러닝
- 블록체인
- Perceptron
- Today
- Total
목록전체 글 (118)
활연개랑
None of the MLIR optimization passes are enabled (registered 1) 이후에 gpu 실행 문장도 뜨지 않고 코드가 멈추는 현상이 일어날 때가 있는데, 이건 tfrecords에 문제가 있을 때 발생하는 일 입니다. tfrecords size확인해보시면 아마 0bytes일 확률이 높고, 그렇지 않더라도 만드는 코드를 다시 한 번 살펴보면 좋을 것입니다.
echo 3 > /proc/sys/vm/drop_caches or sudo sh -c "/usr/bin/echo 3 > /proc/sys/vm/drop_caches"
DICOM 이미지에서 Image Orientation & Image Position을 추출한 다음 슬라이스의 3D 좌표를 기반으로 순서를 계산 어떤 이유로 이 정보를 찾을 수 없거나 실패하면 다른 전략이 사용됨. 순서는 'Instance Number'를 기반으로 함 이 전략도 실패하면 파일 이름이 사전순으로 정렬됨
reader = sitk.ImageSeriesReader() seriesIDs = reader.GetGDCMSeriesIDs(path) series_index = 0 series_file_names = reader.GetGDCMSeriesFileNames(path, seriesIDs[series_index]) reader.SetFileNames(series_file_names) image_3d = reader.Execute() 다음 코드로 변경하여 사용하면 오류 안남
image = tf.io.decode_raw(features['image'], tf.int16) image = tf.io.decode_raw(features['image'], tf.float32) tfrecord에 넣어주었던 type이랑 똑같이 넣어주어야 하는데 tfrecord에 float32으로 넣고 training에서 int16사용해서 오류남
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()
for i in range(): globals()['변수명'+str(i)] = *** for i in range(): locals()['변수명'+str(i)] = ***