1 Star 0 Fork 1

Giter20/HiDDeN

forked from xchu2020/HiDDeN 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
options.py 1.79 KB
一键复制 编辑 原始数据 按行查看 历史
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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/today1010/HiDDeN.git
git@gitee.com:today1010/HiDDeN.git
today1010
HiDDeN
HiDDeN
master

搜索帮助