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
↓ 27 callers
Method
load_tf_tensor
(self, prefix, var, device='0')
TFHub/converter.py:205
↓ 15 callers
Method
load
(self)
TFHub/converter.py:106
↓ 13 callers
Method
to
(self, *args, **kwargs)
utils.py:1078
↓ 12 callers
Method
__init__
(self, num_svs, num_itrs, num_outputs, transpose=False, eps=1e-12)
layers.py:61
↓ 12 callers
Function
join_strings
(base_string, strings)
utils.py:682
↓ 9 callers
Method
sample_
(self)
utils.py:1069
↓ 8 callers
Method
load_snconv
(self, name_pth, name_tf, bias=True)
TFHub/converter.py:149
↓ 7 callers
Method
__init__
( self, in_channel, out_channel, kernel_size=[3, 3], padding=1, stride=1, n_class=
TFHub/biggan_v1.py:132
↓ 7 callers
Function
_unsqueeze_ft
add new dementions at the front and the tail
sync_batchnorm/batchnorm.py:29
↓ 7 callers
Method
log
(self, itr, **kwargs)
utils.py:793
↓ 6 callers
Method
load_state_dict
(self, state_dict)
utils.py:1136
↓ 4 callers
Method
__init__
(self, G, D)
BigGANdeep.py:493
↓ 4 callers
Function
l2normalize
(v, eps=1e-4)
TFHub/biggan_v1.py:12
↓ 3 callers
Method
W_
(self)
layers.py:87
↓ 3 callers
Function
fused_bn
(x, mean, var, gain=None, bias=None, eps=1e-5)
layers.py:173
↓ 3 callers
Method
get
(self)
sync_batchnorm/comm.py:32
↓ 3 callers
Method
init_distribution
(self, dist_type, **kwargs)
utils.py:1061
↓ 3 callers
Method
put
(self, result)
sync_batchnorm/comm.py:26
↓ 3 callers
Function
sample
(G, z_, y_, config)
utils.py:865
↓ 3 callers
Function
sample_1hot
(batch_size, num_classes, device='cuda')
utils.py:1047
↓ 2 callers
Method
__init__
(self, G, D)
BigGAN.py:409
↓ 2 callers
Method
_check_input_dim
(self, input)
sync_batchnorm/batchnorm.py:218
↓ 2 callers
Function
_sum_ft
sum over the first and last dimention
sync_batchnorm/batchnorm.py:24
↓ 2 callers
Function
convert_biggan
(resolution, weight_dir, redownload=False, no_ema=False, verbose=False)
TFHub/converter.py:310
↓ 2 callers
Function
execute_replication_callbacks
Execute an replication callback `__data_parallel_replicate__` on each module created by original replication. The callback will be invoked w
sync_batchnorm/replicate.py:27
↓ 2 callers
Function
generate_sample
(G, z_dim, batch_size, filename, parallel=False)
TFHub/converter.py:334
↓ 2 callers
Function
get_inception_metrics
(sample, num_inception_images, num_splits=10, prints=True, use_torch=True)
inception_utils.py:283
↓ 2 callers
Function
get_metrics
()
sample.py:144
↓ 2 callers
Function
gram_schmidt
(x, ys)
layers.py:21
↓ 2 callers
Function
interp
(x0, x1, num_midpoints)
utils.py:911
↓ 2 callers
Method
load_HyperBN
(self, name_pth, name_tf)
TFHub/converter.py:178
↓ 2 callers
Function
pil_loader
(path)
datasets.py:58
↓ 2 callers
Method
step
Performs a single optimization step. Arguments: closure (callable, optional): A closure that reevaluates the model and returns the l
utils.py:1144
↓ 2 callers
Method
update
(self, itr=None)
utils.py:630
↓ 1 callers
Function
D_arch
(ch=64, attention='64',ksize='333333', dilation='111111')
BigGAN.py:255
↓ 1 callers
Function
D_arch
(ch=64, attention='64',ksize='333333', dilation='111111')
BigGANdeep.py:331
↓ 1 callers
Function
G_arch
(ch=64, attention='64', ksize='333333', dilation='111111')
BigGAN.py:19
↓ 1 callers
Function
G_arch
(ch=64, attention='64', ksize='333333', dilation='111111')
BigGANdeep.py:67
↓ 1 callers
Method
__data_parallel_replicate__
(self, ctx, copy_id)
sync_batchnorm/batchnorm.py:110
↓ 1 callers
Method
__init__
(self, source, target, decay=0.9999, start_itr=0)
utils.py:615
↓ 1 callers
Method
__init__
Args: master_callback: a callback to be invoked after having collected messages from slave devices.
sync_batchnorm/comm.py:67
↓ 1 callers
Method
__len__
(self)
datasets.py:166
↓ 1 callers
Method
_compute_mean_std
Compute the mean and standard-deviation with sum and square-sum. This method also maintains the moving average on the master device.
sync_batchnorm/batchnorm.py:147
↓ 1 callers
Function
_init_inception
()
inception_tf13.py:77
↓ 1 callers
Method
_made_params
(self)
TFHub/biggan_v1.py:50
↓ 1 callers
Method
_make_params
(self)
TFHub/biggan_v1.py:59
↓ 1 callers
Method
_update_u_v
(self)
TFHub/biggan_v1.py:36
↓ 1 callers
Function
accimage_loader
(path)
datasets.py:65
↓ 1 callers
Function
accumulate_inception_activations
(sample, net, num_inception_images=50000)
inception_utils.py:248
↓ 1 callers
Function
calculate_inception_score
(pred, num_splits=10)
inception_utils.py:235
↓ 1 callers
Method
conv
(in_channel, out_channel, downsample=True)
TFHub/biggan_v1.py:343
↓ 1 callers
Function
convert_from_v1
(hub_dict, resolution=128)
TFHub/converter.py:210
↓ 1 callers
Function
dump_tfhub_to_hdf5
Loads TFHub weights and saves them to intermediate HDF5 file. Args: module_path ([Path-like]): Path to TFHub module. hdf5_path ([Path-like]
TFHub/converter.py:47
↓ 1 callers
Function
find_classes
(dir)
datasets.py:33
↓ 1 callers
Method
forward
(self, input, condition=None)
TFHub/biggan_v1.py:168
↓ 1 callers
Function
get_config
(resolution)
TFHub/converter.py:289
↓ 1 callers
Function
get_inception_score
(images, splits=10)
inception_tf13.py:48
↓ 1 callers
Function
groupnorm
(x, norm_style)
layers.py:259
↓ 1 callers
Function
hashname
(name)
utils.py:1025
↓ 1 callers
Method
init_weights
(self)
BigGAN.py:209
↓ 1 callers
Method
init_weights
(self)
BigGAN.py:374
↓ 1 callers
Method
init_weights
(self)
BigGANdeep.py:243
↓ 1 callers
Method
init_weights
(self)
BigGANdeep.py:458
↓ 1 callers
Function
initiate_standing_stats
(net)
utils.py:1101
↓ 1 callers
Function
is_image_file
Checks if a file is an image. Args: filename (string): path to a file Returns: bool: True if the filename ends with a
datasets.py:20
↓ 1 callers
Method
load_GBlock
(self, name_pth, name_tf)
TFHub/converter.py:140
↓ 1 callers
Method
load_HyperBNs
(self, name_pth, name_tf)
TFHub/converter.py:166
↓ 1 callers
Method
load_ScaledCrossReplicaBNs
(self, name_pth, name_tf)
TFHub/converter.py:170
↓ 1 callers
Method
load_attention
(self, name_pth, name_tf)
TFHub/converter.py:197
↓ 1 callers
Method
load_colorize
(self, name_pth, name_tf)
TFHub/converter.py:137
↓ 1 callers
Method
load_convs
(self, name_pth, name_tf)
TFHub/converter.py:144
↓ 1 callers
Method
load_generator
(self)
TFHub/converter.py:110
↓ 1 callers
Function
load_inception_net
(parallel=False)
inception_utils.py:261
↓ 1 callers
Method
load_linear
(self, name_pth, name_tf, bias=True)
TFHub/converter.py:125
↓ 1 callers
Method
load_snlinear
(self, name_pth, name_tf, bias=True)
TFHub/converter.py:130
↓ 1 callers
Function
main
()
train.py:219
↓ 1 callers
Function
main
()
sample.py:174
↓ 1 callers
Function
main
()
calculate_inception_moments.py:82
↓ 1 callers
Function
main
()
make_hdf5.py:102
↓ 1 callers
Function
main
()
inception_tf13.py:130
↓ 1 callers
Function
make_dataset
(dir, class_to_idx)
datasets.py:40
↓ 1 callers
Function
manual_bn
(x, gain=None, bias=None, return_mean_var=False, eps=1e-5)
layers.py:191
↓ 1 callers
Function
numpy_calculate_frechet_distance
Numpy implementation of the Frechet Distance. Taken from https://github.com/bioinf-jku/TTUR The Frechet distance between two multivariate Gaussian
inception_utils.py:144
↓ 1 callers
Function
parse_args
()
TFHub/converter.py:348
↓ 1 callers
Function
patch_replication_callback
Monkey-patch an existing `DataParallel` object. Add the replication callback. Useful when you have customized `DataParallel` implementation.
sync_batchnorm/replicate.py:70
↓ 1 callers
Function
power_iteration
(W, u_, update=True, eps=1e-12)
layers.py:28
↓ 1 callers
Function
prepare_parser
()
calculate_inception_moments.py:19
↓ 1 callers
Function
prepare_parser
()
make_hdf5.py:20
↓ 1 callers
Function
prepare_parser
()
inception_tf13.py:29
↓ 1 callers
Function
proj
(x, y)
layers.py:16
↓ 1 callers
Method
register_slave
Register an slave device. Args: identifier: an identifier, usually is the device id. Returns: a `SlavePipe` obj
sync_batchnorm/comm.py:84
↓ 1 callers
Method
reinit
(self, item)
utils.py:781
↓ 1 callers
Method
reset_parameters
(self)
sync_batchnorm/batchnorm_reimpl.py:43
↓ 1 callers
Method
reset_running_stats
(self)
sync_batchnorm/batchnorm_reimpl.py:39
↓ 1 callers
Method
reset_stats
(self)
layers.py:229
↓ 1 callers
Function
run
(config)
train.py:34
↓ 1 callers
Function
run
(config)
sample.py:24
↓ 1 callers
Function
run
(config)
calculate_inception_moments.py:49
↓ 1 callers
Function
run
(config)
make_hdf5.py:45
↓ 1 callers
Function
run
(config)
inception_tf13.py:44
next →
1–100 of 231, ranked by callers