딥러닝
Image Super Resolution Evaluation Metric 케라스 구현
이산한하루
2019. 5. 11. 23:30
1. PSNR(Peak Signal-to-Noise Ratio)
정 의 : 신호가 가질 수 있는 최대전력 잡음비
# 케라스 psnr 평가 metric 예시
def PSNR(y_true, y_pred):
return tf.image.psnr(y_true, y_pred, max_val=1.0)
2. SSIM(Structural Similarity Index)
정 의 : 압축 및 변환에 의해 발생하는 왜곡에 대하여 원본 영상에 대한 유사도를 측정하는 방법
def SSIM(y_true, y_pred):
return tf.image.ssim(y_true, y_pred, max_val=1.0)