MCPcopy Create free account

hub / github.com/NVlabs/imaginaire / functions

Functions1,077 in github.com/NVlabs/imaginaire

Functionnpy_to_tensor
r"""Convert numpy array to pytorch tensor.
imaginaire/utils/visualization/face.py:271
Methodnum_inference_sequences
r"""Number of sequences available for inference. Returns: (int)
imaginaire/datasets/paired_few_shot_videos_native.py:53
Methodnum_inference_sequences
r"""Number of sequences available for inference. Overriden from super as this is not applicable for images. Returns: (int
imaginaire/datasets/paired_images.py:80
Methodnum_points
r"""Number of points with assigned colors.
imaginaire/model_utils/wc_vid2vid/render.py:34
Functionopenpose_to_npy
r"""Conver OpenPose dicts to numpy arrays of keypoints. Args: inputs (list of dicts): List of OpenPose dicts. Returns: (list
imaginaire/utils/visualization/pose.py:87
Functionopenpose_to_npy_largest_only
r"""Convert OpenPose dicts to numpy arrays of keypoints. Only return the largest/tallest person in each dict. Args: inputs (list of d
imaginaire/utils/visualization/pose.py:74
Functionparse_flownetc
(modules, weights, biases)
imaginaire/third_party/flow_net/flownet2/utils/param_utils.py:10
Functionparse_flownetfusion
(modules, weights, biases, param_prefix='fuse_')
imaginaire/third_party/flow_net/flownet2/utils/param_utils.py:233
Functionparse_flownets
(modules, weights, biases, param_prefix='net2_')
imaginaire/third_party/flow_net/flownet2/utils/param_utils.py:58
Functionparse_flownetsd
(modules, weights, biases, param_prefix='netsd_')
imaginaire/third_party/flow_net/flownet2/utils/param_utils.py:172
Functionparse_flownetsonly
(modules, weights, biases, param_prefix='')
imaginaire/third_party/flow_net/flownet2/utils/param_utils.py:116
Methodperform_augmentation
r"""Entry point for augmentation. Args: inputs (dict): Keys are from self.augmentable_data_types. Values are list
imaginaire/utils/data.py:402
Functionplot_keypoints
r"""Plot keypoints on image. Args: image (PIL.Image, or numpy.ndarray, or torch.Tensor): Input image. keypoints (np.ndarray or torc
imaginaire/utils/visualization/common.py:192
Functionplot_keypoints_on_black
r"""Plot keypoints on black image. Args: resize_h (int): Height to be resized to. resize_w (int): Width to be resized to.
imaginaire/utils/visualization/common.py:284
Methodpost_process
r"""Do any postprocessing of the data / output here. Args: data (dict): Training data at the current iteration. net_G
imaginaire/trainers/fs_vid2vid.py:122
Functionrand_brightness
(x, **kwargs)
imaginaire/utils/diff_aug.py:47
Functionrand_camera_pose_birdseye
r"""Generating random camera pose in the upper hemisphere, in the format of origin-direction-up Assuming [Y X Z] coordinate. Y is negative gravity
imaginaire/model_utils/gancraft/camctl.py:406
Functionrand_camera_pose_firstperson
r"""Generating random camera pose in the upper hemisphere, in the format of origin-direction-up
imaginaire/model_utils/gancraft/camctl.py:450
Functionrand_camera_pose_insideout
(voxel)
imaginaire/model_utils/gancraft/camctl.py:606
Functionrand_camera_pose_thridperson
(voxel, border=96)
imaginaire/model_utils/gancraft/camctl.py:480
Functionrand_camera_pose_thridperson2
(voxel, border=48)
imaginaire/model_utils/gancraft/camctl.py:503
Functionrand_camera_pose_thridperson3
r"""Attempting to solve the camera too close to wall problem and the lack of aerial poses.
imaginaire/model_utils/gancraft/camctl.py:533
Functionrand_camera_pose_tour
(voxel)
imaginaire/model_utils/gancraft/camctl.py:567
Functionrand_contrast
(x, **kwargs)
imaginaire/utils/diff_aug.py:60
Functionrand_crop
r"""Produces a new cam_c so that the effect of rendering with the new cam_c and target_res is the same as rendering with the old parameters and th
imaginaire/model_utils/gancraft/mc_utils.py:365
Functionrand_cutout
(x, ratio=0.5, **kwargs)
imaginaire/utils/diff_aug.py:88
Functionrand_saturation
(x, **kwargs)
imaginaire/utils/diff_aug.py:53
Functionrand_translation
(x, ratio=0.125, **kwargs)
imaginaire/utils/diff_aug.py:67
Functionrand_translation_scale
(x, trans_r=0.125, scale_r=0.125, mode='bilinear', padding_mode='reflection',
imaginaire/utils/diff_aug.py:111
Functionread_gen
(file_name)
imaginaire/third_party/flow_net/flownet2/utils/frame_utils.py:11
Methodread_img
(path)
imaginaire/generators/gancraft.py:407
Methodrecalculate_batch_norm_statistics
r"""Update the statistics in the moving average model. Args: data_loader (torch.utils.data.DataLoader): Data loader for
imaginaire/trainers/base.py:496
Functionremove_equalized_lr
(module, weight_name='weight', bias_name='bias')
imaginaire/layers/weight_norm.py:210
Functionremove_weight_norms
(module, weight_name='weight', bias_name='bias')
imaginaire/layers/weight_norm.py:187
Functionrename_inputs
(cfg, is_inference, data)
imaginaire/model_utils/rename_inputs.py:7
Methodreset
r"""Reset the network at the beginning of a sequence.
imaginaire/generators/fs_vid2vid.py:781
Functionreset_batch_norm
r"""Reset batch norm statistics Args: m: Pytorch module
imaginaire/utils/model_average.py:13
Functionrsetattr
Recursively find object and set value
imaginaire/config.py:210
Functionsample_depth_batched
r""" Make best effort to sample points within the same distance for every ray. Exception: When there is not enough voxel. Args: de
imaginaire/model_utils/gancraft/mc_utils.py:91
Functionsave_checkpoint
(state, is_best, path, prefix, filename='checkpoint.pth.tar')
imaginaire/third_party/flow_net/flownet2/utils/tools.py:188
Functionsave_grad
(grads, name)
imaginaire/third_party/flow_net/flownet2/networks/submodules.py:110
Methodsave_image
r"""Save the output images to path. Note when the generate_raw_output is FALSE. Then, first_net_G_output['fake_raw_images'] is None an
imaginaire/trainers/fs_vid2vid.py:174
Methodsave_image
r"""Save the output images to path. Note when the generate_raw_output is FALSE. Then, first_net_G_output['fake_raw_images'] is None an
imaginaire/trainers/wc_vid2vid.py:343
Functionsave_intermediate_training_results
r"""Save intermediate training results for debugging purpose. Args: visualization_images (tensor): Image where pixel values are in [-1, 1
imaginaire/utils/io.py:26
Functionsave_tensor_image
r"""Convert a 3 dimensional torch tensor to a PIL image with the desired width and height. Args: filename (str): Image filename to be
imaginaire/utils/visualization/common.py:14
Functionscaled_lr
( module, weight_name='weight', bias_name='bias', lr_mul=1., equalized=False, )
imaginaire/layers/weight_norm.py:222
Functionsegmask_smooth
(seg_mask, kernel_size=7)
imaginaire/model_utils/gancraft/mc_utils.py:375
Methodset_inference_sequence_idx
r"""Get frames from this sequence during inference. Args: index (int): Index of inference sequence. k_shot_index (int
imaginaire/datasets/paired_few_shot_videos.py:36
Methodset_inference_sequence_idx
r"""Get frames from this sequence during inference. Overriden from super as this is not applicable for images. Args: inde
imaginaire/datasets/paired_images.py:71
Methodset_sample_class_idx
r"""Set sample class idx. Args: class_idx (int): Which class idx to sample from.
imaginaire/datasets/unpaired_few_shot_images.py:27
Methodset_sequence_length
r"""Set the length of sequence you want as output from dataloader. Args: sequence_length (int): Length of output sequences.
imaginaire/datasets/paired_few_shot_videos.py:56
Methodset_sequence_length
r"""Set the length of sequence you want as output from dataloader. Ignore this as this is an image loader. Args: sequence
imaginaire/datasets/paired_images.py:62
Methodsmooth_interp
r"""Smooth interpolation of segmentation maps. Args: x (4D tensor): Segmentation maps. size(2D list): Target size (H,
imaginaire/discriminators/gancraft.py:217
Functionsparse_trilinear_interp_worldcoord
(in_feature, corner_lut_t, in_worldcoord, ign_zero=False)
imaginaire/model_utils/gancraft/voxlib/sp_trilinear.py:34
Methodstem
(x)
imaginaire/evaluation/caption/clip.py:246
Methodstep
r"""Performs a single optimization step. Args: closure (callable, optional): A closure that reevaluates the model
imaginaire/optimizers/fromage.py:20
FunctionsystemGetDriverVersion
r"""Get Driver Version
imaginaire/utils/gpu_affinity.py:12
Methodtest
r"""Compute results images for a batch of input data and save the results in the specified folder. Args: data_loader (tor
imaginaire/trainers/base.py:825
Methodtest
r"""Run inference on the specified sequence. Args: test_data_loader (object): Test data loader. root_output_dir (str)
imaginaire/trainers/fs_vid2vid.py:137
Methodtest
r"""Run inference on all sequences. Args: test_data_loader (object): Test data loader. root_output_dir (str): Locatio
imaginaire/trainers/wc_vid2vid.py:107
Methodtest
r"""Compute results images for a batch of input data and save the results in the specified folder. Args: data_loader (tor
imaginaire/trainers/gancraft.py:310
Functionto_cpu
r"""Move all tensors inside data to cpu. Args: data (dict, list, or tensor): Input data.
imaginaire/utils/misc.py:82
Functionto_half
r"""Move all floats to half. Args: data (dict, list or tensor): Input data.
imaginaire/utils/misc.py:91
Methodtopk_anneal
r"""Anneal k after each epoch.
imaginaire/losses/gan.py:168
Functionupdate_hyperparameter_schedule
(args, epoch, global_iteration, optimizer)
imaginaire/third_party/flow_net/flownet2/utils/tools.py:179
Functionupsample2d
r"""Upsample a batch of 2D images using the given 2D FIR filter. By default, the result is padded so that its shape is a multiple of the input.
imaginaire/third_party/upfirdn2d/upfirdn2d.py:393
Functionvisulize_flow_file
(flow_filename, save_dir=None)
imaginaire/third_party/flow_net/flownet2/utils/flow_utils.py:71
Functionvolum_rendering_relu
(sigma, dists, dim=2)
imaginaire/model_utils/gancraft/mc_utils.py:163
Functionweight_demod
r"""Weight demodulation.
imaginaire/layers/weight_norm.py:70
Functionwrapper
r"""Simple function wrapper for the master function
imaginaire/utils/distributed.py:51
FunctionwriteFlow
Write optical flow to file. If v is None, uv is assumed to contain both u and v channels, stacked in deep. Original code by Deqing Sun,
imaginaire/third_party/flow_net/flownet2/utils/flow_utils.py:37
Methodwrite_img
(path, img, rgb_input=False)
imaginaire/generators/gancraft.py:399
Methodwrite_metrics
r"""Write metrics to the tensorboard.
imaginaire/trainers/funit.py:222
Methodwrite_metrics
r"""If moving average model presents, we have two meters one for regular FID and one for average FID. If no moving average model, we j
imaginaire/trainers/vid2vid.py:730
Methodwrite_metrics
r"""If moving average model presents, we have two meters one for regular FID and one for average FID. If no moving average model, we j
imaginaire/trainers/spade.py:219
Methodwrite_metrics
r"""Compute metrics and save them to tensorboard
imaginaire/trainers/munit.py:277
Methodyaml
Convert object to yaml dict and return.
imaginaire/config.py:34
← previous1,001–1,077 of 1,077, ranked by callers