Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ajbrock/BigGAN-PyTorch
/ functions
Functions
231 in github.com/ajbrock/BigGAN-PyTorch
⨍
Functions
231
◇
Types & classes
52
↓ 1 callers
Method
run_master
Main entry for the master device in each forward pass. The messages were first collected from each devices (including the master devi
sync_batchnorm/comm.py:102
↓ 1 callers
Method
run_slave
(self, msg)
sync_batchnorm/comm.py:49
↓ 1 callers
Method
shortcut
(self, x)
layers.py:431
↓ 1 callers
Method
shortcut
(self, x)
BigGANdeep.py:308
↓ 1 callers
Function
sqrt_newton_schulz
(A, numIters, dtype=None)
inception_utils.py:124
↓ 1 callers
Function
torch_calculate_frechet_distance
Pytorch implementation of the Frechet Distance. Taken from https://github.com/bioinf-jku/TTUR The Frechet distance between two multivariate Gaussi
inception_utils.py:200
↓ 1 callers
Function
torch_cov
Estimate a covariance matrix given data. Covariance indicates the level to which two variables vary together. If we examine N-dimensional sam
inception_utils.py:89
↓ 1 callers
Function
train
(x, y)
train_fns.py:15
Function
GAN_training_function
(G, D, GD, z_, y_, ema, state_dict, config)
train_fns.py:20
Method
__call__
Args: img (PIL Image): Image to be cropped. Returns: PIL Image: Cropped image.
utils.py:441
Method
__call__
Args: img (PIL Image): Image to be cropped. Returns: PIL Image: Cropped image.
utils.py:460
Method
__getitem__
Args: index (int): Index Returns: tuple: (image, target) where target is class_index of the target class.
datasets.py:143
Method
__getitem__
Args: index (int): Index Returns: tuple: (image, target) where target is class_index of the target class.
datasets.py:208
Method
__getitem__
Args: index (int): Index Returns: tuple: (image, target) where target is index of the target class.
datasets.py:326
Method
__getstate__
(self)
sync_batchnorm/comm.py:78
Method
__init__
(self, G_ch=64, dim_z=128, bottom_width=4, resolution=128, G_kernel_size=3, G_attn='64', n_clas
BigGAN.py:55
Method
__init__
(self, D_ch=64, D_wide=True, resolution=128, D_kernel_size=3, D_attn='64', n_classes=1000,
BigGAN.py:285
Method
__init__
(self, in_channels, out_channels, kernel_size, stride=1, padding=0, dilation=1, groups=1, bias=Tr
layers.py:104
Method
__init__
(self, in_features, out_features, bias=True, num_svs=1, num_itrs=1, eps=1e-12)
layers.py:117
Method
__init__
(self, num_embeddings, embedding_dim, padding_idx=None, max_norm=None, norm_type=2, scale_grad
layers.py:129
Method
__init__
(self, ch, which_conv=SNConv2d, name='attention')
layers.py:145
Method
__init__
(self, num_channels, eps=1e-5, momentum=0.1)
layers.py:213
Method
__init__
(self, output_size, input_size, which_linear, eps=1e-5, momentum=0.1, cross_replica=False, mybn
layers.py:279
Method
__init__
(self, output_size, eps=1e-5, momentum=0.1, cross_replica=False, mybn=False)
layers.py:334
Method
__init__
(self, in_channels, out_channels, which_conv=nn.Conv2d, which_bn=bn, activation=None,
layers.py:376
Method
__init__
(self, in_channels, out_channels, which_conv=SNConv2d, wide=True, preactivation=False, activati
layers.py:413
Method
__init__
(self, data_source, num_epochs, start_itr=0, batch_size=128)
utils.py:490
Method
__init__
(self, fname, reinitialize=False)
utils.py:745
Method
__init__
(self, fname, reinitialize=False, logstyle='%3.3f')
utils.py:772
Method
__init__
(self, params, lr=1e-3, betas=(0.9, 0.999), eps=1e-8,weight_decay=0)
utils.py:1129
Method
__init__
(self, in_channels, out_channels, which_conv=nn.Conv2d, which_bn=layers.bn, activation=None,
BigGANdeep.py:24
Method
__init__
(self, G_ch=64, G_depth=2, dim_z=128, bottom_width=4, resolution=128, G_kernel_size=3, G_attn='
BigGANdeep.py:97
Method
__init__
(self, in_channels, out_channels, which_conv=layers.SNConv2d, wide=True, preactivation=True, ac
BigGANdeep.py:284
Method
__init__
(self, D_ch=64, D_wide=True, D_depth=2, resolution=128, D_kernel_size=3, D_attn='64', n_classes
BigGANdeep.py:361
Method
__init__
(self, root, transform=None, target_transform=None, loader=default_loader, load_in_mem=False,
datasets.py:107
Method
__init__
(self, root, transform=None, target_transform=None, load_in_mem=False, train=True,download=Fal
datasets.py:185
Method
__init__
(self, root, train=True, transform=None, target_transform=None, download=True, validat
datasets.py:245
Method
__init__
(self, net)
inception_utils.py:28
Method
__init__
(self, state_dict, tf_weights, resolution=256, load_ema=True, verbose=False)
TFHub/converter.py:97
Method
__init__
(self, module, name='weight', power_iterations=1)
TFHub/biggan_v1.py:28
Method
__init__
(self, in_dim, activation=F.relu)
TFHub/biggan_v1.py:84
Method
__init__
(self, num_features, num_classes, eps=1e-4, momentum=0.1)
TFHub/biggan_v1.py:116
Method
__init__
(self, code_dim=120, n_class=1000, chn=96, debug=False)
TFHub/biggan_v1.py:198
Method
__init__
(self, code_dim=140, n_class=1000, chn=96, debug=False)
TFHub/biggan_v1.py:245
Method
__init__
(self, code_dim=128, n_class=1000, chn=96, debug=False)
TFHub/biggan_v1.py:291
Method
__init__
(self, n_class=1000, chn=96, debug=False)
TFHub/biggan_v1.py:340
Method
__init__
(self)
sync_batchnorm/comm.py:21
Method
__init__
(self, num_features, eps=1e-5, momentum=0.1)
sync_batchnorm/batchnorm_reimpl.py:27
Method
__init__
(self, num_features, eps=1e-5, momentum=0.1, affine=True)
sync_batchnorm/batchnorm.py:39
Method
__iter__
(self)
utils.py:501
Method
__len__
(self)
utils.py:519
Method
__len__
(self)
datasets.py:238
Method
__len__
(self)
datasets.py:347
Method
__repr__
(self)
utils.py:450
Method
__repr__
(self)
utils.py:475
Method
__repr__
(self)
datasets.py:169
Method
__setstate__
(self, state)
sync_batchnorm/comm.py:81
Method
_check_input_dim
(self, input)
sync_batchnorm/batchnorm.py:281
Method
_check_input_dim
(self, input)
sync_batchnorm/batchnorm.py:345
Method
_data_parallel_master
Reduce the sum and square-sum, compute the statistics, and broadcast it.
sync_batchnorm/batchnorm.py:120
Function
_progress
(count, block_size, total_size)
inception_tf13.py:84
Function
accumulate_standing_stats
(net, z, y, nclasses, num_accumulations=16)
utils.py:1108
Function
add_sample_parser
(parser)
utils.py:366
Method
assertTensorClose
(self, x, y)
sync_batchnorm/unittest.py:16
Function
count_parameters
(module)
utils.py:1041
Function
default_loader
(path)
datasets.py:74
Function
default_ortho
(model, strength=1e-4, blacklist=[])
utils.py:661
Function
denorm
(x)
TFHub/biggan_v1.py:22
Function
dummy_training_function
()
train_fns.py:14
Method
extra_repr
(self)
layers.py:326
Method
forward
(self, z, y)
BigGAN.py:230
Method
forward
(self, x, y=None)
BigGAN.py:391
Method
forward
(self, z, gy, x=None, dy=None, train_G=False, return_G_z=False, split_D=False)
BigGAN.py:414
Method
forward
(self, input)
layers.py:55
Method
forward
(self, x)
layers.py:110
Method
forward
(self, x)
layers.py:121
Method
forward
(self, x)
layers.py:137
Method
forward
(self, x, y=None)
layers.py:156
Method
forward
(self, x, gain, bias)
layers.py:234
Method
forward
(self, x, y)
layers.py:306
Method
forward
(self, x, y=None)
layers.py:359
Method
forward
(self, x, y)
layers.py:398
Method
forward
(self, x)
layers.py:444
Method
forward
(self, x, y)
BigGANdeep.py:48
Method
forward
(self, z, y)
BigGANdeep.py:265
Method
forward
(self, x)
BigGANdeep.py:315
Method
forward
(self, x, y=None)
BigGANdeep.py:475
Method
forward
(self, z, gy, x=None, dy=None, train_G=False, return_G_z=False, split_D=False)
BigGANdeep.py:498
Method
forward
(self, x)
inception_utils.py:35
Method
forward
(self, *args)
TFHub/biggan_v1.py:76
Method
forward
(self, x)
TFHub/biggan_v1.py:98
Method
forward
(self, x, y)
TFHub/biggan_v1.py:123
Method
forward
(self, input, class_id)
TFHub/biggan_v1.py:226
Method
forward
(self, input, class_id)
TFHub/biggan_v1.py:272
Method
forward
(self, input, class_id)
TFHub/biggan_v1.py:321
Method
forward
(self, input, class_id)
TFHub/biggan_v1.py:376
Method
forward
(self, input_)
sync_batchnorm/batchnorm_reimpl.py:48
Method
forward
(self, input, gain=None, bias=None)
sync_batchnorm/batchnorm.py:48
Function
get_SVs
(net, prefix)
utils.py:968
Function
get_data_loaders
(dataset, data_root=None, augment=False, batch_size=64, num_workers=8, shuffle=True, loa
utils.py:524
← previous
next →
101–200 of 231, ranked by callers