UOMOP

X : SNR, Y : Avg PSNR 본문

DE/Graph

X : SNR, Y : Avg PSNR

Happy PinGu 2024. 9. 1. 14:17

Chessboard

DIM:512 SNR(40dB) : (Avg):24.9450 (Ori.):28.88 (MR=33%):28.74 (MR=60%):27.68 (MR=75%):25.201
DIM:512 SNR(30dB) : (Avg):24.5068 (Ori.):27.94 (MR=33%):27.95 (MR=60%):27.24 (MR=75%):24.98
DIM:512 SNR(20dB) : (Avg):23.2405 (Ori.):25.83 (MR=33%):25.80 (MR=60%):25.62 (MR=75%):23.89
DIM:512 SNR(10dB) : (Avg):21.5922 (Ori.):23.37 (MR=33%):23.36 (MR=60%):22.90 (MR=75%):22.44
DIM:512 SNR(0dB)   : (Avg):18.7142 (Ori.):19.36 (MR=33%):19.82 (MR=60%):19.38 (MR=75%):19.09


DIM:256 SNR(40dB) : (Avg):23.6780 (Ori.):26.98 (MR=33%):26.36 (MR=60%):25.65 (MR=75%):24.51
DIM:256 SNR(30dB) : (Avg):23.4070 (Ori.):26.49 (MR=33%):25.95 (MR=60%):25.33 (MR=75%):24.35
DIM:256 SNR(20dB) : (Avg):22.4473 (Ori.):24.78 (MR=33%):24.57 (MR=60%):24.03 (MR=75%):23.34
DIM:256 SNR(10dB) : (Avg):20.6118 (Ori.):21.98 (MR=33%):22.16 (MR=60%):21.52 (MR=75%):21.27
DIM:256 SNR(0dB)   : (Avg):17.7458 (Ori.):18.30 (MR=33%):18.86 (MR=60%):18.37 (MR=75%):18.23

 

 

 

TopK

DIM:512 SNR(40dB) : (Avg):24.9450 (Ori.):28.40 (MR=33%):28.14 (MR=60%):25.07 (MR=75%):21.89
DIM:512 SNR(30dB) : (Avg):24.5068 (Ori.):27.60 (MR=33%):27.45 (MR=60%):24.76 (MR=75%):21.79
DIM:512 SNR(20dB) : (Avg):23.2405 (Ori.):25.73 (MR=33%):25.47 (MR=60%):23.78 (MR=75%):21.38
DIM:512 SNR(10dB) : (Avg):21.5922 (Ori.):23.17 (MR=33%):22.98 (MR=60%):22.18 (MR=75%):20.53
DIM:512 SNR(0dB)   : (Avg):18.7142 (Ori.):19.41 (MR=33%):19.56 (MR=60%):19.38 (MR=75%):18.58

DIM:256 SNR(40dB) : (Avg):23.6780 (Ori.):26.80 (MR=33%):25.75 (MR=60%):23.97 (MR=75%):21.60
DIM:256 SNR(30dB) : (Avg):23.4070 (Ori.):26.23 (MR=33%):25.36 (MR=60%):23.76 (MR=75%):21.60
DIM:256 SNR(20dB) : (Avg):22.4473 (Ori.):24.77 (MR=33%):24.24 (MR=60%):22.94 (MR=75%):21.03
DIM:256 SNR(10dB) : (Avg):20.6118 (Ori.):21.88 (MR=33%):21.82 (MR=60%):21.19 (MR=75%):19.87
DIM:256 SNR(0dB)   : (Avg):17.7458 (Ori.):18.30 (MR=33%):18.48 (MR=60%):18.45 (MR=75%):17.80

 

 

 

Random

DIM:512 SNR(40dB) : (Avg):24.9450 (Ori.):28.44 (MR=33%):26.15 (MR=60%):23.67 (MR=75%):21.49
DIM:512 SNR(30dB) : (Avg):24.5068 (Ori.):27.92 (MR=33%):25.70 (MR=60%):23.53 (MR=75%):21.42
DIM:512 SNR(20dB) : (Avg):23.2405 (Ori.):25.64 (MR=33%):23.82 (MR=60%):22.73 (MR=75%):20.92
DIM:512 SNR(10dB) : (Avg):21.5922 (Ori.):23.14 (MR=33%):21.92 (MR=60%):20.91 (MR=75%):20.09
DIM:512 SNR(0dB)   : (Avg):18.7142 (Ori.):19.35 (MR=33%):18.79 (MR=60%):18.49 (MR=75%):17.99


DIM:256 SNR(40dB) : (Avg):23.6780 (Ori.):26.81 (MR=33%):24.28 (MR=60%):22.73 (MR=75%):21.26
DIM:256 SNR(30dB) : (Avg):23.4070 (Ori.):26.37 (MR=33%):24.04 (MR=60%):22.58 (MR=75%):21.19
DIM:256 SNR(20dB) : (Avg):22.4473 (Ori.):24.80 (MR=33%):23.03 (MR=60%):21.87 (MR=75%):20.74
DIM:256 SNR(10dB) : (Avg):20.6118 (Ori.):21.87 (MR=33%):20.95 (MR=60%):20.12 (MR=75%):19.41
DIM:256 SNR(0dB)   : (Avg):17.7458 (Ori.):18.31 (MR=33%):17.86 (MR=60%):17.66 (MR=75%):17.34

 

 

