MCPcopy Create free account

hub / github.com/JunlinHan/DCLGAN / functions

Functions313 in github.com/JunlinHan/DCLGAN

↓ 1 callersFunctionis_image_file
(filename)
data/image_folder.py:20
↓ 1 callersMethodload_data
(self)
data/__init__.py:86
↓ 1 callersMethodload_networks
Load all the networks from the disk. Parameters: epoch (int) -- current epoch; used in the file name '%s_net_%s.pth' % (epoch, na
models/base_model.py:196
↓ 1 callersMethodoptimize_parameters
(self)
models/dcl_model.py:129
↓ 1 callersMethodplot_current_losses
display the current losses on visdom display: dictionary of error labels and values Parameters: epoch (int) -- current
util/visualizer.py:191
↓ 1 callersMethodprint_current_losses
print current losses on console; also save the losses to the disk Parameters: epoch (int) -- current epoch iters (int
util/visualizer.py:226
↓ 1 callersMethodprint_networks
Print the total number of parameters in the network and (if verbose) network architecture Parameters: verbose (bool) -- if verbos
models/base_model.py:226
↓ 1 callersMethodprint_options
Print and save options It will print both current options and default values(if different). It will save options into a text file / [
options/base_options.py:112
↓ 1 callersMethodreset
Reset the self.saved status
util/visualizer.py:95
↓ 1 callersFunctionsave_images
Save images to the disk. Parameters: webpage (the HTML class) -- the HTML webpage class that stores these imaegs (see html.py for more de
util/visualizer.py:15
↓ 1 callersMethodset_epoch
(self, epoch)
data/__init__.py:83
↓ 1 callersMethodset_input
Unpack input data from the dataloader and perform necessary pre-processing steps. Parameters: input (dict): include the data itsel
models/simdcl_model.py:169
↓ 1 callersMethodset_input
Unpack input data from the dataloader and perform necessary pre-processing steps. Parameters: input (dict): include the data itsel
models/cut_model.py:125
↓ 1 callersMethodset_input
Unpack input data from the dataloader and perform necessary pre-processing steps. Parameters: input (dict): include the data itsel
models/fastcut_model.py:129
↓ 1 callersFunctiontensor2im
Converts a Tensor array into a numpy image array. Parameters: input_image (tensor) -- the input image tensor array imtype (type)
util/util.py:44
↓ 1 callersMethodtest
Forward function used in test time. This function wraps <forward> function in no_grad() so we don't save intermediate steps for backprop
models/base_model.py:119
↓ 1 callersMethodupdate_learning_rate
Update learning rates for all the networks; called at the end of every epoch
models/base_model.py:137
↓ 1 callersMethodupdate_moving_average
(self, key, x)
models/networks.py:545
↓ 1 callersFunctionupfirdn2d_native
( input, kernel, up_x, up_y, down_x, down_y, pad_x0, pad_x1, pad_y0, pad_y1 )
models/stylegan_networks.py:37
Method__call__
Calculate loss given Discriminator's output and grount truth labels. Parameters: prediction (tensor) - - tpyically the prediction
models/networks.py:389
Method__getitem__
Return a data point and its metadata information. Parameters: index - - a random integer for data indexing Returns:
data/base_dataset.py:52
Method__getitem__
Return a data point and its metadata information. Parameters: index (int) -- a random integer for data indexing Ret
data/singleimage_dataset.py:67
Method__getitem__
Return a data point and its metadata information. Parameters: index (int) -- a random integer for data indexing Ret
data/unaligned_dataset.py:40
Method__getitem__
(self, index)
data/image_folder.py:55
Method__getitem__
Return a data point and its metadata information. Parameters: index -- a random integer for data indexing Returns:
data/template_dataset.py:54
Method__getitem__
Return a data point and its metadata information. Parameters: index - - a random integer for data indexing Returns a dic
data/single_dataset.py:23
Method__init__
Initialize the class; save the options in the class Parameters: opt (Option class)-- stores all the experiment flags; needs to be
data/base_dataset.py:23
Method__init__
Initialize this class Step 1: create a dataset instance given the name [dataset_mode] Step 2: create a multi-threaded data loader.
data/__init__.py:65
Method__init__
Initialize this dataset class. Parameters: opt (Option class) -- stores all the experiment flags; needs to be a subclass of BaseO
data/singleimage_dataset.py:21
Method__init__
Initialize this dataset class. Parameters: opt (Option class) -- stores all the experiment flags; needs to be a subclass of BaseO
data/unaligned_dataset.py:20
Method__init__
(self, root, transform=None, return_paths=False, loader=default_loader)
data/image_folder.py:42
Method__init__
Initialize this dataset class. Parameters: opt (Option class) -- stores all the experiment flags; needs to be a subclass of BaseO
data/template_dataset.py:36
Method__init__
Initialize this dataset class. Parameters: opt (Option class) -- stores all the experiment flags; needs to be a subclass of BaseO
data/single_dataset.py:12
Method__init__
Reset the class; indicates the class hasn't been initailized
options/base_options.py:16
Method__init__
(self, opt)
models/dcl_model.py:49
Method__init__
(self, opt)
models/simdcl_model.py:51
Method__init__
Initialize the CycleGAN class. Parameters: opt (Option class)-- stores all the experiment flags; needs to be a subclass of BaseO
models/cycle_gan_model.py:42
Method__init__
(self, opt)
models/patchnce.py:54
Method__init__
Initialize the BaseModel class. Parameters: opt (Option class)-- stores all the experiment flags; needs to be a subclass of BaseO
models/base_model.py:18
Method__init__
(self, opt)
models/cut_model.py:46
Method__init__
(self, channels, pad_type='reflect', filt_size=3, stride=2, pad_off=0)
models/networks.py:38
Method__init__
(self, scale_factor, mode='nearest')
models/networks.py:64
Method__init__
(self, channels, pad_type='repl', filt_size=4, stride=2)
models/networks.py:74
Method__init__
(self, power=2)
models/networks.py:462
Method__init__
(self)
models/networks.py:473
Method__init__
(self)
models/networks.py:484
Method__init__
(self, in_layer=4, gpu_ids=[], nc=256, patch_num=256, dim=64, init_type='normal', init_gain=0.02)
models/networks.py:496
Method__init__
(self, init_type='normal', init_gain=0.02, gpu_ids=[])
models/networks.py:521
Method__init__
(self, use_mlp=False, init_type='normal', init_gain=0.02, nc=256, gpu_ids=[])
models/networks.py:567
Method__init__
(self, input_nc, output_nc, nz, num_downs, n_res, ngf=64, norm=None, nl_layer=None)
models/networks.py:619
Method__init__
(self, input_nc, output_nc=1, nef=64, n_layers=4, norm=None, nl_layer=None, vae=False)
models/networks.py:650
Method__init__
(self, n_downsample, input_dim, dim, style_dim, norm, activ, vae=False)
models/networks.py:662
Method__init__
(self, n_downsample, n_res, input_dim, dim, norm, activ, pad_type='zero')
models/networks.py:694
Method__init__
(self, n_upsample, n_res, dim, output_dim, norm='batch', activ='relu', pad_type='zero', nz=0)
models/networks.py:722
Method__init__
(self, n_upsample, n_res, dim, output_dim, norm='batch', activ='relu', pad_type='zero', nz=0)
models/networks.py:750
Method__init__
(self, num_blocks, dim, norm='inst', activation='relu', pad_type='zero', nz=0)
models/networks.py:780
Method__init__
(self, dim, norm='inst', activation='relu', pad_type='zero', nz=0)
models/networks.py:802
Method__init__
(self, input_dim, output_dim, kernel_size, stride, padding=0, norm='none', activation='relu',
models/networks.py:818
Method__init__
(self, input_dim, output_dim, norm='none', activation='relu')
models/networks.py:872
Method__init__
(self, num_features, eps=1e-5, affine=True)
models/networks.py:921
Method__init__
Construct a Resnet-based generator Parameters: input_nc (int) -- the number of channels in input images output_n
models/networks.py:949
Method__init__
Construct a Resnet-based decoder Parameters: input_nc (int) -- the number of channels in input images output_nc
models/networks.py:1045
Method__init__
Construct a Resnet-based encoder Parameters: input_nc (int) -- the number of channels in input images output_nc
models/networks.py:1102
Method__init__
Initialize the Resnet block A resnet block is a conv block with skip connections We construct a conv block with build_conv_block func
models/networks.py:1154
Method__init__
Construct a Unet generator Parameters: input_nc (int) -- the number of channels in input images output_nc (int) -- th
models/networks.py:1214
Method__init__
Construct a Unet submodule with skip connections. Parameters: outer_nc (int) -- the number of filters in the outer conv layer
models/networks.py:1249
Method__init__
Construct a PatchGAN discriminator Parameters: input_nc (int) -- the number of channels in input images ndf (int)
models/networks.py:1316
Method__init__
Construct a 1x1 PatchGAN discriminator Parameters: input_nc (int) -- the number of channels in input images ndf (int
models/networks.py:1374
Method__init__
(self, input_nc, ndf=64, n_layers=3, norm_layer=nn.BatchNorm2d, no_antialias=False)
models/networks.py:1406
Method__init__
(self, num_groups)
models/networks.py:1420
Method__init__
Initialize this model class. Parameters: opt -- training/test options A few things can be done here. - (required
models/template_model.py:41
Method__init__
(self, channel, negative_slope=0.2, scale=2 ** 0.5)
models/stylegan_networks.py:22
Method__init__
(self)
models/stylegan_networks.py:79
Method__init__
(self, kernel, factor=2)
models/stylegan_networks.py:98
Method__init__
(self, kernel, factor=2)
models/stylegan_networks.py:119
Method__init__
( self, in_channel, out_channel, kernel_size, stride=1, padding=0, bias=True )
models/stylegan_networks.py:159
Method__init__
( self, in_dim, out_dim, bias=True, bias_init=0, lr_mul=1, activation=None )
models/stylegan_networks.py:199
Method__init__
(self, negative_slope=0.2)
models/stylegan_networks.py:236
Method__init__
( self, in_channel, out_channel, kernel_size, style_dim, demod
models/stylegan_networks.py:248
Method__init__
(self)
models/stylegan_networks.py:351
Method__init__
(self, channel, size=4)
models/stylegan_networks.py:365
Method__init__
( self, in_channel, out_channel, kernel_size, style_dim=None,
models/stylegan_networks.py:378
Method__init__
(self, in_channel, style_dim, upsample=True, blur_kernel=[1, 3, 3, 1])
models/stylegan_networks.py:418
Method__init__
( self, size, style_dim, n_mlp, channel_multiplier=2, blur_ker
models/stylegan_networks.py:440
Method__init__
( self, in_channel, out_channel, kernel_size, downsample=False,
models/stylegan_networks.py:622
Method__init__
(self, in_channel, out_channel, blur_kernel=[1, 3, 3, 1], downsample=True, skip_gain=1.0)
models/stylegan_networks.py:671
Method__init__
(self, input_nc, ndf=64, n_layers=3, no_antialias=False, size=None, opt=None)
models/stylegan_networks.py:696
Method__init__
(self, input_nc, output_nc, ngf=64, use_dropout=False, n_blocks=6, padding_type='reflect', no_antialias=False,
models/stylegan_networks.py:798
Method__init__
(self, input_nc, output_nc, ngf=64, use_dropout=False, n_blocks=6, padding_type='reflect', no_antialias=False,
models/stylegan_networks.py:852
Method__init__
(self, input_nc, output_nc, ngf=64, use_dropout=False, n_blocks=6, padding_type='reflect', no_antialias=False,
models/stylegan_networks.py:898
Method__init__
(self, opt)
models/fastcut_model.py:50
Method__init__
(self, technique='cyclegan', verbose=True)
util/get_data.py:27
Method__init__
Initialize the HTML classes Parameters: web_dir (str) -- a directory that stores the webpage. HTML file will be created at <web_d
util/html.py:14
Method__init__
Initialize the Visualizer class Parameters: opt -- stores all the experiment flags; needs to be a subclass of BaseOptions
util/visualizer.py:52
Method__init__
Initialize the ImagePool class Parameters: pool_size (int) -- the size of image buffer, if pool_size=0, no buffer will be created
util/image_pool.py:12
Method__iter__
Return a batch of data
data/__init__.py:93
Method__len__
Return the total number of images in the dataset.
data/base_dataset.py:47
Method__len__
Return the number of data in the dataset
data/__init__.py:89
Method__len__
Let's pretend the single image contains 100,000 crops for convenience.
data/singleimage_dataset.py:105
Method__len__
Return the total number of images in the dataset. As we have two datasets with potentially different number of images, we take a maxi
data/unaligned_dataset.py:73
← previousnext →101–200 of 313, ranked by callers