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
↓ 1 callers
Function
get_video_activations
r"""Compute activation values and pack them in a list. We do not do all reduce here. Args: data_loader (obj): PyTorch dataloader obje
imaginaire/evaluation/common.py:450
↓ 1 callers
Function
inception_forward
(inception, images)
imaginaire/evaluation/common.py:532
↓ 1 callers
Function
inception_init
()
imaginaire/evaluation/common.py:524
↓ 1 callers
Method
init_temporal_network
r"""Initialize temporal training when beginning to train multiple frames. Set the sequence length to $(initial_sequence_length).
imaginaire/trainers/vid2vid.py:188
↓ 1 callers
Method
init_temporal_network
r"""When starting training multiple frames, initialize the downsampling network and flow network. Args: cfg_init (dict) :
imaginaire/generators/vid2vid.py:291
↓ 1 callers
Method
init_temporal_network
r"""When starting training multiple frames, initialize the flow network. Args: cfg_init (dict) : Weight initialization config.
imaginaire/generators/fs_vid2vid.py:221
↓ 1 callers
Method
initialize_parameters
(self)
imaginaire/evaluation/caption/clip.py:422
↓ 1 callers
Function
labelcolormap
r"""Create colors for segmentation label ids. Args: N (int): Number of labels.
imaginaire/utils/visualization/common.py:220
↓ 1 callers
Function
linear
r"""Linear fitting function.
imaginaire/utils/visualization/face.py:489
↓ 1 callers
Method
load_pretrained_network
r"""Load a pretrained network.
imaginaire/generators/pix2pixHD.py:134
↓ 1 callers
Function
main
()
train.py:50
↓ 1 callers
Function
main
()
inference.py:39
↓ 1 callers
Function
main
()
evaluate.py:45
↓ 1 callers
Function
main
(args)
projects/gancraft/sch2vox/sch2vox.py:8
↓ 1 callers
Function
main
r""" Build lmdb for training/testing. Usage: python scripts/build_lmdb.py \ --config configs/data_image.yaml \ --data_root /mnt/bi
scripts/build_lmdb.py:40
↓ 1 callers
Function
main
r""" Build lmdb for training/testing. Usage: python scripts/build_index.py \ --data_root /mnt/bigdata01/datasets/test_image \ --ou
scripts/build_index.py:28
↓ 1 callers
Function
main
()
scripts/download_test_data.py:31
↓ 1 callers
Function
main
()
scripts/download_dataset.py:21
↓ 1 callers
Function
make_color_wheel
Generate color wheel according Middlebury color code :return: Color wheel
imaginaire/third_party/flow_net/flownet2/utils/flow_utils.py:167
↓ 1 callers
Method
mc2coco
(self, mc)
imaginaire/model_utils/gancraft/mc_utils.py:324
↓ 1 callers
Method
mc_color
r"""Obtaining Minecraft default color. Args: img (H x W x 1 int32 numpy tensor): Segmentation map.
imaginaire/model_utils/gancraft/mc_utils.py:350
↓ 1 callers
Function
module_to_dict
(module, exclude=[])
imaginaire/third_party/flow_net/flownet2/utils/tools.py:26
↓ 1 callers
Function
normalize_face_keypoints
r"""Normalize face keypoints w.r.t. the reference face keypoints. Args: keypoints (Kx2 numpy array): Target facial keypoints to be normal
imaginaire/utils/visualization/face.py:197
↓ 1 callers
Function
normalize_tensor
(in_feat, eps=1e-5)
imaginaire/evaluation/lpips.py:30
↓ 1 callers
Function
parse_args
()
train.py:28
↓ 1 callers
Function
parse_args
()
inference.py:19
↓ 1 callers
Function
parse_args
()
evaluate.py:23
↓ 1 callers
Function
parse_args
r"""Parse user input arguments
scripts/build_lmdb.py:15
↓ 1 callers
Function
parse_args
r"""Parse user input arguments
scripts/build_index.py:11
↓ 1 callers
Function
parse_args
()
scripts/download_test_data.py:23
↓ 1 callers
Function
parse_args
()
scripts/download_dataset.py:10
↓ 1 callers
Method
perform_individual_video_frame
r"""Perform data augmentation on images only. Args: data (dict): Keys are from data types. Values can be numpy.ndarray
imaginaire/datasets/base.py:307
↓ 1 callers
Function
positional_encoding
(in_feature, pe_degrees, dim=-1, incl_orig=False)
imaginaire/model_utils/gancraft/voxlib/positional_encoding.py:38
↓ 1 callers
Function
positional_encoding_pt
(pts, pe_degrees, dim=-1, incl_orig=False)
imaginaire/model_utils/gancraft/voxlib/positional_encoding.py:45
↓ 1 callers
Method
pre_process
r"""Data pre-processing step for the pix2pixHD method. It takes a dictionary as input where the dictionary contains a label field. The
imaginaire/trainers/pix2pixHD.py:134
↓ 1 callers
Method
pre_process
r"""Custom data pre-processing function. Utilize this function if you need to preprocess your data before sending it to the generator and
imaginaire/trainers/base.py:487
↓ 1 callers
Method
pre_process
r"""Do any data pre-processing here. Args: data (dict): Data used for the current iteration.
imaginaire/trainers/fs_vid2vid.py:55
↓ 1 callers
Function
random_roll
r"""Randomly roll the input tensors along x and y dimensions. Also randomly flip the tensors. Args: tensors (list of 4D tensors): Inp
imaginaire/model_utils/fs_vid2vid.py:814
↓ 1 callers
Function
readFlow
Read .flo file in Middlebury format
imaginaire/third_party/flow_net/flownet2/utils/flow_utils.py:12
↓ 1 callers
Method
recalculate_batch_norm_statistics
r"""Update the statistics in the moving average model. Args: data_loader (pytorch data loader): Data loader for estimating the
imaginaire/trainers/spade.py:189
↓ 1 callers
Function
recursive_update
Recursively update AttrDict d with AttrDict u
imaginaire/config.py:226
↓ 1 callers
Method
render_image
r"""Creates image of (h, w) and fills in colors. Args: point_info (N x 3): (i, j, 3D point idx) per row containing map
imaginaire/model_utils/wc_vid2vid/render.py:102
↓ 1 callers
Method
renderer_update_point_cloud
r"""Update the renderer's color dictionary.
imaginaire/generators/wc_vid2vid.py:80
↓ 1 callers
Method
reset
Reset the renderer.
imaginaire/model_utils/wc_vid2vid/render.py:17
↓ 1 callers
Method
reset
r"""Reset the trainer (for inference) at the beginning of a sequence.
imaginaire/trainers/wc_vid2vid.py:71
↓ 1 callers
Method
reset
r"""Reset the network at the beginning of a sequence.
imaginaire/generators/fs_vid2vid.py:301
↓ 1 callers
Function
rgetattr
Recursively find object and return value
imaginaire/config.py:216
↓ 1 callers
Function
roll
r"""Roll and flip the tensor by specified amounts. Args: t (4D tensor): Input tensor. ny (int): Amount to roll along y dimension.
imaginaire/model_utils/fs_vid2vid.py:832
↓ 1 callers
Method
sample_camera
r"""Sample camera randomly and precompute everything used by both Gen and Dis. Args: data (dict): images (N x 3 x
imaginaire/generators/gancraft.py:237
↓ 1 callers
Function
save_pilimage_in_jpeg
r"""Save PIL Image to JPEG. Args: fullname (str): Full save path. output_img (PIL Image): Image to be saved.
imaginaire/utils/io.py:14
↓ 1 callers
Function
save_response_content
r"""Save response content Args: response: destination: Path to save the file. Returns:
imaginaire/utils/io.py:95
↓ 1 callers
Function
sch
(x)
imaginaire/utils/trainer.py:258
↓ 1 callers
Function
set_sequence_idx
r"""Get sequence index Args: few_shot (bool): If ``True``, uses the few-shot setting. data_loader: dataloader object sequ
imaginaire/evaluation/common.py:548
↓ 1 callers
Function
set_summary_writer
r"""Set summary writer Args: log_dir (str): Log directory.
imaginaire/utils/meters.py:52
↓ 1 callers
Function
slq_red_var
Compute the trace of matrix exponential with reduced variance Arguments: A: square matrix in trace(exp(-t*A)), where t is temperatur
imaginaire/evaluation/msid.py:295
↓ 1 callers
Function
smooth_face_keypoints
r""" Temporally smooth the face keypoints by median filtering. Args: concat_keypoints (TxKx2 numpy array): Face keypoints to be filtered.
imaginaire/utils/visualization/face.py:173
↓ 1 callers
Method
sn_compute_weight
r"""Compute the spectral norm normalized matrix. Args: weight (Parameters): pytorch layer parameter tensor. u (tensor
imaginaire/utils/model_average.py:201
↓ 1 callers
Function
sn_reshape_weight_to_matrix
r"""Reshape weight to obtain the matrix form. Args: weight (Parameters): pytorch layer parameter tensor.
imaginaire/utils/meters.py:23
↓ 1 callers
Method
sn_reshape_weight_to_matrix
r"""Reshape weight to obtain the matrix form. Args: weight (Parameters): pytorch layer parameter tensor. Returns:
imaginaire/utils/model_average.py:183
↓ 1 callers
Method
split_weights
r"""When the desired shape is a list, first divide the input to each corresponding weight shape in the list. Args: weight
imaginaire/generators/fs_vid2vid.py:820
↓ 1 callers
Method
start_of_epoch
r"""Things to do before an epoch. Args: current_epoch (int): Current number of epoch.
imaginaire/trainers/base.py:327
↓ 1 callers
Method
sum_mul
r"""Given a weight shape, compute the number of elements needed for weight + bias. If input is a list of shapes, sum all the elements.
imaginaire/generators/fs_vid2vid.py:871
↓ 1 callers
Function
tensor2pilimage
r"""Convert a 3 dimensional torch tensor to a PIL image with the desired width and height. Args: image (3 x W1 x H1 tensor): Image te
imaginaire/utils/visualization/common.py:43
↓ 1 callers
Function
tensor2pose
r"""Convert output tensor to a numpy pose map. Args: label_tensor (3D/4D/5D tensor): Label tensor. Returns: (HxWx3 numpy arr
imaginaire/utils/visualization/pose.py:341
↓ 1 callers
Method
test
r"""Run inference on all sequences. Args: test_data_loader (object): Test data loader. root_output_dir (str): Locatio
imaginaire/trainers/vid2vid.py:324
↓ 1 callers
Method
test_single
r"""The inference function. If output_dir exists, also save the output image. Args: data (dict): Training data at the cur
imaginaire/trainers/wc_vid2vid.py:153
↓ 1 callers
Function
to_channels_last
r"""Move all data to ``channels_last`` format. Args: data (dict, list or tensor): Input data.
imaginaire/utils/misc.py:127
↓ 1 callers
Function
to_float
r"""Move all halfs to float. Args: data (dict, list or tensor): Input data.
imaginaire/utils/misc.py:109
↓ 1 callers
Function
trans_vec_homo
r"""3-dimensional Homogeneous matrix and regular vector multiplication Convert v to homogeneous vector, perform M-V multiplication, and convert ba
imaginaire/model_utils/gancraft/mc_utils.py:63
↓ 1 callers
Method
uint32_to_4uint8
(x)
imaginaire/model_utils/gancraft/mc_utils.py:345
↓ 1 callers
Method
update_point_cloud
r"""Updates point cloud with new points and colors. Args: image (H x W x 3, uint8): Select colors from this image to assign to
imaginaire/model_utils/wc_vid2vid/render.py:63
↓ 1 callers
Function
write_entry
r"""Dump binary contents of file associated with key to LMDB. Args: txn: handle to LMDB. key (str): LMDB key for this filepath.
imaginaire/utils/lmdb.py:43
↓ 1 callers
Method
write_image
r"""Write the value in the tensorboard. Args: img_grid: step (int): Epoch or iteration number.
imaginaire/utils/meters.py:136
↓ 1 callers
Function
write_summary
Utility function for write summary to log_writer.
imaginaire/utils/meters.py:63
Method
__call__
r""" Args: seg_map (tensor): Input Segmentation maps to be colorized.
imaginaire/utils/visualization/common.py:268
Method
__call__
(self, module, input)
imaginaire/layers/weight_norm.py:174
Method
__enter__
(self)
imaginaire/third_party/flow_net/flownet2/utils/tools.py:37
Method
__exit__
(self, exc_type, exc_value, traceback)
imaginaire/third_party/flow_net/flownet2/utils/tools.py:41
Method
__getitem__
(self, idx)
imaginaire/model_utils/gancraft/camctl.py:291
Method
__getitem__
(self, idx)
imaginaire/model_utils/gancraft/camctl.py:402
Method
__getitem__
r"""Gets selected files. Args: index (int): Index into dataset. concat (bool): Concatenate all items in labels?
imaginaire/datasets/images.py:112
Method
__getitem__
r"""Entry function for dataset.
imaginaire/datasets/base.py:244
Method
__getitem__
(self, index)
imaginaire/datasets/paired_few_shot_videos_native.py:232
Method
__getitem__
(self, index)
imaginaire/datasets/paired_videos.py:287
Method
__getitem__
(self, index)
imaginaire/datasets/dummy.py:14
Method
__getitem__
r"""Gets selected files. Args: index (int): Index into dataset. concat (bool): Concatenate all items in labels?
imaginaire/datasets/unpaired_few_shot_images.py:129
Method
__getitem__
r"""Gets selected files. Args: index (int): Index into dataset. concat (bool): Concatenate all items in labels?
imaginaire/datasets/unpaired_images.py:72
Method
__init__
(self, *args, **kwargs)
imaginaire/config.py:22
Method
__init__
( self, module, beta=0.9999, start_iteration=1000, remove_wn_wrapper=True )
imaginaire/utils/model_average.py:47
Method
__init__
(self, name, reduce=True)
imaginaire/utils/meters.py:88
Method
__init__
(self, device_idx)
imaginaire/utils/gpu_affinity.py:26
Method
__init__
r"""Initializes augmentation pipeline. Args: aug_list (list): List of augmentation operations in sequence. individual
imaginaire/utils/data.py:31
Method
__init__
(self, module)
imaginaire/utils/trainer.py:189
Method
__init__
(self, n=35)
imaginaire/utils/visualization/common.py:264
Method
__init__
(self)
imaginaire/model_utils/gancraft/mc_lbl_reduction.py:10
Method
__init__
r"""GAN loss constructor. Args: target_real_label (float): Desired output label for the real images. target_fake_labe
imaginaire/model_utils/gancraft/loss.py:11
Method
__init__
(self, in_features, out_features, style_features,
imaginaire/model_utils/gancraft/layers.py:80
Method
__init__
(self, voxel_t, preproc_ver)
imaginaire/model_utils/gancraft/mc_utils.py:176
Method
__init__
(self)
imaginaire/model_utils/gancraft/mc_utils.py:254
Method
__init__
(self, voxel, maxstep=128, pattern=0, cam_ang=73, smooth_decay_multiplier=1.0)
imaginaire/model_utils/gancraft/camctl.py:10
← previous
next →
401–500 of 1,077, ranked by callers