Belle II Software development
|
Public Member Functions | |
def | __init__ (self, G_ch=64, G_depth=2, dim_z=128, bottom_width=4, resolution=256, G_kernel_size=3, G_attn="64", n_classes=40, H_base=1, num_G_SVs=1, num_G_SV_itrs=1, attn_type="sa", G_shared=True, shared_dim=128, hier=True, cross_replica=False, mybn=False, G_activation=nn.ReLU(inplace=False), G_lr=5e-5, G_B1=0.0, G_B2=0.999, adam_eps=1e-8, BN_eps=1e-5, SN_eps=1e-12, G_init="ortho", G_mixed_precision=False, G_fp16=False, skip_init=False, no_optim=False, sched_version="default", RRM_prx_G=True, n_head_G=2, G_param="SN", norm_style="bn", **kwargs) |
Constructor. | |
def | init_weights (self) |
Initialize. | |
def | forward (self, z, y) |
forward | |
Public Attributes | |
ch | |
Channel width mulitplier. | |
G_depth | |
Number of resblocks per stage. | |
dim_z | |
Dimensionality of the latent space. | |
bottom_width | |
The initial spatial dimensions. | |
H_base | |
The initial harizontal dimension. | |
resolution | |
Resolution of the output. | |
kernel_size | |
Kernel size? | |
attention | |
Attention? | |
n_classes | |
number of classes, for use in categorical conditional generation | |
G_shared | |
Use shared embeddings? | |
shared_dim | |
Dimensionality of the shared embedding? Unused if not using G_shared. | |
hier | |
Hierarchical latent space? | |
cross_replica | |
Cross replica batchnorm? | |
mybn | |
Use my batchnorm? | |
activation | |
activation | |
init | |
Initialization style. | |
G_param | |
Parameterization style. | |
norm_style | |
Normalization style. | |
BN_eps | |
Epsilon for BatchNorm? | |
SN_eps | |
Epsilon for Spectral Norm? | |
fp16 | |
fp16? | |
arch | |
Architecture dict. | |
RRM_prx_G | |
RRM_prx_G. | |
n_head_G | |
n_head_G | |
which_conv | |
which conv | |
which_linear | |
which linear | |
which_embedding | |
which embedding | |
which_bn | |
which bn | |
shared | |
shared | |
RR_G | |
RRM on proxy embeddings. | |
linear | |
First linear layer. | |
blocks | |
blocks | |
output_layer | |
output layer | |
lr | |
lr | |
B1 | |
B1. | |
B2 | |
B2. | |
adam_eps | |
adam_eps | |
optim | |
optim | |
lr_sched | |
lr sched | |
param_count | |
parameter count | |
def __init__ | ( | self, | |
G_ch = 64 , |
|||
G_depth = 2 , |
|||
dim_z = 128 , |
|||
bottom_width = 4 , |
|||
resolution = 256 , |
|||
G_kernel_size = 3 , |
|||
G_attn = "64" , |
|||
n_classes = 40 , |
|||
H_base = 1 , |
|||
num_G_SVs = 1 , |
|||
num_G_SV_itrs = 1 , |
|||
attn_type = "sa" , |
|||
G_shared = True , |
|||
shared_dim = 128 , |
|||
hier = True , |
|||
cross_replica = False , |
|||
mybn = False , |
|||
G_activation = nn.ReLU(inplace=False) , |
|||
G_lr = 5e-5 , |
|||
G_B1 = 0.0 , |
|||
G_B2 = 0.999 , |
|||
adam_eps = 1e-8 , |
|||
BN_eps = 1e-5 , |
|||
SN_eps = 1e-12 , |
|||
G_init = "ortho" , |
|||
G_mixed_precision = False , |
|||
G_fp16 = False , |
|||
skip_init = False , |
|||
no_optim = False , |
|||
sched_version = "default" , |
|||
RRM_prx_G = True , |
|||
n_head_G = 2 , |
|||
G_param = "SN" , |
|||
norm_style = "bn" , |
|||
** | kwargs | ||
) |
Constructor.
Reimplemented in Model.
Definition at line 1131 of file ieagan.py.
def forward | ( | self, | |
z, | |||
y | |||
) |
forward
Definition at line 1435 of file ieagan.py.
def init_weights | ( | self | ) |
Initialize.
Definition at line 1412 of file ieagan.py.
n_classes |
shared_dim |