MCPcopy Create free account

hub / github.com/NVlabs/neuralangelo / functions

Functions410 in github.com/NVlabs/neuralangelo

Function_getattr
r"""Get attribute.
imaginaire/config.py:161
Method_init_loss
(self, cfg)
projects/nerf/trainers/nerf.py:31
Method_init_loss
(self, cfg)
projects/neuralangelo/trainer.py:34
Method_preload_worker
(self, data_list, load_func, q, lock, idx_tqdm)
projects/nerf/datasets/base.py:25
Method_save_worker
(self, save_dict, checkpoint_file, rank=0)
imaginaire/trainers/base.py:589
Method_start_of_iteration
(self, data, current_iteration)
projects/neuralangelo/trainer.py:63
Functionalarm_handler
(timeout_period, signum, frame)
imaginaire/utils/misc.py:282
Functionalpha_compositing_weights
Alpha compositing of (sampled) MPIs given their RGBs and alphas. Args: alphas (tensor [batch,ray,samples]): The predicted opacity values.
projects/nerf/utils/render.py:87
Functionapply_imagenet_normalization
r"""Normalize using ImageNet mean and std. Args: input (4D tensor NxCxHxW): The input images, assuming to be [-1, 1]. Returns:
imaginaire/utils/misc.py:264
Methodapply_ops
r"""Apply any ops from op_dict to data types. Args: data (dict): Dict containing data_type as key, with each value
imaginaire/datasets/base.py:414
Methodaveraged_model
(self)
imaginaire/models/utils/model_average.py:79
Functionblue
(x)
imaginaire/utils/termcolor.py:20
Methodbuild_model
(self, cfg_model)
projects/nerf/models/ingp.py:41
Functioncalibrate_batch_norm_momentum
r"""Calibrate batch norm momentum Args: m: Pytorch module
imaginaire/models/utils/model_average.py:30
Functioncam2img
(X, cam_intr)
projects/nerf/utils/camera.py:255
Functioncomposite
Composite the samples to render the RGB/depth/opacity of the corresponding pixels. Args: quantities (tensor [batch,ray,samples,k]): The qu
projects/nerf/utils/render.py:102
Functioncontract_mip
Contraction function on mip-NeRF 360 Gaussians. Args: mean (tensor [...,3]): The mean values. cov (tensor [...,3,3]): The covaria
projects/nerf/utils/nerf_util.py:253
Functionconvert_NDC
(center, ray, intr, near=1)
projects/nerf/utils/camera.py:323
Functionconvert_NDC2
(center, ray, intr)
projects/nerf/utils/camera.py:343
Methoddecode_json_list
r"""Decode list of strings in json to objects.
imaginaire/datasets/base.py:477
Methoddecode_pkl_list
r"""Decode list of pickled strings to objects.
imaginaire/datasets/base.py:482
Functiondevice_get_count
r"""Get number of devices
imaginaire/utils/gpu_affinity.py:30
Functiondist_reduce_tensor
r""" Reduce to rank 0
imaginaire/utils/distributed.py:111
Methoddump_test_results
(self, data_all, output_dir)
projects/nerf/trainers/nerf.py:84
Functionextract_texture
(xyz, neural_rgb, neural_sdf, appear_embed)
projects/neuralangelo/utils/mesh.py:53
Methodflip_hdr
r"""Flip hdr images. Args: data (dict): Keys are from data types. Values can be numpy.ndarray or list of numpy.nd
imaginaire/datasets/base.py:372
Methodflush
r"""Write the value in the tensorboard. Args: step (int): Epoch or iteration number.
imaginaire/trainers/utils/meters.py:111
Methodforward
(self, input)
projects/nerf/utils/nerf_util.py:186
Methodforward
(self, points_3D, ray_unit, density_reg=None)
projects/nerf/models/ingp.py:63
Methodforward
(self, data)
projects/nerf/models/nerf.py:55
Methodforward
(self, points_3D, normals, rays_unit, feats, app)
projects/neuralangelo/utils/modules.py:209
Methodforward
(self, points_3D, rays_unit, app_outside)
projects/neuralangelo/utils/modules.py:270
Methodforward
(self, input, with_sdf=True, with_feat=True)
projects/neuralangelo/utils/mlp.py:55
Methodforward
r"""PyTorch module forward function overload.
imaginaire/trainers/utils/get_trainer.py:65
Methodforward
r"""PyTorch module forward function overload.
imaginaire/models/utils/model_average.py:83
Functionfundamental_matrix
Compute Fundamental Matrix from a relative pose and intrinsics. param poses: [views, 3, 4] tensor representing relative poses. intr1: [
projects/nerf/utils/camera.py:408
Functionget_3D_points_from_dist
(center, ray_unit, dist, multi=True)
projects/nerf/utils/camera.py:314
Functionget_and_setattr
r"""Get attribute with default choice. If attribute does not exist, set it using the default value. Args: cfg (obj) : Config options.
imaginaire/utils/misc.py:173
Functionget_center_and_ray
Args: pose (tensor [3,4]/[B,3,4]): Camera pose. intr (tensor [3,3]/[B,3,3]): Camera intrinsics. image_size (list of int):
projects/nerf/utils/camera.py:283
Functionget_inverse_depth
(depth, opacity=None, camera_ndc=False, eps=1e-10)
projects/nerf/utils/nerf_util.py:150
Methodget_name
r"""Get obect name
imaginaire/utils/gpu_affinity.py:43
Functionget_nested_attr
r"""Iteratively try to get the attribute from cfg. If not found, return default. Args: cfg (obj): Config file. attr_name (str
imaginaire/utils/misc.py:190
Functionget_oscil_novel_view_poses
(N=60, angle=0.05, dist=5)
projects/nerf/utils/camera.py:372
Functionget_pixel_radii
(intr)
projects/nerf/utils/nerf_util.py:208
Functionget_ray_depth_plane_intersection
Compute the intersection of a ray with a depth plane. Args: center (tensor [B,HW,3]): Camera center of the target pose. ray (tenso
projects/nerf/utils/camera.py:419
Functionget_spherical_harmonics
(dirs, levels)
projects/neuralangelo/utils/spherical_harmonics.py:47
Functionget_weight_stats
r"""Get weight state Args: mod: Pytorch module
imaginaire/trainers/utils/meters.py:40
Functiongradient_norm
r"""Return the gradient norm of model. Args: model (PyTorch module): Your network.
imaginaire/utils/misc.py:211
Functiongrey
(x)
imaginaire/utils/termcolor.py:24
Methodinference
(self, data)
projects/neuralangelo/model.py:74
Functioninit_func
r"""Init function Args: m: module to be weight initialized.
imaginaire/models/utils/init_weight.py:31
Methodinit_losses
(self, cfg)
projects/nerf/trainers/base.py:36
Methodinterpolate
Interpolate between two poses with Slerp. Args: pose_a (tensor [...,3,4]): Pose at time t=0. pose_b (tensor [...,3,4])
projects/nerf/utils/camera.py:80
Methodinterpolate
(self, q1, q2, alpha)
projects/nerf/utils/camera.py:228
Functionintersect_with_sphere
(center, ray_unit, radius=1.0)
projects/nerf/utils/nerf_util.py:199
Methodinvert
(self, q)
projects/nerf/utils/camera.py:213
Functionis_local_master
()
imaginaire/utils/distributed.py:101
Functionk3d_visualize_pose
(poses, vis_depth=0.5, xyz_length=0.1, center_size=0.1, xyz_width=0.02, mesh_opacity=0.05)
projects/nerf/utils/visualize.py:81
Methodl2_normalize
r"""L2 normalization.
imaginaire/datasets/base.py:492
Methodlist_to_numpy
r"""Convert list of numeric values to numpy array.
imaginaire/datasets/base.py:487
Methodlist_to_tensor
r"""Convert list of numeric values to tensor.
imaginaire/datasets/base.py:472
Methodlog_wandb_images
(self, data, mode=None, max_samples=None)
projects/nerf/trainers/nerf.py:63
Methodlog_wandb_images
(self, data, mode=None, max_samples=None)
projects/neuralangelo/trainer.py:94
Methodlog_wandb_scalars
(self, data, mode=None)
projects/nerf/trainers/nerf.py:55
Methodlog_wandb_scalars
(self, data, mode=None)
projects/neuralangelo/trainer.py:77
Functionmagenta
(x)
imaginaire/utils/termcolor.py:23
Functionmaster_first
()
imaginaire/utils/distributed.py:93
Functionmaster_only
r"""Apply this function only to the master GPU.
imaginaire/utils/distributed.py:66
Functionmaster_only_print
r"""master-only print
imaginaire/utils/distributed.py:106
Methodmodel_forward
(self, data)
projects/nerf/trainers/base.py:90
Methodperform_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:314
Functionplotly_visualize_pose
(poses, vis_depth=0.5, xyz_length=0.5, center_size=2, xyz_width=5, mesh_opacity=0.05)
projects/nerf/utils/visualize.py:120
Functionpositional_encoding
Encode input into position codes. Args: input (tensor [bs, ..., N]): A batch of data with N dimension. num_freq_bases: (int): The
projects/nerf/utils/nerf_util.py:134
Methodproduct
(self, q1, q2)
projects/nerf/utils/camera.py:219
Functionrandom_shift
r"""Randomly shift the input tensor. Args: x (4D tensor): The input batch of images. offset (int): The maximum offset ratio that
imaginaire/utils/misc.py:226
Functionray_generator
Yield sampled rays for coordinate-based model to predict NeRF. Args: pose (tensor [bs,3,4]): Camera poses ([R,t]). intr (tensor [b
projects/nerf/utils/nerf_util.py:86
Functionred
(x)
imaginaire/utils/termcolor.py:18
Functionreparametrize_dist
Reparametrize the sampled distance values according to param_type. Args: dist (tensor): Sampled distance values. param_type (str):
projects/nerf/utils/nerf_util.py:71
Methodreset
(self)
imaginaire/utils/misc.py:304
Functionreset_batch_norm
r"""Reset batch norm statistics Args: m: Pytorch module
imaginaire/models/utils/model_average.py:20
Functionrotation_distance
(R1, R2, eps=1e-7)
projects/nerf/utils/camera.py:364
Functionrsetattr
Recursively find object and set value
imaginaire/config.py:152
Functionsample_dists
Sample points on ray shooting from pixels using distance. Args: ray_size (int [2]): Integers for [batch size, number of rays]. ran
projects/nerf/utils/nerf_util.py:20
Functionsample_dists_from_pdf
Sample points on ray shooting from pixels using the weights from the coarse NeRF. Args: bin (tensor [batch_size, num_rays, intvs]): bins o
projects/nerf/utils/nerf_util.py:41
Functionsample_on_spherical_cap_northern
Sample n points only the northern view hemisphere within the angle to x.
projects/nerf/utils/camera.py:487
Functionsantize_args
(name, locals_fn)
imaginaire/utils/misc.py:31
Methodscale_center
Scale the camera center from the origin. 0 = R@c+t --> c = -R^T@t (camera center in world coordinates) 0 = R@(sc)+t' --> t' = -R@(sc)
projects/nerf/utils/camera.py:71
Methodse3_to_SE3
(self, wu)
projects/nerf/utils/camera.py:123
Methodset_input_dims
(self, cfg_model)
projects/nerf/models/ingp.py:36
Methodset_iteration
(self, start_index)
imaginaire/datasets/utils/sampler.py:116
Functionset_summary_writer
r"""Set summary writer Args: log_dir (str): Log directory.
imaginaire/trainers/utils/meters.py:57
Methodsetup_scheduler
(self, cfg, optim)
projects/neuralangelo/trainer.py:37
Functionslice_by_ray_idx
(var, ray_idx)
projects/nerf/utils/nerf_util.py:127
Functionslice_tensor
r"""Slice all tensors from start to end. Args: data (dict, list or tensor): Input data.
imaginaire/utils/misc.py:157
Methodso3_to_SO3
(self, w)
projects/nerf/utils/camera.py:105
Functionsplit_labels
r"""Split concatenated labels into their parts. Args: labels (torch.Tensor): Labels obtained through concatenation. label_lengths
imaginaire/utils/misc.py:44
Functionsystem_get_driver_version
r"""Get Driver Version
imaginaire/utils/gpu_affinity.py:25
Methodtest
r"""Compute results images and save the results in the specified folder. Args: data_loader (torch.utils.data.DataLoader): PyTorch
imaginaire/trainers/base.py:523
Functionto_float
r"""Move all halfs to float. Args: data (dict, list or tensor): Input data.
imaginaire/utils/misc.py:140
Functionto_full_image
(image, image_size=None, from_vec=True)
projects/neuralangelo/utils/misc.py:110
← previousnext →301–400 of 410, ranked by callers