MCPcopy Create free account

hub / github.com/carpedm20/BEGAN-tensorflow / functions

Functions60 in github.com/carpedm20/BEGAN-tensorflow

↓ 10 callersFunctionsave_image
(tensor, filename, nrow=8, padding=2, normalize=False, scale_each=False)
utils.py:77
↓ 4 callersFunctionadd_argument_group
(name)
config.py:10
↓ 3 callersMethodautoencode
(self, inputs, path, idx=None, x_fake=None)
trainer.py:254
↓ 3 callersFunctioncheck_link
(in_dir, basename, out_dir)
download.py:77
↓ 3 callersFunctiondenorm_img
(norm, data_format)
trainer.py:41
↓ 3 callersMethodgenerate
(self, inputs, root_path=None, path=None, idx=None, save=True)
trainer.py:246
↓ 3 callersMethodget_image_from_loader
(self)
trainer.py:350
↓ 2 callersFunctionGeneratorCNN
(z, hidden_num, output_num, repeat_num, data_format, reuse)
models.py:5
↓ 2 callersMethodencode
(self, inputs)
trainer.py:270
↓ 2 callersFunctionget_conv_shape
(tensor, data_format)
models.py:59
↓ 2 callersFunctionnchw_to_nhwc
(x)
models.py:67
↓ 2 callersFunctionreshape
(x, h, w, c, data_format)
models.py:73
↓ 2 callersFunctionslerp
Code from https://github.com/soumith/dcgan.torch/issues/14
trainer.py:44
↓ 2 callersFunctionto_nhwc
(image, data_format)
trainer.py:21
↓ 2 callersFunctionunboxn
vin = (batch, h, w, depth), returns vout = (batch, n*h, n*w, depth), each pixel is duplicated.
layers.py:9
↓ 2 callersFunctionupscale
(x, scale, data_format)
models.py:89
↓ 1 callersFunctionDiscriminatorCNN
(x, input_channel, z_num, repeat_num, hidden_num, data_format)
models.py:22
↓ 1 callersFunctionadd_splits
(base_path)
download.py:84
↓ 1 callersMethodbuild_model
(self)
trainer.py:169
↓ 1 callersMethodbuild_test_model
(self)
trainer.py:228
↓ 1 callersMethoddecode
(self, z)
trainer.py:275
↓ 1 callersFunctiondownload_celeb_a
(base_path)
download.py:48
↓ 1 callersFunctiondownload_file_from_google_drive
(id, destination)
download.py:14
↓ 1 callersFunctionget_config
()
config.py:61
↓ 1 callersFunctionget_confirm_token
(response)
download.py:27
↓ 1 callersFunctionget_loader
(root, batch_size, scale_size, data_format, split=None, is_grayscale=False, seed=None)
data_loader.py:6
↓ 1 callersFunctionget_time
()
utils.py:42
↓ 1 callersFunctionint_shape
(tensor)
models.py:55
↓ 1 callersMethodinterpolate_G
(self, real_batch, step=0, root_path='.', train_epoch=0)
trainer.py:278
↓ 1 callersFunctionis_image_file
(filename)
folder.py:12
↓ 1 callersFunctionmain
(config)
main.py:9
↓ 1 callersFunctionmake_dataset
(dir)
folder.py:15
↓ 1 callersFunctionmake_grid
Code based on https://github.com/pytorch/vision/blob/master/torchvision/utils.py
utils.py:57
↓ 1 callersFunctionnhwc_to_nchw
(x)
models.py:70
↓ 1 callersFunctionnorm_img
(image, data_format=None)
trainer.py:35
↓ 1 callersFunctionprepare_data_dir
(path = './data')
download.py:72
↓ 1 callersFunctionprepare_dirs_and_logger
(config)
utils.py:11
↓ 1 callersFunctionresize_nearest_neighbor
(x, new_size, data_format)
models.py:80
↓ 1 callersFunctionsave_config
(config)
utils.py:45
↓ 1 callersFunctionsave_response_content
(response, destination, chunk_size=32*1024)
download.py:33
↓ 1 callersMethodtest
(self)
trainer.py:320
↓ 1 callersFunctionto_nchw_numpy
(image)
trainer.py:28
↓ 1 callersMethodtrain
(self)
trainer.py:122
Method__call__
(self, vin)
layers.py:46
Method__call__
(self, vin, carry=0, train=True)
layers.py:67
Method__call__
(self, data, carry, train=True)
layers.py:92
Method__getitem__
(self, index)
folder.py:46
Method__init__
w = (wy, wx), n = (n_in, n_out)
layers.py:33
Method__init__
(self, name, n, width, colors, depth, scales, nl=lambda x, y: x + y, data_format="NCHW")
layers.py:51
Method__init__
(self, name, n, width, colors, depth, scales, nl=lambda x, y: x + y, data_format="NCHW")
layers.py:78
Method__init__
(self, root, transform=None, target_transform=None, loader=default_loader)
folder.py:31
Method__init__
(self, config, data_loader)
trainer.py:53
Method__len__
(self)
folder.py:56
Functionboxn
vin = (batch, h, w, depth), returns vout = (batch, h//n, w//n, depth), each pixel is averaged.
layers.py:18
Functiondefault_loader
(path)
folder.py:26
Methodinterpolate_D
(self, real1_batch, real2_batch, step=0, root_path=".")
trainer.py:305
Functionnext
(loader)
trainer.py:18
Functionrank
(array)
utils.py:54
Functionstr2bool
(v)
config.py:4
Functionunzip
(filepath)
download.py:41