Beispiel #1
0
############################ Things recommanded to be changed ##########################################
# 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 = True
opt.lam_PAPR = 0.5
opt.is_regu_sigma = False
opt.lam_sigma = 100
##############################################################################################################

# Set up the loss function
opt.lambda_L2 = 128       # The weight for L2 loss
opt.is_Feat = False       # Whether to use feature matching loss or not
opt.lambda_feat = 1

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