Notice
Recent Posts
Recent Comments
Link
«   2024/05   »
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
Archives
Today
Total
관리 메뉴

uos-machine-learning

Image Super Resolution Evaluation Metric 케라스 구현 본문

딥러닝

Image Super Resolution Evaluation Metric 케라스 구현

이산한하루 2019. 5. 11. 23:30

1. PSNR(Peak Signal-to-Noise Ratio)

정 의 : 신호가 가질 수 있는 최대전력 잡음비

 

PSNR 구하는 공식(위키피디아)

# 케라스 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)

 

Comments