MCPcopy Create free account

hub / github.com/apple/ml-pointersect / functions

Functions743 in github.com/apple/ml-pointersect

↓ 2 callersMethod_test
(self, b=10, n=20, max_size=20, mode='ind')
tests/pointersect/pr/cuda/test_cuda.py:23
↓ 2 callersFunctionapply_gradient_allreduce
This version of DistributedDataParallel is designed to be used in conjunction with the multiproc.py launcher included with this example. It a
cdslib/core/utils/multigpu_utils.py:83
↓ 2 callersFunctioncat_dict
Given a list of dict, each of which contains torch.Tensor or a list of torch.Tensor, we concat along `dim` and create a dict by concat each o
plib/utils.py:116
↓ 2 callersFunctionclean_meshes
Clean the meshes in mesh_filenames. Note that the actual cleaning will only be executed by rank=0. The rest of the ranks should wait for
pointersect/data/dataset_helper.py:39
↓ 2 callersFunctioncompute_mse
Compute the mean squared error between arr and ref. The average is taken over the d_shape. Args: arr: (*b_shape, *d_shape)
pointersect/inference/inference_utils.py:134
↓ 2 callersMethodcompute_receptive_fields
Compute the receptive fields of each layers. Returns: list of the length of each layer's receptive field.
cdslib/core/nn/modules/conv.py:635
↓ 2 callersFunctionconstruct_coord_frame
Get a coordinate frame from z and y vector. z will be used directly as the z axis. y will be made orthogonal to y and used as the y axis.
plib/rigid_motion.py:410
↓ 2 callersFunctiondetach
Detach each element in x, regardless if it is a tensor or nested list of tensors.
cdslib/core/nn/nn_utils.py:103
↓ 2 callersMethoddrop_features
Drop features related to camera pose used to capture the point
pointersect/inference/structures.py:149
↓ 2 callersMethodexp_skew_symmetric
Returns exp(t*S) of a 3*3 skew symmetric matrix to get a rotation matrix.
plib/rigid_motion.py:49
↓ 2 callersFunctionextents
(ts)
cdslib/core/utils/print_and_save.py:674
↓ 2 callersMethodfrom_o3d_pcd
Return a point cloud object from o3d_pcd Args: o3d_pcd: (n,) Returns: (b=1, n)
pointersect/inference/structures.py:73
↓ 2 callersFunctiongenerate_patch_uv
Generate uv coordinates ([0, w), [0, h)) of the patches centered at patch_center. Args: patch_center: (*b, 2) the center
plib/utils.py:2814
↓ 2 callersFunctiongenerate_point
Generate 3D point coordinates and related rgb feature Args: rgb_image: (h, w, 3) rgb depth_image: (h, w) depth, along z dire
plib/render.py:375
↓ 2 callersMethodget_camera_frames
Create o3d meshes of camera frames
pointersect/inference/structures.py:1978
↓ 2 callersFunctionget_clean_mesh_filenames
Get the clean the meshes' filenames in mesh_filenames. Args: mesh_filenames: a list containing the meshes to be cleaned.
pointersect/data/dataset_helper.py:106
↓ 2 callersFunctionget_cross_product_matrix
Given a (*, 3) vector v, return a (*, 3, 3) cross_product matrix [v]_x, such that for all (3,) vector u, we have v * u = [v]_x * u. Vx =
plib/rigid_motion.py:313
↓ 2 callersFunctionget_dataset_mesh_filename
()
pointersect/data/dataset_helper.py:21
↓ 2 callersFunctionget_grid_idx
Compute the grid index given xyz_w. Args: points: (*, n, 3) grid_size: (*, 3) long. number of grid ce
pointersect/pr/naive.py:75
↓ 2 callersMethodget_init_means
Return the initial mean of each gaussian Args: batch_size: Batch size device:
cdslib/core/nn/modules/attention.py:80
↓ 2 callersMethodget_inv_V
Return V^-1 = I - 0.5 * S + 1/theta^2 * (1 - theta * sin(theta) / (2 * (1 - cos(theta)))) * S^2
plib/rigid_motion.py:153
↓ 2 callersMethodget_pidx
get the pointer to the point index set
pointersect/pr/cpp/pr.cpp:46
↓ 2 callersMethodget_t_times_V
Returns t * V(t, S), where V(t, S) = I + (1 - cos(t * theta)) / (t * theta)^2 * t * S + (t * theta - sin(t * theta)) / (t * theta)^3
plib/rigid_motion.py:128
↓ 2 callersFunctionget_tex_model_list
given setting (train/test), generate a list of obj file names in the tex dataset Args: setting: train/test num_classes: numbe
pointersect/data/genlist.py:19
↓ 2 callersMethodget_zero_hidden_states
Generate all-zero hidden states that can be used to initialize the model or as a template. Args: batch_size:
cdslib/core/nn/modules/graves.py:518
↓ 2 callersMethodinsert_point_at_inf
insert a point representing inf at n=0
pointersect/inference/structures.py:170
↓ 2 callersMethodinverse
Returns H^-1 given RigidMotion H
plib/rigid_motion.py:42
↓ 2 callersFunctionload_and_mix_mesh_filename
Load mesh files as o3d meshes, randomly combine meshes to form more complex meshes. Args: mesh_filenames: list of f
pointersect/data/dataset_helper.py:348
↓ 2 callersFunctionload_mesh_filename
Load mesh files as o3d meshes. Args: mesh_filenames: list of filenames Returns: list of o3d meshes
pointersect/data/dataset_helper.py:308
↓ 2 callersMethodlog_rotation
Return the log(R) where R is a rotation matrix. So it returns a skew symmetric matrix.
plib/rigid_motion.py:67
↓ 2 callersFunctionpinhole_projection
Compute the image coordinates of the 3D points in the world. Args: xyz_w: (*b_shape, *n_shape, 3) the points in world co
plib/utils.py:1199
↓ 2 callersMethodrasterize_surfel
Render the point cloud using surfel rasterization. Args: camera: camera (b, q) point_size:
pointersect/inference/structures.py:720
↓ 2 callersMethodrealize_valid_mask
(self)
pointersect/inference/structures.py:699
↓ 2 callersMethodregister_var_to_load
Register variable to be loaded during retraining.
cdslib/core/models/base_model.py:82
↓ 2 callersFunctionrender_mesh
Given a mesh file (as ground truth), 1) sample point cloud using RGBD cameras, or directly sample from mesh 2) render the point cloud fro
pointersect/inference/main.py:129
↓ 2 callersFunctionrender_rgbd
Render given rgbd images.
pointersect/inference/main.py:451
↓ 2 callersMethodset_bucket_boundaries
Args: bucket_boundaries: int (number of bins) or a list (containing the edges in ascending order, excluding two o
cdslib/core/data/dataloader/bucket_sampler.py:86
↓ 2 callersMethodstate_dict
Returns a dictionary that can be saved or load.
pointersect/inference/structures.py:1122
↓ 2 callersFunctionsub2ind
Given x y z index, change to the linear index. (matlab's sub2ind) Args: idx: (*, n, 3) long size: (
pointersect/pr/naive.py:14
↓ 2 callersFunctionsub2ind_c
pointersect/pr/cpp/pr.cpp:78
↓ 2 callersMethodtrain
Set all the nn.modules to train mode.
cdslib/core/models/base_model.py:149
↓ 2 callersMethoduniformly_sample
Uniformly sample more cameras from the current ones. Currently, we do not support gradient (though nothing stops it theoretically).
pointersect/inference/structures.py:1924
↓ 2 callersMethodunscale
Unscale the gradient of the parameter controlled by the optimizer. Should only be called once per iteration.
cdslib/core/optim/tf_optim.py:161
↓ 2 callersFunctionupfirdn2d_native
r"""Pad, upsample, FIR filter, and downsample a batch of 2D images. Accepts a batch of 2D images of the shape `[majorDim, minorDim(inC), inH, inW
tests/cdslib/nn/modules/test_upfirdn.py:11
↓ 1 callersMethodA
(self, x)
cdslib/core/nn/modules/subspace.py:133
↓ 1 callersMethodAT
(self, y)
cdslib/core/nn/modules/subspace.py:138
↓ 1 callersMethodATA
(self, xr=None, xl=None)
cdslib/core/nn/modules/subspace.py:143
↓ 1 callersMethodATAATA
(self, xr=None, xl=None)
cdslib/core/nn/modules/subspace.py:161
↓ 1 callersMethod__init__
(self, xs: torch.Tensor, ys: torch.Tensor)
tests/cdslib/script/test_base_train.py:18
↓ 1 callersMethod__init__
Args: dim_x: int Dimension of the past input sequence xs dim_c: int Dimension of the
cdslib/core/nn/modules/graves.py:32
↓ 1 callersMethod__init__
Create Variational RNN. Args: param_graves: Please see the documentation of :py:class:`ParamGraves`.
cdslib/core/nn/modules/vrnn.py:25
↓ 1 callersMethod__init__
Content encoder: some conv1D -> bidirectional LSTM Args: dim_input: dimension of the input n
cdslib/core/nn/modules/tacotron_content_encoder.py:19
↓ 1 callersMethod__init__
A LSTM with additional linear layers at the top. Args: dim_input: input dimension of the lstm
cdslib/core/nn/modules/lstm.py:164
↓ 1 callersMethod__init__
( self, origins_w: torch.Tensor, # (b, *m_shape, 3) directions_w: torch.T
pointersect/inference/structures.py:1026
↓ 1 callersMethod__init__
(self, encoder_layer, num_layers, norm=None)
pointersect/models/network_transformer.py:193
↓ 1 callersMethod_batching
(self)
cdslib/core/data/dataloader/bucket_sampler.py:135
↓ 1 callersMethod_batching
(self)
cdslib/core/data/dataloader/sort_sampler.py:45
↓ 1 callersMethod_cleanup
(self)
cdslib/core/script/base_train.py:975
↓ 1 callersMethod_combine_datasets
(self)
cdslib/core/data/dataloader/batch_preparer.py:149
↓ 1 callersMethod_construct_data
(self)
tests/cdslib/script/test_base_train.py:58
↓ 1 callersMethod_construct_networks
Construct the sub-networks. Overview of the model: attn_rnn (lstm_cell_layers): input: x_{t-1}, last_attn_context
cdslib/core/nn/modules/graves.py:221
↓ 1 callersMethod_construct_networks
Construct the sub-networks. Overview of the model: (1) A :py:class:`NetworkGraves` that handles all the rendering, or P(pt | zt,
cdslib/core/nn/modules/vrnn.py:234
↓ 1 callersMethod_create_folders
Create the folders to store codes, checkpoints, etc.
cdslib/core/script/base_train.py:577
↓ 1 callersMethod_create_logger
Create a logger that prints to both console and a file. Args: log_file: File name to save the log. None: not save
cdslib/core/utils/print_and_save.py:511
↓ 1 callersMethod_determine_buckets
Divide data into buckets based on seq_lens.
cdslib/core/data/dataloader/distributed_bucket_sampler.py:131
↓ 1 callersMethod_determine_device
Figure out which device (i.e., gpu or cpu) to use.
cdslib/core/script/base_train.py:600
↓ 1 callersFunction_flatten_dense_tensors
Flatten dense tensors into a contiguous 1D buffer. Assume tensors are of same dense type. Since inputs are dense, the resulting tensor will be
cdslib/core/utils/multigpu_utils.py:46
↓ 1 callersMethod_gather_losses
Return the values in losses_name in a dictionary.
pointersect/script/train_v2.py:1234
↓ 1 callersMethod_gather_losses_by_losses_name
Return the values in losses_name in a dictionary.
pointersect/script/train_v2.py:1212
↓ 1 callersFunction_get_activation_fn
(activation)
pointersect/models/network_transformer.py:234
↓ 1 callersFunction_get_clones
(module, N)
pointersect/models/network_transformer.py:230
↓ 1 callersMethod_get_frame
Load depth map (z in camera coordinate (x to right, y to down, z to far)) and surface normal in world coordinate (after bump map).
pointersect/data/hypersim_dataset.py:427
↓ 1 callersMethod_get_random_setup
(self)
tests/plib/test_render.py:11
↓ 1 callersMethod_open_tensorboard
Create a thread to run tensorboard.
cdslib/core/utils/print_and_save.py:478
↓ 1 callersMethod_rasterize_rendering
Given camera poses, return the rasterized RGBD images. Args: camera: (b, q) already on device
pointersect/inference/structures.py:3362
↓ 1 callersMethod_read_index_file
Read the index file and returns the uids and filenames.
cdslib/core/data/index_reader.py:117
↓ 1 callersMethod_read_info
Read the info file if existed, else set everything to None.
cdslib/core/data/chunked_memmap.py:62
↓ 1 callersMethod_register_loss
Register scalar loss so that it will be gathered by :py:`_gather_loss` Args: var_name: loss name (str) o
pointersect/script/train_v2.py:1179
↓ 1 callersMethod_register_output
Register output so that it will be reset by `reset_outputs` Args: var_name: var name (str) or list of va
pointersect/script/train_v2.py:1166
↓ 1 callersMethod_save_to_memmap
Save all the samples of the target_chunk_idx to the memmap. Overview: 1. Read all samples in the target chunk into a list and save t
cdslib/core/data/chunked_memmap.py:347
↓ 1 callersMethod_send_models_to_device
Send all base model and nn.modules to device.
cdslib/core/script/base_train.py:614
↓ 1 callersMethod_set_camera_defaults
Set the defaults for attributes.
pointersect/data/mesh_dataset_v2.py:180
↓ 1 callersMethod_set_circle
(self)
pointersect/inference/structures.py:3794
↓ 1 callersMethod_set_manual
Manually assign camera eye: list of (3,) where the cameras are (before global transform) up: None (assume to be (0,1
pointersect/inference/structures.py:4055
↓ 1 callersMethod_set_random
(self)
pointersect/inference/structures.py:3768
↓ 1 callersMethod_set_spiral
(self)
pointersect/inference/structures.py:3864
↓ 1 callersMethod_set_train_mode
Set all the nn.modules to train mode.
cdslib/core/script/base_train.py:626
↓ 1 callersMethod_set_udlrfb
(self)
pointersect/inference/structures.py:3831
↓ 1 callersMethod_setup_for_distributed_learning
Setup the networks in the model for distributed computation. It automactically gather all modules.
cdslib/core/script/base_train.py:788
↓ 1 callersMethod_test
( self, b: int = 1, n: int = 10000, # number of points m: int
tests/pointersect/pr/test_pr_limit.py:18
↓ 1 callersMethod_test
( self, points: torch.Tensor, # (b, n, 3) ray_origins: torch.Tensor, # (
tests/pointersect/pr/test_naive.py:56
↓ 1 callersMethod_test
( self, points: torch.Tensor, # (b, n, 3) ray_origins: torch.Tensor, # (
tests/pointersect/pr/cpp/test_cpp.py:265
↓ 1 callersMethod_test
( self, points: torch.Tensor, # (b, n, 3) ray_origins: torch.Tensor, # (
tests/pointersect/pr/cuda/test_cuda.py:465
↓ 1 callersFunction_unflatten_dense_tensors
View a flat buffer using the sizes of tensors. Assume that tensors are of same dense type, and that flat is given by _flatten_dense_tensors. A
cdslib/core/utils/multigpu_utils.py:63
↓ 1 callersMethod_write_info
Write the info to info_filename.
cdslib/core/data/chunked_memmap.py:106
↓ 1 callersMethodadd_dataset
Read the samples from the dataset. Args: dataset: dataset to be added ratio: ratio of
cdslib/core/data/dataloader/batch_preparer.py:121
↓ 1 callersMethodadd_scalars
Add multiple scalars. The tag of the scalars will be main_tag/tag. Note: The scalars are plotted in separated figures.
cdslib/core/utils/print_and_save.py:363
↓ 1 callersMethodadditional_setup_before_dataloader
Additional things to do before getting dataloader.
cdslib/core/script/base_train.py:1038
↓ 1 callersMethodadditional_setups_before_train
Additional things to do before training starts.
cdslib/core/script/base_train.py:1075
↓ 1 callersMethodaggregate
Aggregate a list of PointersectRecord of the same shape. Note that it will set many attributes to None.
pointersect/inference/structures.py:1387
← previousnext →101–200 of 743, ranked by callers