Exemplo n.º 1
0
##################################################################################################
# Set up the training procedure
opt.C_channel = 12
opt.SNR = 20

opt.is_feedback = False
opt.feedforward = 'EXPLICIT-RES'

opt.N_pilot = 2  # Number of pilots for chanenl estimation
opt.CE = 'MMSE'  # Channel Estimation Method
opt.EQ = 'MMSE'  # Equalization Method
opt.pilot = 'ZadoffChu'  # QPSK or ZadoffChu

opt.is_clip = False
opt.CR = 0 if not opt.is_clip else 1
opt.is_regu_PAPR = False
opt.is_regu_sigma = False

##############################################################################################################

if not opt.is_clip:
    opt.CR = 0

########################################  OFDM setting  ###########################################

size_after_compress = (opt.size //
                       (opt.n_downsample**2))**2 * (opt.C_channel // 2)

opt.N = opt.batchSize  # Batch size
opt.P = 1  # Number of symbols
Exemplo n.º 2
0
    opt.C_channel = 12
    opt.SNR = 15

    opt.is_feedback = False
    opt.feedforward = forward_list[se]

    opt.N_pilot = 1  # Number of pilots for chanenl estimation
    opt.CE = 'MMSE'  # Channel Estimation Method
    opt.EQ = 'MMSE'  # Equalization Method
    opt.pilot = 'ZadoffChu'  # QPSK or ZadoffChu

    opt.lam_h = 0.5
    opt.is_hloss = True

    opt.is_clip = False
    opt.CR = 0 if not opt.is_clip else 1.2
    opt.is_regu_PAPR = False
    opt.lam_PAPR = 0.1
    opt.is_random = False
    opt.lam_G = 0.2
    ##############################################################################################################

    ########################################  OFDM setting  ###########################################

    if opt.gan_mode == 'wgangp':
        opt.norm_D = 'instance'  # Use instance normalization when using WGAN.  Available: 'instance', 'batch', 'none'
    else:
        opt.norm_D = 'batch'  # Used batch normalization otherwise

    size_after_compress = (opt.size //
                           (2**opt.n_downsample))**2 * (opt.C_channel // 2)