목록DE (34)
UOMOP
import torchimport torch.nn as nnfrom thop import profileclass Encoder(nn.Module): def __init__(self, latent_dim): super(Encoder, self).__init__() self.latent_dim = latent_dim # stride=2를 초반 레이어에 적용하고, kernel_size를 3으로 줄임 self.in1 = nn.Conv2d(3, 32, kernel_size=3, stride=2, padding=0) self.in2 = nn.Conv2d(3, 32, kernel_size=3, stride=2, padding=2) sel..
plot_outage_probability(256, 40)function plot_outage_probability(dim, snr) % 데이터 정의 data = { 512, 40, [18:30], [0, 0, 0, 0.07, 0.19, 0.68, 2.25, 5.67, 12.25, 22.96, 36.72, 52.0, 66.25], [0, 0, 0.01, 0.09, 0.3, 1.0, 2.86, 6.92, 13.83, 25.4, 39.77, 55.31, 69.1], [0, 0, 0.01, 0.1, 0.3, 1.13, 3.35, 7.95, 16.22, 28.64, 44.77, 61.04, 74.51], [0.04, 0.04, 0.04, 0.04, 0.06, 0.16, 0.42, 1.17..
% MATLAB 코드 시작% 전체 데이터 입력 (dim, snr, FLOPs constraint, Avg. PSNR)data_proposed = [ 512, 40, 3.0, 0.0; 512, 40, 3.1, 0.0; 512, 40, 3.2, 0.0; 512, 40, 3.3, 25.2; 512, 40, 3.4, 25.2; 512, 40, 3.5, 25.2; 512, 40, 3.6, 25.2; 512, 40, 3.7, 25.2; 512, 40, 3.8, 25.2; 512, 40, 3.9, 27.68; 512, 40, 4.0, 27.68; 512, 40, 4.1, 27.68; 512, 40, 4.2, 27.68; 512, 40, 4.3..
% MATLAB 코드 시작plot_psnr_methods(512, 40)function plot_psnr_methods(dim, snr) % 데이터 설정: 각 방법별 DIM과 SNR에 따른 데이터 구성 data = { % Proposed 데이터 'Proposed', 512, 40, [18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30], ... [25.24, 25.28, 25.34, 25.49, 25.72, 26.03, 26.44, 26.90, 27.35, 27.76, 28.10, 28.36, 28.54]; 'Proposed', 512, 20, [18, 19, 20, 21,..
plot_flops(512, 40);function plot_flops(dim, snr) % 데이터 초기화 full_data = [ 512, 40, 18, 1, 54, 703, 9242; 512, 40, 19, 5, 184, 1451, 8360; 512, 40, 20, 22, 534, 2429, 7015; 512, 40, 21, 83, 1264, 3206, 5447; 512, 40, 22, 341, 2283, 3493, 3883; 512, 40, 23, 873, 3326, 3214, 2587; 512, 40, 24, 1863, 3968, 2523, 1646; 512, 40, 25, 3356, 3..
plot_flops(512, 40);function plot_flops(dim, snr) % 데이터 초기화 full_data = [ 512, 40, 18, 2, 68, 788, 9142; 512, 40, 19, 5, 163, 1428, 8404; 512, 40, 20, 15, 367, 2263, 7355; 512, 40, 21, 49, 758, 3153, 6040; 512, 40, 22, 119, 1396, 3800, 4685; 512, 40, 23, 308, 2206, 4143, 3343; 512, 40, 24, 666, 3123, 3959, 2252; 512, 40, 25, 1281, 387..