代码拉取完成,页面将自动刷新
同步操作将从 xchu2020/HiDDeN 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
class TrainingOptions:
"""
Configuration options for the training
"""
def __init__(self,
batch_size: int,
number_of_epochs: int,
train_folder: str, validation_folder: str, runs_folder: str,
start_epoch: int, experiment_name: str):
self.batch_size = batch_size
self.number_of_epochs = number_of_epochs
self.train_folder = train_folder
self.validation_folder = validation_folder
self.runs_folder = runs_folder
self.start_epoch = start_epoch
self.experiment_name = experiment_name
class HiDDenConfiguration():
"""
The HiDDeN network configuration.
"""
def __init__(self, H: int, W: int, message_length: int,
encoder_blocks: int, encoder_channels: int,
decoder_blocks: int, decoder_channels: int,
use_discriminator: bool,
use_vgg: bool,
discriminator_blocks: int, discriminator_channels: int,
decoder_loss: float,
encoder_loss: float,
adversarial_loss: float,
enable_fp16: bool = False):
self.H = H
self.W = W
self.message_length = message_length
self.encoder_blocks = encoder_blocks
self.encoder_channels = encoder_channels
self.use_discriminator = use_discriminator
self.use_vgg = use_vgg
self.decoder_blocks = decoder_blocks
self.decoder_channels = decoder_channels
self.discriminator_blocks = discriminator_blocks
self.discriminator_channels = discriminator_channels
self.decoder_loss = decoder_loss
self.encoder_loss = encoder_loss
self.adversarial_loss = adversarial_loss
self.enable_fp16 = enable_fp16
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。