일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- Perceptron
- TF
- Inference
- deeplearning
- TFRecord
- img
- 퍼셉트론
- 유가 급등
- 세계사
- 딥러닝
- numpy
- itksnap
- 유로화
- 블록체인
- 비트코인
- dtype
- 세계대전
- DataSet
- TensorFlow
- error
- Training
- 브렉시트
- keras
- Python
- qtdesigner
- opencv
- loss
- cv2
- terminal
- pyqt
Archives
- Today
- Total
활연개랑
[python(파이썬)] Segmentation Pixel Accuracy 본문
반응형
def pixel_accuracy(pred_mask, gt_mask):
pixel_labeled = np.sum(gt_mask >= 0)
pixel_correct = np.sum((gt_mask == pred_mask)*(gt_mask >= 0))
pixel_acc = pixel_correct*1.0/pixel_labeled
return pixel_acc
'Python' 카테고리의 다른 글
[python(파이썬)] 3d image(array) resize (0) | 2023.06.06 |
---|---|
[python(파이썬)] tfrecords 데이터 개수 세기 (0) | 2023.01.27 |
None of the MLIR optimization passes are enabled (registered 1) 이후 training 시작 전에 코드 멈추는 현상 (0) | 2022.11.07 |
[ERROR 해결] sitk::ERROR: File names information is empty. Cannot read series. (0) | 2022.10.05 |
[Python (파이썬)] tfrecord 이미지 데이터 확인 (0) | 2022.08.21 |