DeepJSCC

DIM=512   : [18.781, 22.801, 26.817, 29.227, 30.021]

DIM=256  : [17.638, 21.318, 24.505, 25.997, 26.248]

 

 

 

% 사용자 입력 (MR과 DIM 설정)
MR = input('MR 값을 입력하세요 (0, 33, 60, 75 중 하나): ');
DIM = input('DIM 값을 입력하세요 (256 또는 512): ');

% SNR 값 설정
snr_values = [0, 10, 20, 30, 40];

% No masking (DeepJSCC) 데이터
no_masking_512 = [18.781, 22.801, 26.817, 29.227, 30.021];
no_masking_256 = [17.638, 21.318, 24.505, 25.997, 26.248];

% Proposed 데이터
proposed_512 = {
    [19.36, 23.37, 25.83, 27.94, 28.88], ...
    [19.82, 23.36, 25.80, 27.95, 28.74], ...
    [19.38, 22.90, 25.62, 27.24, 27.68], ...
    [19.09, 22.44, 23.89, 24.98, 25.201]
};

proposed_256 = {
    [18.30, 21.98, 24.78, 26.49, 26.98], ...
    [18.86, 22.16, 24.57, 25.95, 26.36], ...
    [18.37, 21.52, 24.03, 25.33, 25.65], ...
    [18.23, 21.27, 23.34, 24.35, 24.51]
};

% TopK 데이터
topk_512 = {
    [19.41, 23.17, 25.73, 27.60, 28.40], ...
    [19.56, 22.98, 25.47, 27.45, 28.14], ...
    [19.38, 22.18, 23.78, 24.76, 25.07], ...
    [18.58, 20.53, 21.38, 21.79, 21.89]
};

topk_256 = {
    [18.30, 21.88, 24.77, 26.23, 26.80], ...
    [18.48, 21.82, 24.24, 25.36, 25.75], ...
    [18.45, 21.19, 22.94, 23.76, 23.97], ...
    [17.80, 19.87, 21.03, 21.60, 21.60]
};

% Random 데이터
random_512 = {
    [19.35, 23.14, 25.64, 27.92, 28.44], ...
    [18.79, 21.92, 23.82, 25.70, 26.15], ...
    [18.49, 20.91, 22.73, 23.53, 23.67], ...
    [17.99, 20.09, 20.92, 21.42, 21.49]
};

random_256 = {
    [18.31, 21.87, 24.80, 26.37, 26.81], ...
    [17.86, 20.95, 23.03, 24.04, 24.28], ...
    [17.66, 20.12, 21.87, 22.58, 22.73], ...
    [17.34, 19.41, 20.74, 21.19, 21.26]
};

% MR 인덱스 설정
if MR == 0
    mr_index = 1;
elseif MR == 33
    mr_index = 2;
elseif MR == 60
    mr_index = 3;
elseif MR == 75
    mr_index = 4;
else
    error('잘못된 MR 값입니다. 0, 33, 60, 75 중 하나를 입력하세요.');
end

% DIM에 따른 데이터 선택
if DIM == 512
    proposed_data = proposed_512{mr_index};
    topk_data = topk_512{mr_index};
    random_data = random_512{mr_index};
    no_masking_data = no_masking_512;
    CR = '1/6'; % Compression Ratio 설정
elseif DIM == 256
    proposed_data = proposed_256{mr_index};
    topk_data = topk_256{mr_index};
    random_data = random_256{mr_index};
    no_masking_data = no_masking_256;
    CR = '1/12'; % Compression Ratio 설정
else
    error('잘못된 DIM 값입니다. 256 또는 512 중 하나를 입력하세요.');
end

% 그래프 그리기
figure;

hold on;
plot(snr_values, no_masking_data, 'k-.o', 'LineWidth', 2, 'DisplayName', ['No masking (DeepJSCC)']);
plot(snr_values, topk_data, 'b--s', 'LineWidth', 2,  'DisplayName', ['TopK']);
plot(snr_values, random_data, 'g--d', 'LineWidth', 2, 'DisplayName', ['Random']);
plot(snr_values, proposed_data, 'r-*', 'LineWidth', 2, 'MarkerSize', 8, 'DisplayName', ['Proposed']);

% Title에 SR 및 CR 값 설정 (1 - MR/100)
sr_value = 1 - MR / 100;
title(['PSNR performance ( SR=' num2str(sr_value) ', CR=' CR ' )']);
xlabel('SNR (dB)');
ylabel('PSNR (dB)');
legend('show', 'Location', 'southeast'); % 주석을 오른쪽 하단으로 설정
grid on;
ylim([0, 35]); % PSNR 범위 설정

'DE > Graph' 카테고리의 다른 글

Random Activate layer  (0) 2024.09.03
TopK Activate layer  (0) 2024.09.03
CBS activated layer  (0) 2024.09.03
X: Target PSNR, Y: FLOPs, SNR : [40, 20], CR: [1/6, 1/12]  (0) 2024.09.03
[CBS / TopK / RS] : target PSNR, level select, final FLOPs, avg PSNR  (0) 2024.09.02
Comments