MCPcopy Create free account

hub / github.com/NVlabs/neuralangelo / functions

Functions410 in github.com/NVlabs/neuralangelo

↓ 20 callersFunctionis_master
r"""check if current process is the master
imaginaire/utils/distributed.py:78
↓ 16 callersMethodload
r"""Load network weights, optimizer parameters, scheduler parameters from a checkpoint. Args: checkpoint_path (str): Path to the c
imaginaire/trainers/base.py:606
↓ 14 callersMethodsdf
(self, points_3D)
projects/neuralangelo/utils/modules.py:73
↓ 13 callersFunctionwandb_image
(images, from_range=(0, 1))
imaginaire/utils/visualization.py:21
↓ 9 callersFunctionget_rank
r"""Get rank of the thread.
imaginaire/utils/distributed.py:39
↓ 6 callersFunctionget_world_size
r"""Get world size. How many GPUs are available in this job.
imaginaire/utils/distributed.py:48
↓ 6 callersMethodinvert
(self, pose, use_inverse=False)
projects/nerf/utils/camera.py:46
↓ 6 callersMethodpreload_threading
(self, load_func, num_workers, data_str="images")
projects/nerf/datasets/base.py:34
↓ 6 callersFunctionpreprocess_image
(images, from_range=(0, 1), cmap="gray")
imaginaire/utils/visualization.py:29
↓ 5 callersFunctionangle_to_rotation_matrix
(a, axis)
projects/nerf/utils/camera.py:269
↓ 5 callersMethodcompose
(self, pose_list)
projects/nerf/utils/camera.py:54
↓ 5 callersMethodsave
r"""Save network weights, optimizer parameters, scheduler parameters to a checkpoint. Args: current_epoch (int): Current epoch.
imaginaire/trainers/base.py:567
↓ 4 callersMethod_get_full_path
(self, file)
imaginaire/trainers/base.py:651
↓ 4 callersFunctionget_activation
(activ, **kwargs)
projects/neuralangelo/utils/misc.py:92
↓ 4 callersMethodlog_wandb_images
(self, data, mode=None, max_samples=None)
projects/nerf/trainers/base.py:87
↓ 4 callersMethodlog_wandb_scalars
(self, data, mode=None)
projects/nerf/trainers/base.py:75
↓ 4 callersMethodskew_symmetric
(self, w)
projects/nerf/utils/camera.py:149
↓ 4 callersMethodtaylor_A
(self, x, nth=10)
projects/nerf/utils/camera.py:157
↓ 4 callersMethodwrite
r"""Record the value
imaginaire/trainers/utils/meters.py:104
↓ 3 callersMethod_add_dataset
r"""Adds an LMDB dataset to a list of datasets. Args: root (str): Path to LMDB or folder dataset. filenames: List of
imaginaire/datasets/base.py:271
↓ 3 callersFunction_create_logdir
(_config_path, _logdir, _root_dir)
imaginaire/trainers/utils/logging.py:40
↓ 3 callersFunction_get_data_loader
r"""Return data loader . Args: cfg (obj): Global configuration file. dataset (obj): PyTorch dataset object. batch_size (i
imaginaire/datasets/utils/get_dataloader.py:78
↓ 3 callersMethod_get_transform
r"""Convert numpy to torch tensor. Args: normalize (bool): Normalize image i.e. (x - 0.5) * 2. Goes from [0, 1] -
imaginaire/datasets/base.py:255
↓ 3 callersMethodfinalize
(self, cfg)
imaginaire/trainers/base.py:548
↓ 3 callersMethodforward
(self, data)
projects/neuralangelo/model.py:66
↓ 3 callersFunctionrecursive_update
Recursively update AttrDict d with AttrDict u
imaginaire/config.py:168
↓ 3 callersMethodset_normal_epsilon
(self)
projects/neuralangelo/utils/modules.py:102
↓ 3 callersFunctionset_random_seed
r"""Set random seeds for everything, including random, numpy, torch.manual_seed, torch.cuda_manual_seed. torch.cuda.manual_seed_all is not necessa
imaginaire/utils/set_random_seed.py:21
↓ 3 callersMethodtaylor_B
(self, x, nth=10)
projects/nerf/utils/camera.py:167
↓ 3 callersMethodtest
The evaluation/inference engine. Args: data_loader: The data loader. output_dir: Output directory to dump the test res
projects/nerf/trainers/base.py:118
↓ 3 callersFunctionto_hom
(X)
projects/nerf/utils/camera.py:243
↓ 3 callersMethodto_tensor
r"""Convert all images to tensor. Args: data (dict): Dict containing data_type as key, with each value as a list
imaginaire/datasets/base.py:391
↓ 2 callersFunctionPP
(x)
imaginaire/utils/termcolor.py:32
↓ 2 callersMethodR_to_q
(self, R, eps=1e-6)
projects/nerf/utils/camera.py:198
↓ 2 callersMethod__init__
(self, cfg_sdf)
projects/neuralangelo/utils/modules.py:26
↓ 2 callersMethod_compute_loss
(self, data, mode=None)
projects/nerf/trainers/base.py:100
↓ 2 callersFunction_cv_to_gl
(cv)
projects/neuralangelo/scripts/convert_data_to_json.py:127
↓ 2 callersMethod_get_latest_pointer_path
(self)
imaginaire/trainers/base.py:654
↓ 2 callersMethod_get_total_loss
r"""Return the total loss to be backpropagated.
imaginaire/trainers/base.py:531
↓ 2 callersFunctionalert
(x, color='red')
imaginaire/utils/termcolor.py:39
↓ 2 callersFunctionbarrier
()
imaginaire/utils/distributed.py:87
↓ 2 callersFunctionbound_by_points
(points3D)
projects/neuralangelo/scripts/convert_data_to_json.py:80
↓ 2 callersFunctionbound_by_pose
(images)
projects/neuralangelo/scripts/convert_data_to_json.py:49
↓ 2 callersFunctioncam2world
(X, pose)
projects/nerf/utils/camera.py:263
↓ 2 callersMethodcheckpoint_tic
(self)
imaginaire/utils/misc.py:366
↓ 2 callersMethodcompute_gradients
(self, x, training=False, sdf=None)
projects/neuralangelo/utils/modules.py:115
↓ 2 callersFunctioncyan
(x)
imaginaire/utils/termcolor.py:21
↓ 2 callersMethoddevice
Return device on which model resides.
imaginaire/models/base.py:28
↓ 2 callersMethodend_of_iteration
r"""Things to do after an iteration. Args: data (dict): Data used for the current iteration. current_epoch (int): Cur
imaginaire/trainers/base.py:295
↓ 2 callersFunctionexport_to_json
(cameras, images, bounding_box, center, radius, file_path)
projects/neuralangelo/scripts/convert_data_to_json.py:133
↓ 2 callersFunctionfind_invalid_points
(points)
projects/nerf/utils/camera.py:490
↓ 2 callersMethodforward
Forward pass the NeRF (MLP). Args: points_3D (tensor [batch,...,3]): 3D points in world space. ray_unit (tensor [batc
projects/nerf/models/nerf.py:207
↓ 2 callersMethodforward
(self, points_3D, with_sdf=True, with_feat=True)
projects/neuralangelo/utils/modules.py:68
↓ 2 callersFunctionget_camera_mesh
(pose, depth=1)
projects/nerf/utils/visualize.py:22
↓ 2 callersMethodget_op
r"""Get function to apply for specific op. Args: op (str): Name of the op. Returns: function handle.
imaginaire/datasets/base.py:464
↓ 2 callersFunctionget_trainer
Return the trainer object. Args: cfg (Config): Loaded config object. is_inference (bool): Inference mode. Returns: (
imaginaire/trainers/utils/get_trainer.py:21
↓ 2 callersFunctionget_xyz_indicators
(pose, length=0.1)
projects/nerf/utils/visualize.py:58
↓ 2 callersFunctiongreen
(x)
imaginaire/utils/termcolor.py:19
↓ 2 callersFunctioninit_dist
r"""Initialize distributed training
imaginaire/utils/distributed.py:21
↓ 2 callersMethodload_config
(self, filename)
imaginaire/config.py:107
↓ 2 callersFunctionmerge_meshes
(vertices, faces)
projects/nerf/utils/visualize.py:39
↓ 2 callersFunctionparse_cmdline_arguments
Parse arguments from command line. Syntax: --key1.key2.key3=value --> value --key1.key2.key3= --> None --key1.ke
imaginaire/config.py:201
↓ 2 callersFunctionrecursive_update_strict
Recursively update AttrDict d with AttrDict u with strict matching
imaginaire/config.py:183
↓ 2 callersMethodrender_rays
(self, center, ray_unit, sample_idx=None, stratified=False, density_reg=None)
projects/nerf/models/nerf.py:122
↓ 2 callersMethodrender_rays
(self, center, ray_unit, sample_idx=None, stratified=False)
projects/neuralangelo/model.py:124
↓ 2 callersFunctionrequires_grad
r""" Set a model to require gradient or not. Args: model (nn.Module): Neural network model. require (bool): Whether the network r
imaginaire/utils/misc.py:69
↓ 2 callersMethodreset
r"""Reset the meter values
imaginaire/trainers/utils/meters.py:98
↓ 2 callersMethodreset_timeout_counter
(self)
imaginaire/utils/misc.py:375
↓ 2 callersFunctionsample_on_spherical_cap
Sample n points on the view hemisphere within the angle to x. Args: anchor (tensor [...,3]): Reference 3-D unit vector on the view hemisph
projects/nerf/utils/camera.py:457
↓ 2 callersFunctionsch
(x)
projects/neuralangelo/utils/misc.py:43
↓ 2 callersFunctionsch
(x)
imaginaire/trainers/utils/get_trainer.py:201
↓ 2 callersMethodset_active_levels
(self, current_iter=None)
projects/neuralangelo/utils/modules.py:97
↓ 2 callersFunctionset_affinity
r"""Set GPU affinity Args: gpu_id (int): Which gpu device.
imaginaire/utils/gpu_affinity.py:59
↓ 2 callersMethodset_data_loader
Set the data loader corresponding to the indicated split. Args: split (str): Must be either 'train', 'val', or 'test'.
imaginaire/trainers/base.py:85
↓ 2 callersMethodstart_of_iteration
r"""Things to do before an iteration. Args: data (dict): Data used for the current iteration. current_iteration (int)
imaginaire/trainers/base.py:281
↓ 2 callersFunctionto_device
r"""Move all tensors inside data to device. Args: data (dict, list, or tensor): Input data. device (str): 'cpu' or 'cuda'.
imaginaire/utils/misc.py:83
↓ 2 callersMethodtrain
r"""Generic training loop. Main structure in a nutshell: for epoch in [start_epoch, end_epoch]: for batch in dataset (one
imaginaire/trainers/base.py:471
↓ 1 callersMethodSO3_to_so3
(self, R, eps=1e-7)
projects/nerf/utils/camera.py:114
↓ 1 callersMethod__init__
(self, cfg_model, cfg_data)
projects/nerf/models/ingp.py:22
↓ 1 callersMethod__init__
(self, cfg_model)
projects/nerf/models/nerf.py:168
↓ 1 callersMethod__init__
(self, filename=None, verbose=False)
imaginaire/config.py:87
↓ 1 callersMethod__init__
(self, sampler)
imaginaire/datasets/utils/dataloader.py:44
↓ 1 callersMethod__iter__
(self)
imaginaire/datasets/utils/dataloader.py:47
↓ 1 callersMethod__repr__
Print all variables.
imaginaire/config.py:59
↓ 1 callersFunction_calculate_model_size
r"""Calculate number of parameters in a PyTorch network. Args: model (obj): PyTorch network. Returns: (int): Number of param
imaginaire/trainers/utils/get_trainer.py:94
↓ 1 callersMethod_check_checkpoint_exists
(self, checkpoint_path)
imaginaire/trainers/base.py:672
↓ 1 callersMethod_collect_state_dicts
r"""Collect all the state dicts from network modules to be saved.
imaginaire/trainers/base.py:598
↓ 1 callersMethod_compute_dataset_stats
r"""Computes required statistics about dataset. All children need to implement their own.
imaginaire/datasets/base.py:245
↓ 1 callersMethod_create_mapping
r"""Creates mapping from data sample idx to actual LMDB keys. All children need to implement their own. Returns: self
imaginaire/datasets/base.py:236
↓ 1 callersMethod_detach_losses
r"""Detach all logging variables to prevent potential memory leak.
imaginaire/trainers/base.py:543
↓ 1 callersMethod_encode_3D
(self, points_3D)
projects/nerf/models/nerf.py:237
↓ 1 callersMethod_encode_view
(self, ray_unit)
projects/nerf/models/nerf.py:245
↓ 1 callersMethod_end_of_epoch
r"""Operations to do after an epoch. Args: data (dict): Data used for the current iteration. current_epoch (int): Cur
imaginaire/trainers/base.py:400
↓ 1 callersMethod_end_of_iteration
r"""Operations to do after an iteration. Args: data (dict): Data used for the current iteration. current_epoch (int):
imaginaire/trainers/base.py:390
↓ 1 callersMethod_extra_step
(self, data)
imaginaire/trainers/base.py:367
↓ 1 callersMethod_geometric_init
(self, linear, k_in, k_out, first=False, skip_dim=0)
projects/neuralangelo/utils/mlp.py:71
↓ 1 callersMethod_geometric_init_sdf
(self, linear, k_in, out_bias=0., invert=False)
projects/neuralangelo/utils/mlp.py:79
↓ 1 callersMethod_get_coarse2fine_mask
(self, points_enc, feat_dim)
projects/neuralangelo/utils/modules.py:110
↓ 1 callersMethod_get_ffmpeg_dicts
(self)
projects/nerf/trainers/nerf.py:106
↓ 1 callersMethod_get_fn_params
r"""Find key-value inputs to function from string definition. Args: function_string (str): String with function name and args. e.
imaginaire/datasets/base.py:579
next →1–100 of 410, ranked by callers