Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NVlabs/imaginaire
/ functions
Functions
1,077 in github.com/NVlabs/imaginaire
⨍
Functions
1,077
◇
Types & classes
229
Method
forward
(self, inp)
imaginaire/evaluation/lpips.py:54
Method
forward
(self, fake_images, fake_images_another, align_corners=True)
imaginaire/evaluation/lpips.py:64
Method
forward
(self, in0, avg=False)
imaginaire/evaluation/lpips.py:93
Method
forward
(self, x)
imaginaire/evaluation/lpips.py:139
Method
forward
(self, x: torch.Tensor)
imaginaire/evaluation/caption/clip.py:141
Method
forward
(self, x)
imaginaire/evaluation/caption/clip.py:169
Method
forward
(self, x)
imaginaire/evaluation/caption/clip.py:245
Method
forward
(self, x: torch.Tensor)
imaginaire/evaluation/caption/clip.py:267
Method
forward
(self, x: torch.Tensor)
imaginaire/evaluation/caption/clip.py:274
Method
forward
(self, x: torch.Tensor)
imaginaire/evaluation/caption/clip.py:299
Method
forward
(self, x: torch.Tensor)
imaginaire/evaluation/caption/clip.py:315
Method
forward
(self, x: torch.Tensor)
imaginaire/evaluation/caption/clip.py:341
Method
forward
(self, data, fake_images, align_corners=True)
imaginaire/evaluation/caption/common.py:51
Method
forward
(self, images, align_corners=True)
imaginaire/evaluation/segmentation/celebamask_hq.py:62
Method
forward
(self, inputs)
imaginaire/evaluation/segmentation/celebamask_hq.py:108
Method
forward
(self, inputs1, inputs2)
imaginaire/evaluation/segmentation/celebamask_hq.py:124
Method
forward
(self, data, fake_images, align_corners=True)
imaginaire/evaluation/segmentation/common.py:61
Method
forward
(self, images, align_corners=True)
imaginaire/evaluation/segmentation/cocostuff.py:30
Method
forward
(ctx, input1, input2, kernel_size=1)
imaginaire/third_party/resample2d/resample2d.py:12
Method
forward
(ctx, pad_size, kernel_size, max_displacement, stride1,
imaginaire/third_party/correlation/correlation.py:11
Method
forward
(ctx, x, b)
imaginaire/third_party/bias_act/bias_act.py:112
Method
forward
(ctx, dy, x, b, y)
imaginaire/third_party/bias_act/bias_act.py:151
Method
forward
(self, x)
imaginaire/third_party/bias_act/bias_act.py:203
Method
forward
(self, x)
imaginaire/third_party/upfirdn2d/upfirdn2d.py:70
Method
forward
(self, x)
imaginaire/third_party/upfirdn2d/upfirdn2d.py:102
Method
forward
(self, x)
imaginaire/third_party/upfirdn2d/upfirdn2d.py:127
Method
forward
(ctx, x, f)
imaginaire/third_party/upfirdn2d/upfirdn2d.py:309
Method
forward
(self, input_A, input_B)
imaginaire/third_party/flow_net/flow_net.py:35
Method
forward
(self, inputs)
imaginaire/third_party/flow_net/flownet2/models.py:96
Method
forward
(self, inputs)
imaginaire/third_party/flow_net/flownet2/models.py:184
Method
forward
(self, inputs)
imaginaire/third_party/flow_net/flownet2/models.py:239
Method
forward
(self, inputs)
imaginaire/third_party/flow_net/flownet2/models.py:279
Method
forward
(self, inputs)
imaginaire/third_party/flow_net/flownet2/models.py:352
Method
forward
(self, inputs)
imaginaire/third_party/flow_net/flownet2/models.py:426
Method
forward
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
Method
forward
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
Method
forward
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
Method
forward
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
Method
forward
(self, input)
imaginaire/third_party/flow_net/flownet2/networks/submodules.py:82
Method
forward
(self, input)
imaginaire/third_party/flow_net/flownet2/networks/submodules.py:90
Method
forward
(ctx, input1, norm_deg=2)
imaginaire/third_party/channelnorm/channelnorm.py:9
Function
gather_tensors
(batch_y)
imaginaire/evaluation/common.py:540
Method
gen_forward
r"""Compute the loss for pix2pixHD generator. Args: data (dict): Training data at the current iteration.
imaginaire/trainers/pix2pixHD.py:83
Method
gen_forward
r"""Compute the loss for FUNIT generator. Args: data (dict): Training data at the current iteration.
imaginaire/trainers/funit.py:60
Method
gen_forward
r"""Compute the loss for UNIT generator. Args: data (dict): Training data at the current iteration.
imaginaire/trainers/unit.py:59
Method
gen_forward
r"""Compute the loss for SPADE generator. Args: data (dict): Training data at the current iteration.
imaginaire/trainers/spade.py:96
Method
gen_forward
r"""Compute the loss for MUNIT generator. Args: data (dict): Training data at the current iteration.
imaginaire/trainers/munit.py:62
Method
gen_forward
r"""Compute the loss for SPADE generator. Args: data (dict): Training data at the current iteration.
imaginaire/trainers/gancraft.py:159
Method
gen_update
r"""Update the generator. Args: data (dict): Data used for the current iteration.
imaginaire/trainers/base.py:676
Method
getName
r"""Get obect name
imaginaire/utils/gpu_affinity.py:30
Function
get_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
Function
get_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
Method
get_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
Method
get_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
Function
get_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
Method
get_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
Function
get_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
Function
get_kth_value
r""" Args: unsorted: numpy.ndarray of any dimensionality. k: int Returns: kth values along the designated axis.
imaginaire/evaluation/prdc.py:65
Method
get_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
Function
get_miou
(hist, eps=1e-8)
imaginaire/evaluation/segmentation/common.py:87
Function
get_r_precision
(image_text_code, eps=1e-5)
imaginaire/evaluation/caption/r_precision.py:11
Function
get_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
Method
get_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
Function
get_weight_stats
r"""Get weight state Args: mod: Pytorch module
imaginaire/utils/meters.py:35
Method
getitem_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
Method
getitem_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
Method
gglbl2ggid
(self, gglbl)
imaginaire/model_utils/gancraft/mc_lbl_reduction.py:78
Function
gpumemusage
()
imaginaire/third_party/flow_net/flownet2/utils/tools.py:157
Function
gradient_norm
r"""Return the gradient norm of model. Args: model (PyTorch module): Your network.
imaginaire/utils/misc.py:201
Function
hook
(grad)
imaginaire/third_party/flow_net/flownet2/networks/submodules.py:111
Method
inference
r"""Generator inference. Args: data (dict) : Dictionary of input data. Returns: fake_images (tensor): Output
imaginaire/generators/pix2pixHD.py:151
Method
inference
r"""COCO-FUNIT inference. Args: data (dict): Training data at the current iteration. - images_content (tensor): Con
imaginaire/generators/funit.py:43
Method
inference
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
Method
inference
r"""MUNIT inference. Args: data (dict): Training data at the current iteration. - images_a (tensor): Images from do
imaginaire/generators/munit.py:111
Method
inference
r"""COCO-FUNIT inference. Args: data (dict): Training data at the current iteration. - images_content (tensor): Con
imaginaire/generators/coco_funit.py:46
Method
inference
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
Function
init_deconv_bilinear
(weight)
imaginaire/third_party/flow_net/flownet2/networks/submodules.py:94
Method
init_deconv_bilinear
(self, weight)
imaginaire/third_party/flow_net/flownet2/models.py:80
Function
init_func
r"""Init function Args: m: module to be weight initialized.
imaginaire/utils/init_weight.py:23
Method
init_func
(m)
imaginaire/generators/gancraft.py:77
Method
is_sea
r"""loc: [2]: x, z.
imaginaire/model_utils/gancraft/mc_utils.py:234
Function
kwargs_from_args
(args, argument_for_class)
imaginaire/third_party/flow_net/flownet2/utils/tools.py:117
Method
l2_normalize
r"""L2 normalization.
imaginaire/datasets/base.py:485
Method
list_to_numpy
r"""Convert list of numeric values to numpy array.
imaginaire/datasets/base.py:480
Method
list_to_tensor
r"""Convert list of numeric values to tensor.
imaginaire/datasets/base.py:465
Function
load
(model_path)
imaginaire/evaluation/caption/clip.py:94
Method
load_checkpoint
r"""Save network weights, optimizer parameters, scheduler parameters in the checkpoint. Args: cfg (obj): Global configura
imaginaire/trainers/wc_vid2vid.py:486
Method
load_checkpoint
r"""Load network weights, optimizer parameters, scheduler parameters from a checkpoint. Args: cfg (obj): Global configura
imaginaire/trainers/gancraft.py:289
Function
load_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
Function
load_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
Function
load_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
Method
load_pretrained_network
r"""Load the pretrained network into self network. Args: pretrained_dict (dict): Pretrained network weights. prefix (
imaginaire/generators/fs_vid2vid.py:279
Function
load_voxel_new
(voxel_path, shape=[256, 512, 512])
imaginaire/model_utils/gancraft/mc_utils.py:18
Method
log2file
(self, fid, string)
imaginaire/third_party/flow_net/flownet2/utils/tools.py:58
Function
make_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
Function
master_only
r"""Apply this function only to the master GPU.
imaginaire/utils/distributed.py:48
Function
move_dont_care
(cfg, is_inference, data)
imaginaire/model_utils/label.py:61
Function
normalize_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
Function
normalize_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
Function
np_euc_cdist
(data)
imaginaire/evaluation/msid.py:316
← previous
next →
901–1,000 of 1,077, ranked by callers