MCPcopy Create free account

hub / github.com/NVlabs/imaginaire / functions

Functions1,077 in github.com/NVlabs/imaginaire

Methodforward
(self, inp)
imaginaire/evaluation/lpips.py:54
Methodforward
(self, fake_images, fake_images_another, align_corners=True)
imaginaire/evaluation/lpips.py:64
Methodforward
(self, in0, avg=False)
imaginaire/evaluation/lpips.py:93
Methodforward
(self, x)
imaginaire/evaluation/lpips.py:139
Methodforward
(self, x: torch.Tensor)
imaginaire/evaluation/caption/clip.py:141
Methodforward
(self, x)
imaginaire/evaluation/caption/clip.py:169
Methodforward
(self, x)
imaginaire/evaluation/caption/clip.py:245
Methodforward
(self, x: torch.Tensor)
imaginaire/evaluation/caption/clip.py:267
Methodforward
(self, x: torch.Tensor)
imaginaire/evaluation/caption/clip.py:274
Methodforward
(self, x: torch.Tensor)
imaginaire/evaluation/caption/clip.py:299
Methodforward
(self, x: torch.Tensor)
imaginaire/evaluation/caption/clip.py:315
Methodforward
(self, x: torch.Tensor)
imaginaire/evaluation/caption/clip.py:341
Methodforward
(self, data, fake_images, align_corners=True)
imaginaire/evaluation/caption/common.py:51
Methodforward
(self, images, align_corners=True)
imaginaire/evaluation/segmentation/celebamask_hq.py:62
Methodforward
(self, inputs)
imaginaire/evaluation/segmentation/celebamask_hq.py:108
Methodforward
(self, inputs1, inputs2)
imaginaire/evaluation/segmentation/celebamask_hq.py:124
Methodforward
(self, data, fake_images, align_corners=True)
imaginaire/evaluation/segmentation/common.py:61
Methodforward
(self, images, align_corners=True)
imaginaire/evaluation/segmentation/cocostuff.py:30
Methodforward
(ctx, input1, input2, kernel_size=1)
imaginaire/third_party/resample2d/resample2d.py:12
Methodforward
(ctx, pad_size, kernel_size, max_displacement, stride1,
imaginaire/third_party/correlation/correlation.py:11
Methodforward
(ctx, x, b)
imaginaire/third_party/bias_act/bias_act.py:112
Methodforward
(ctx, dy, x, b, y)
imaginaire/third_party/bias_act/bias_act.py:151
Methodforward
(self, x)
imaginaire/third_party/bias_act/bias_act.py:203
Methodforward
(self, x)
imaginaire/third_party/upfirdn2d/upfirdn2d.py:70
Methodforward
(self, x)
imaginaire/third_party/upfirdn2d/upfirdn2d.py:102
Methodforward
(self, x)
imaginaire/third_party/upfirdn2d/upfirdn2d.py:127
Methodforward
(ctx, x, f)
imaginaire/third_party/upfirdn2d/upfirdn2d.py:309
Methodforward
(self, input_A, input_B)
imaginaire/third_party/flow_net/flow_net.py:35
Methodforward
(self, inputs)
imaginaire/third_party/flow_net/flownet2/models.py:96
Methodforward
(self, inputs)
imaginaire/third_party/flow_net/flownet2/models.py:184
Methodforward
(self, inputs)
imaginaire/third_party/flow_net/flownet2/models.py:239
Methodforward
(self, inputs)
imaginaire/third_party/flow_net/flownet2/models.py:279
Methodforward
(self, inputs)
imaginaire/third_party/flow_net/flownet2/models.py:352
Methodforward
(self, inputs)
imaginaire/third_party/flow_net/flownet2/models.py:426
Methodforward
r""" Args: x (tensor): Input tensors of concatenated images. Returns: flow2 (tensor): Output flow tensors.
imaginaire/third_party/flow_net/flownet2/networks/flownet_c.py:91
Methodforward
r""" Args: x (tensor): Input tensors of concatenated images. Returns: flow2 (tensor): Output flow tensors.
imaginaire/third_party/flow_net/flownet2/networks/flownet_fusion.py:56
Methodforward
r""" Args: x (tensor): Input tensors of concatenated images. Returns: flow2 (tensor): Output flow tensors.
imaginaire/third_party/flow_net/flownet2/networks/flownet_sd.py:74
Methodforward
r""" Args: x (tensor): Input tensors of concatenated images. Returns: flow2 (tensor): Output flow tensors.
imaginaire/third_party/flow_net/flownet2/networks/flownet_s.py:80
Methodforward
(self, input)
imaginaire/third_party/flow_net/flownet2/networks/submodules.py:82
Methodforward
(self, input)
imaginaire/third_party/flow_net/flownet2/networks/submodules.py:90
Methodforward
(ctx, input1, norm_deg=2)
imaginaire/third_party/channelnorm/channelnorm.py:9
Functiongather_tensors
(batch_y)
imaginaire/evaluation/common.py:540
Methodgen_forward
r"""Compute the loss for pix2pixHD generator. Args: data (dict): Training data at the current iteration.
imaginaire/trainers/pix2pixHD.py:83
Methodgen_forward
r"""Compute the loss for FUNIT generator. Args: data (dict): Training data at the current iteration.
imaginaire/trainers/funit.py:60
Methodgen_forward
r"""Compute the loss for UNIT generator. Args: data (dict): Training data at the current iteration.
imaginaire/trainers/unit.py:59
Methodgen_forward
r"""Compute the loss for SPADE generator. Args: data (dict): Training data at the current iteration.
imaginaire/trainers/spade.py:96
Methodgen_forward
r"""Compute the loss for MUNIT generator. Args: data (dict): Training data at the current iteration.
imaginaire/trainers/munit.py:62
Methodgen_forward
r"""Compute the loss for SPADE generator. Args: data (dict): Training data at the current iteration.
imaginaire/trainers/gancraft.py:159
Methodgen_update
r"""Update the generator. Args: data (dict): Data used for the current iteration.
imaginaire/trainers/base.py:676
MethodgetName
r"""Get obect name
imaginaire/utils/gpu_affinity.py:30
Functionget_126_landmarks_from_image
r"""Get face keypoints from an image. Args: imgs (Nx3xHxW tensor or NxHxWx3 numpy array): Input images. landmarks_network
imaginaire/utils/visualization/face.py:305
Functionget_class_number
r"""Get number of classes for class-conditional GAN model Args: data_cfg (obj): Data configuration structure. Returns: (int)
imaginaire/utils/data.py:570
Methodget_cond_dims
r"""Get the dimensions of conditional inputs. Args: num_downs (int) : How many downsamples at current layer. Returns:
imaginaire/generators/wc_vid2vid.py:291
Methodget_data_t
r"""Get data at current time frame given the sequence of data. Args: data (dict): Training data for current iteration.
imaginaire/trainers/fs_vid2vid.py:85
Functionget_dlib_landmarks_from_image
r"""Get face keypoints from an image. Args: imgs (N x 3 x H x W tensor or N x H x W x 3 numpy array): Input images. predictor_pat
imaginaire/utils/visualization/face.py:276
Methodget_images
r"""Get the ourput images to save. Args: data (dict): Training data for current iteration. net_G_output (
imaginaire/trainers/fs_vid2vid.py:195
Functionget_immediate_subdirectories
List dirs immediately under input_dir. Args: input_dir (str): Directory to list children of. Returns: (list): List of dir
imaginaire/utils/path.py:11
Functionget_kth_value
r""" Args: unsorted: numpy.ndarray of any dimensionality. k: int Returns: kth values along the designated axis.
imaginaire/evaluation/prdc.py:65
Methodget_label_lengths
r"""Get num channels of all labels to be concated. Returns: label_lengths (OrderedDict): Dict mapping image data_type to num
imaginaire/datasets/paired_few_shot_videos_native.py:34
Functionget_miou
(hist, eps=1e-8)
imaginaire/evaluation/segmentation/common.py:87
Functionget_r_precision
(image_text_code, eps=1e-5)
imaginaire/evaluation/caption/r_precision.py:11
Functionget_recursive_subdirectories
List dirs recursively under input_dir. Args: input_dir (str): Directory to list children of. ext (str): Extension of files expect
imaginaire/utils/path.py:23
Methodget_test_output_images
r"""Get the visualization output of test function. Args: data (dict): Training data at the current iteration.
imaginaire/trainers/fs_vid2vid.py:71
Functionget_weight_stats
r"""Get weight state Args: mod: Pytorch module
imaginaire/utils/meters.py:35
Methodgetitem_by_path
r"""Load data item stored for key = path. Args: path (str): Path into AWS S3 bucket, without data_type prefix. data_t
imaginaire/datasets/object_store.py:90
Methodgetitem_by_path
r"""Load data item stored for key = path. Args: path (str): Key into Folder dataset. data_type (str): Key into self.e
imaginaire/datasets/folder.py:30
Methodgglbl2ggid
(self, gglbl)
imaginaire/model_utils/gancraft/mc_lbl_reduction.py:78
Functiongpumemusage
()
imaginaire/third_party/flow_net/flownet2/utils/tools.py:157
Functiongradient_norm
r"""Return the gradient norm of model. Args: model (PyTorch module): Your network.
imaginaire/utils/misc.py:201
Functionhook
(grad)
imaginaire/third_party/flow_net/flownet2/networks/submodules.py:111
Methodinference
r"""Generator inference. Args: data (dict) : Dictionary of input data. Returns: fake_images (tensor): Output
imaginaire/generators/pix2pixHD.py:151
Methodinference
r"""COCO-FUNIT inference. Args: data (dict): Training data at the current iteration. - images_content (tensor): Con
imaginaire/generators/funit.py:43
Methodinference
r"""Compute results images for a batch of input data and save the results in the specified folder. Args: data (dict):
imaginaire/generators/spade.py:164
Methodinference
r"""MUNIT inference. Args: data (dict): Training data at the current iteration. - images_a (tensor): Images from do
imaginaire/generators/munit.py:111
Methodinference
r"""COCO-FUNIT inference. Args: data (dict): Training data at the current iteration. - images_content (tensor): Con
imaginaire/generators/coco_funit.py:46
Methodinference
r"""Compute result images according to the provided camera trajectory and save the results in the specified folder. The full image is evaluate
imaginaire/generators/gancraft.py:366
Functioninit_deconv_bilinear
(weight)
imaginaire/third_party/flow_net/flownet2/networks/submodules.py:94
Methodinit_deconv_bilinear
(self, weight)
imaginaire/third_party/flow_net/flownet2/models.py:80
Functioninit_func
r"""Init function Args: m: module to be weight initialized.
imaginaire/utils/init_weight.py:23
Methodinit_func
(m)
imaginaire/generators/gancraft.py:77
Methodis_sea
r"""loc: [2]: x, z.
imaginaire/model_utils/gancraft/mc_utils.py:234
Functionkwargs_from_args
(args, argument_for_class)
imaginaire/third_party/flow_net/flownet2/utils/tools.py:117
Methodl2_normalize
r"""L2 normalization.
imaginaire/datasets/base.py:485
Methodlist_to_numpy
r"""Convert list of numeric values to numpy array.
imaginaire/datasets/base.py:480
Methodlist_to_tensor
r"""Convert list of numeric values to tensor.
imaginaire/datasets/base.py:465
Functionload
(model_path)
imaginaire/evaluation/caption/clip.py:94
Methodload_checkpoint
r"""Save network weights, optimizer parameters, scheduler parameters in the checkpoint. Args: cfg (obj): Global configura
imaginaire/trainers/wc_vid2vid.py:486
Methodload_checkpoint
r"""Load network weights, optimizer parameters, scheduler parameters from a checkpoint. Args: cfg (obj): Global configura
imaginaire/trainers/gancraft.py:289
Functionload_from_folder
r"""Load keys from lmdb handles. Args: keys (dict): This has data_type as key, and a list of paths as values. handles
imaginaire/utils/data.py:462
Functionload_from_lmdb
r"""Load keys from lmdb handles. Args: keys (dict): This has data_type as key, and a list of paths into LMDB as values.
imaginaire/utils/data.py:438
Functionload_from_object_store
r"""Load keys from AWS S3 handles. Args: keys (dict): This has data_type as key, and a list of paths as values. handl
imaginaire/utils/data.py:486
Methodload_pretrained_network
r"""Load the pretrained network into self network. Args: pretrained_dict (dict): Pretrained network weights. prefix (
imaginaire/generators/fs_vid2vid.py:279
Functionload_voxel_new
(voxel_path, shape=[256, 512, 512])
imaginaire/model_utils/gancraft/mc_utils.py:18
Methodlog2file
(self, fid, string)
imaginaire/third_party/flow_net/flownet2/utils/tools.py:58
Functionmake_one_hot
r"""Convert appropriate image data types to one-hot representation. Args: data (dict): Dict containing data_type as key, with each value
imaginaire/model_utils/label.py:8
Functionmaster_only
r"""Apply this function only to the master GPU.
imaginaire/utils/distributed.py:48
Functionmove_dont_care
(cfg, is_inference, data)
imaginaire/model_utils/label.py:61
Functionnormalize_and_connect_face_keypoints
r"""Normalize face keypoints w.r.t. reference face keypoints and connect keypoints to form 2D images. Args: cfg (obj): Data configura
imaginaire/utils/visualization/face.py:114
Functionnormalize_faces
r"""Normalize face keypoints w.r.t. the reference face keypoints. Args: keypoints (Kx2 numpy array): target facial keypoints. ref
imaginaire/model_utils/fs_vid2vid.py:565
Functionnp_euc_cdist
(data)
imaginaire/evaluation/msid.py:316
← previousnext →901–1,000 of 1,077, ranked by callers