MCPcopy Create free account

hub / github.com/NVlabs/imaginaire / functions

Functions1,077 in github.com/NVlabs/imaginaire

Method_get_conv_layer
(self, in_channels, out_channels, kernel_size, stride, padding, dilation, groups, bias
imaginaire/layers/conv.py:230
Method_get_conv_layer
(self, in_channels, out_channels, kernel_size, stride, padding, dilation, groups, bias
imaginaire/layers/conv.py:457
Method_get_conv_layer
(self, in_channels, out_channels, kernel_size, stride, padding, dilation, groups, bias
imaginaire/layers/conv.py:481
Method_get_conv_layer
(self, in_channels, out_channels, kernel_size, stride, padding, dilation, groups, bias
imaginaire/layers/conv.py:719
Method_get_conv_layer
(self, in_channels, out_channels, kernel_size, stride, padding, dilation, groups, bias
imaginaire/layers/conv.py:911
Method_get_custom_gen_losses
r"""All other custom generator losses go here. Args: data_t (dict): Training data at the current time t. net_G_output
imaginaire/trainers/wc_vid2vid.py:280
Method_get_difference
r"""Get difference between two lists of tensors or two tensors. Args: a: list of tensors or tensor b: lis
imaginaire/trainers/base.py:593
Function_get_msid
Compute the msid score between two samples, x and y Arguments: x: x samples y: y samples ts: temperature values
imaginaire/evaluation/msid.py:17
Method_get_stride_blur
(self)
imaginaire/layers/residual.py:906
Method_get_visualizations
r"""Compute visualization image. Args: data (dict): The current batch.
imaginaire/trainers/funit.py:128
Method_get_visualizations
r"""Compute visualization image. Args: data (dict): The current batch.
imaginaire/trainers/unit.py:153
Method_get_visualizations
r"""Compute visualization image. We will first recalculate the batch statistics for the moving average model. Args: data
imaginaire/trainers/spade.py:156
Method_get_visualizations
r"""Compute visualization image. Args: data (dict): The current batch.
imaginaire/trainers/munit.py:252
Method_get_visualizations
r"""Compute visualization image. Args: data (dict): The current batch.
imaginaire/trainers/gancraft.py:254
Function_getattr
r"""Get attribute.
imaginaire/config.py:219
Method_getitem
r"""Gets selected files. Args: index (int): Index into dataset. Returns: data (dict): Dict with all chosen da
imaginaire/datasets/paired_few_shot_videos.py:272
Method_init_loss
r"""Initialize training loss terms. In pix2pixHD, there are three loss terms: GAN loss, feature matching loss, and perceptual loss. A
imaginaire/trainers/pix2pixHD.py:49
Method_init_loss
r"""Initialize loss terms. In FUNIT, we have several loss terms including the GAN loss, the image reconstruction loss, the feature mat
imaginaire/trainers/funit.py:44
Method_init_loss
r"""Initialize training loss terms. In vid2vid, in addition to the GAN loss, feature matching loss, and perceptual loss used in pix2pi
imaginaire/trainers/vid2vid.py:85
Method_init_loss
r"""Initialize loss terms. In UNIT, we have several loss terms including the GAN loss, the image reconstruction loss, the cycle recons
imaginaire/trainers/unit.py:36
Method_init_loss
r"""Initialize loss terms. Args: cfg (obj): Global configuration.
imaginaire/trainers/spade.py:55
Method_init_loss
r"""Initialize loss terms. In MUNIT, we have several loss terms including the GAN loss, the image reconstruction loss, the content rec
imaginaire/trainers/munit.py:40
Method_init_loss
r"""Initialize loss terms. Args: cfg (obj): Global configuration.
imaginaire/trainers/gancraft.py:102
Method_pre_save_checkpoint
r"""Implement the things you want to do before saving the checkpoints. For example, you can compute the K-mean features (pix2pixHD) before
imaginaire/trainers/pix2pixHD.py:158
Method_sample_keys
r"""Gets files to load for this sample. Args: index (int): Index in [0, len(dataset)]. Returns: key (dict):
imaginaire/datasets/paired_images.py:46
Function_slq
Compute the trace of matrix exponential Arguments: A: square matrix in trace(exp(A)) m: number of Lanczos steps nite
imaginaire/evaluation/msid.py:225
Function_slq_ts
Compute the trace of matrix exponential Arguments: A: square matrix in trace(exp(-t*A)), where t is temperature m: number of
imaginaire/evaluation/msid.py:246
Method_start_of_epoch
r"""Things to do before an epoch. When current_epoch is smaller than $(single_frame_epoch), we only train a single frame and the generator is
imaginaire/trainers/vid2vid.py:157
Method_start_of_epoch
(self, current_epoch)
imaginaire/trainers/gancraft.py:137
Method_start_of_iteration
r"""Things to do before an iteration. Args: data (dict): Data used for the current iteration. current_iteration (int)
imaginaire/trainers/pix2pixHD.py:74
Method_start_of_iteration
r"""Things to do before an iteration. Args: data (dict): Data used for the current iteration. current_iteration (int)
imaginaire/trainers/vid2vid.py:200
Method_start_of_iteration
r"""Things to do before an iteration. Args: data (dict): Data used for the current iteration. current_iteration (int)
imaginaire/trainers/fs_vid2vid.py:45
Method_start_of_iteration
r"""Model specific custom start of iteration process. We will do two things. First, put all the data to GPU. Second, we will resize the
imaginaire/trainers/gancraft.py:140
Functionadd_arguments_for_module
( parser, module, argument_for_class, default, skip_params=[],
imaginaire/third_party/flow_net/flownet2/utils/tools.py:64
Functionadd_face_keypoints
r"""Add additional keypoints to label map. Args: label_map (Nx1xHxW tensor or None) image (Nx3xHxW tensor) keypoints (NxK
imaginaire/utils/visualization/face.py:371
Functionavailable_models
Returns the names of available CLIP models
imaginaire/evaluation/caption/clip.py:89
Methodbackward
(ctx, out_feature_grad)
imaginaire/model_utils/gancraft/voxlib/positional_encoding.py:27
Methodbackward
(ctx, out_feature_grad)
imaginaire/model_utils/gancraft/voxlib/sp_trilinear.py:25
Methodbackward
(ctx, *grads)
imaginaire/losses/info_nce.py:24
Methodbackward
(ctx, grad_output)
imaginaire/third_party/resample2d/resample2d.py:29
Methodbackward
(ctx, grad_output)
imaginaire/third_party/correlation/correlation.py:49
Methodbackward
(ctx, d_dx)
imaginaire/third_party/bias_act/bias_act.py:164
Methodbackward
(ctx, dy)
imaginaire/third_party/upfirdn2d/upfirdn2d.py:329
Methodbackward
(ctx, grad_output)
imaginaire/third_party/channelnorm/channelnorm.py:21
Functioncalibrate_batch_norm_momentum
r"""Calibrate batch norm momentum Args: m: Pytorch module
imaginaire/utils/model_average.py:23
Functioncolormap
(x, cmap='viridis')
imaginaire/model_utils/gancraft/mc_utils.py:383
Functioncombine_fg_mask
r"""Get the union of target and reference foreground masks. Args: fg_mask (tensor): Foreground mask for target image. ref_fg_mask
imaginaire/model_utils/fs_vid2vid.py:424
Functioncompute_all_metrics
r""" Args: act_dir (string): Path to a directory to temporarily save feature activations. data_loader (obj): PyTorch dataloader ob
imaginaire/evaluation/common.py:28
Functioncompute_all_metrics_data
r""" Args: act_dir (string): Path to a directory to temporarily save feature activations. data_loader (obj): PyTorch dataloader ob
imaginaire/evaluation/common.py:137
Functioncompute_fid_data
r"""Compute the fid score between two datasets. Args: fid_path (str): Location for the numpy file to store or to load the sta
imaginaire/evaluation/fid.py:70
Functioncompute_kid_data
r"""Compute the kid score between two datasets. Args: kid_path (str): Location for store feature activations. data_loader_a (obj)
imaginaire/evaluation/kid.py:94
Functioncompute_prdc
r"""Compute precision diversity curve Args:
imaginaire/evaluation/prdc.py:22
Functionconcat_few_shot_labels
(cfg, is_inference, data)
imaginaire/model_utils/label.py:44
Functionconcat_labels
(cfg, is_inference, data)
imaginaire/model_utils/label.py:27
Methodconv_blocks
(self, x, *cond_inputs, **kw_cond_inputs)
imaginaire/layers/residual.py:289
Functionconvert_face_landmarks_to_image
r"""Convert the facial landmarks to a label map. Args: cfgdata (obj): Data configuration. landmarks output_size (tuple of
imaginaire/utils/visualization/face.py:344
Methodcopy_t2s
r"""Copy the original weights to the moving average weights.
imaginaire/utils/model_average.py:153
Functioncrop_face_from_data
r"""Crop the face regions in input data and resize to the target size. This is for training face datasets. Args: cfg (obj): Data conf
imaginaire/model_utils/fs_vid2vid.py:95
Functioncrop_face_from_output
r"""Crop out the face region of the image (and resize if necessary to feed into generator/discriminator). Args: data_cfg (obj): Data
imaginaire/model_utils/fs_vid2vid.py:631
Functioncrop_hand_from_output
r"""Crop out the hand region of the image. Args: data_cfg (obj): Data configuration. image (NxC1xHxW tensor or list of tensors):
imaginaire/model_utils/fs_vid2vid.py:717
Functioncrop_person_from_data
r"""Crop the person regions in data and resize to the target size. This is for training full body datasets. Args: cfg (obj): Data con
imaginaire/model_utils/fs_vid2vid.py:191
Methodcustom_init
r"""This function is for dealing with the numerical issue that might occur when doing mixed precision training.
imaginaire/generators/fs_vid2vid.py:384
Functiondatestr
()
imaginaire/third_party/flow_net/flownet2/utils/tools.py:19
Methoddecode_json_list
r"""Decode list of strings in json to objects.
imaginaire/datasets/base.py:470
Methoddecode_pkl_list
r"""Decode list of pickled strings to objects.
imaginaire/datasets/base.py:475
Functiondecode_unprojections
r"""Unpickle unprojections and make array. Args: data (array of pickled info): Each pickled string has keypoint mapping info.
imaginaire/model_utils/wc_vid2vid/render.py:150
FunctiondeviceGetCount
r"""Get number of devices
imaginaire/utils/gpu_affinity.py:17
Methoddis_forward
r"""Compute the loss for pix2pixHD discriminator. Args: data (dict): Training data at the current iteration.
imaginaire/trainers/pix2pixHD.py:112
Methoddis_forward
r"""Compute the loss for FUNIT discriminator. Args: data (dict): Training data at the current iteration.
imaginaire/trainers/funit.py:104
Methoddis_forward
r"""Compute the loss for UNIT discriminator. Args: data (dict): Training data at the current iteration.
imaginaire/trainers/unit.py:124
Methoddis_forward
r"""Compute the loss for SPADE discriminator. Args: data (dict): Training data at the current iteration.
imaginaire/trainers/spade.py:132
Methoddis_forward
r"""Compute the loss for MUNIT discriminator. Args: data (dict): Training data at the current iteration.
imaginaire/trainers/munit.py:191
Methoddis_forward
r"""Compute the loss for GANcraft discriminator. Args: data (dict): Training data at the current iteration.
imaginaire/trainers/gancraft.py:207
Methoddis_update
r"""Update the discriminator. Args: data (dict): Data used for the current iteration.
imaginaire/trainers/base.py:753
Functiondist_reduce_tensor
r""" Reduce to rank 0
imaginaire/utils/distributed.py:75
Functiondownsample2d
r"""Downsample a batch of 2D images using the given 2D FIR filter. By default, the result is padded so that its shape is a fraction of the input.
imaginaire/third_party/upfirdn2d/upfirdn2d.py:433
Functiondraw_openpose_npy
r"""Connect the OpenPose keypoints to edges and draw the pose map. Args: resize_h (int): Height the input image was resized to. r
imaginaire/utils/visualization/pose.py:13
Methodextra_repr
(self)
imaginaire/layers/activation_norm.py:498
Methodextra_repr
(self)
imaginaire/layers/residual_deep.py:260
Methodextra_repr
(self)
imaginaire/layers/conv.py:370
Methodextra_repr
(self)
imaginaire/layers/residual.py:260
Methodextra_repr
(self)
imaginaire/third_party/upfirdn2d/upfirdn2d.py:81
Methodextra_repr
(self)
imaginaire/third_party/upfirdn2d/upfirdn2d.py:110
Methodextra_repr
(self)
imaginaire/third_party/upfirdn2d/upfirdn2d.py:135
Functionfilter2d
r"""Filter a batch of 2D images using the given 2D FIR filter. By default, the result is padded so that its shape matches the input. User-spe
imaginaire/third_party/upfirdn2d/upfirdn2d.py:356
Methodflip_hdr
r"""Flip hdr images. Args: data (dict): Keys are from data types. Values can be numpy.ndarray or list of numpy.nd
imaginaire/datasets/base.py:365
Functionformat_dictionary_of_losses
(labels, values)
imaginaire/third_party/flow_net/flownet2/utils/tools.py:124
Methodforward
r"""PyTorch module forward function overload.
imaginaire/utils/model_average.py:90
Methodforward
r"""PyTorch module forward function overload.
imaginaire/utils/trainer.py:193
Methodforward
r"""GAN loss computation. Args: input_x (tensor or list of tensors): Output values. t_real (boolean): Is this output
imaginaire/model_utils/gancraft/loss.py:24
Methodforward
(self, x, z)
imaginaire/model_utils/gancraft/layers.py:49
Methodforward
(self, x, z)
imaginaire/model_utils/gancraft/layers.py:123
Methodforward
(ctx, in_feature, pe_degrees, dim, incl_orig)
imaginaire/model_utils/gancraft/voxlib/positional_encoding.py:16
Methodforward
(ctx, in_feature, corner_lut_t, in_worldcoord, ign_zero)
imaginaire/model_utils/gancraft/voxlib/sp_trilinear.py:16
Methodforward
r"""Improved FUNIT discriminator forward function. Args: data (dict): Training data at the current iteration. net_G_o
imaginaire/discriminators/funit.py:25
Methodforward
r"""Forward function of the projection discriminator. Args: images (image tensor): Images inputted to the discriminator.
imaginaire/discriminators/funit.py:101
Methodforward
r"""Returns the output of the discriminator. Args: data (dict): - images_a (tensor) : Images in domain A.
imaginaire/discriminators/unit.py:38
Methodforward
r"""SPADE Generator forward. Args: data (dict): - data (N x C1 x H x W tensor) : Ground truth images.
imaginaire/discriminators/multires_patch.py:60
Methodforward
r"""Multi-resolution patch discriminator forward. Args: input_x (tensor) : Input images. Returns: (tuple):
imaginaire/discriminators/multires_patch.py:147
Methodforward
r"""Multi-resolution patch discriminator forward. Args: input_x (tensor) : Input images. Returns: (tuple):
imaginaire/discriminators/multires_patch.py:216
← previousnext →701–800 of 1,077, ranked by callers