MCPcopy Create free account

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

Functions743 in github.com/apple/ml-pointersect

Method__len__
(self)
tests/cdslib/data/dataloader/test_batch_preparer.py:22
Method__len__
(self)
cdslib/core/data/chunked_memmap.py:138
Method__len__
Returns the number of files in the index file.
cdslib/core/data/index_reader.py:66
Method__len__
Return an estimation of the number of batches per epoch.
cdslib/core/data/dataloader/batch_preparer.py:214
Method__len__
(self)
cdslib/core/data/dataloader/bucket_sampler.py:196
Method__len__
(self)
cdslib/core/data/dataloader/distributed_bucket_sampler.py:217
Method__len__
(self)
cdslib/core/data/dataloader/sort_sampler.py:86
Method__len__
(self)
cdslib/core/nn/nn_utils.py:345
Method__len__
(self)
pointersect/data/mesh_dataset_v2.py:234
Method__len__
(self)
pointersect/data/mesh_dataset_v2.py:396
Method__len__
(self)
pointersect/data/hypersim_dataset.py:538
Method__next__
(self)
cdslib/core/data/dataloader/batch_preparer.py:283
Method__next__
(self)
cdslib/core/data/dataloader/bucket_sampler.py:208
Method__next__
(self)
cdslib/core/data/dataloader/sort_sampler.py:100
Method__repr__
(self)
cdslib/core/nn/nn_utils.py:330
Method__repr__
(self)
cdslib/core/nn/modules/linear.py:357
Method__repr__
(self)
cdslib/core/nn/modules/filtered_conv.py:720
Method__repr__
(self)
cdslib/core/nn/modules/subspace.py:65
Method__setattr__
(self, name: str, value: T.Any)
cdslib/core/utils/argparse_utils.py:188
Method__setitem__
(self, key, value)
cdslib/core/nn/nn_utils.py:336
Method__setstate__
(self, state)
pointersect/models/network_transformer.py:100
Method__str__
(self)
cdslib/core/data/dataloader/batch_preparer.py:226
Method__str__
(self)
cdslib/core/nn/nn_utils.py:327
Method__str__
(self)
cdslib/core/models/base_model.py:333
Method_get_xyz_w
Get the xyz_w contained in the dataset in meters.
pointersect/data/hypersim_dataset.py:521
Method_set_basic
(self)
pointersect/inference/structures.py:3963
Method_set_grid
(self)
pointersect/inference/structures.py:3986
Method_set_polar_grid
(self)
pointersect/inference/structures.py:4013
Method_set_rect
(self)
pointersect/inference/structures.py:3940
Method_set_rex_in
(self)
pointersect/inference/structures.py:3909
Method_set_sketchfab_poisson
(self)
pointersect/inference/structures.py:3889
Methodadd_audio
Register a figure to the tensorboard. See tensorboard's documentation https://pytorch.org/docs/stable/tensorboard.html for usage.
cdslib/core/utils/print_and_save.py:418
Methodadd_histogram
Register a histogram to the tensorboard. See tensorboard's documentation https://pytorch.org/docs/stable/tensorboard.html for usage.
cdslib/core/utils/print_and_save.py:426
Functionadd_title_to_image
Given an image, pad the image at the top and add a title text. Note that the function converts image to uint8 Args: image:
plib/render.py:561
Functionallreduce_hook
(*unused)
cdslib/core/utils/multigpu_utils.py:137
Functionallreduce_params
()
cdslib/core/utils/multigpu_utils.py:107
Functionbaseline_pcd_ray_intersection
Baseline point cloud-ray intersection. Algorithm: 1. poisson surface reconstruction from point cloud to create a mesh 2. ray tracing
plib/utils.py:1917
Methodcat
concatenate at `dim`.
pointersect/inference/structures.py:420
Methodcat
Concatenate a list of PointersectRecord at the given dimension. It is useful to split m_shape.
pointersect/inference/structures.py:1314
Methodcat
(cameras: T.List['Camera'], dim: int)
pointersect/inference/structures.py:1662
Methodcat
(rgbd_images: T.List['RGBDImage'], dim: int)
pointersect/inference/structures.py:2213
Methodchunk
Chunk the PointersectRecord at the given dimension. As pytorch, the resulted tensors are views to the original ones.
pointersect/inference/structures.py:1341
Methodchunk
(self, chunks: int, dim: int = 0)
pointersect/inference/structures.py:1622
Methodchunk
(self, chunks: int, dim: int = 0)
pointersect/inference/structures.py:2167
Functionclean_up_glb_write_gltf
Clean up glb such that open3d can load the texture maps. Note that the function creates a gtlf file (with the same name) from the glb fil
plib/utils.py:2620
Methodclone
(self)
pointersect/inference/structures.py:138
Functioncollect_points_on_ray
Given ray2gidx and gidx2pidx, construct ray2pidxs. Args: ray2gidx: (b, m, n_gidxs), gidx can be outside the grid n_ray2gidx: (b, m), number of neighb
pointersect/pr/cuda/pr_cuda.cpp:357
Functioncompare_rgbd_images
Compare a list of rgbd_images by creating gif containing each of the rgbd_images Note we assume the camera used to capture the rgbd images ar
pointersect/inference/infer.py:1423
Functioncompile_argparser_str
Given a config_dict: key -> val, returns a list of ["--key", "val"] so that argparse can parse it. Args: config_dict:
cdslib/core/utils/argparse_utils.py:58
Functioncompile_command
Compose the command to execute on bolt. Args: script_filename: the .py filename. Note that it is assumed to be executed
pointersect/meta_script/meta_script_utils.py:44
Functioncompute_3d_xyz
Compute the xyz in the world coordinate using z_map and camera pose. Important note: The function uses a image coordinate system: x
plib/utils.py:1036
Functioncompute_3d_zdir_and_dps
Compute the zdir and dps in the world coordinate using z_map and camera pose. Args: z_map: (*, h, w) the z coordinate of
plib/utils.py:1372
Functioncompute_accuracy
Compute the accuracy. Args: arr: (*b_shape, *d_shape), binary ref: (*b_shape, *d_shape), binary ndim_b:
pointersect/inference/inference_utils.py:439
Functioncompute_area
Compute the area spanned by the unit vectors in arr and ref. Args: arr: (*b_shape, *d_shape, 3) ref: (*b_shape, *d_shape, 3)
pointersect/inference/inference_utils.py:345
Functioncompute_diff_angle
Compute the angle spanned by the unit vectors in arr and ref. Args: arr: (*b_shape, *d_shape, 3) ref: (*b_shape, *d_shape, 3
pointersect/inference/inference_utils.py:390
Functioncompute_l1
Compute average l1 distance between arr and ref. Args: arr: (*b_shape, *d_shape) ref: (*b_shape, *d_shape) ndim_b:
pointersect/inference/inference_utils.py:310
Methodcompute_layer_start_idxs
Compute the center coordinate of the first feature of each layer. Note that the function assumes symmetric padding: for example, inp
cdslib/core/nn/modules/conv.py:653
Methodcompute_layer_valid_lengths
Compute the sequence length of the output of each layers, with no padding (valid). Args: seq_len_in (int):
cdslib/core/nn/modules/conv.py:610
Functioncompute_lpips
Compute the LPIPS metric. Args: arr: (*b_shape, *d_shape) Assumes the RGB image is in [0,1] ref: (*b_shape, *d_shape) Assum
pointersect/inference/inference_utils.py:262
Functioncompute_metrics_for_rgbd_images
Compare a list of rgbd_images, create gif, compute difference from ref_rgbd_image if given. Note we assume the camera used to capture the rgb
pointersect/inference/infer.py:794
Methodcompute_neg_log_likelihoods
Compute the negative log-likelihood given the samples. Args: samples: (*m_shape, 3) one for each independ
plib/spherical_gaussian.py:66
Methodcompute_output_seq_len
Compute the output sequence length. Args: pad_type: ``None``: use the original padding config ``'
cdslib/core/nn/modules/conv.py:103
Methodcompute_output_seq_len
Compute the output sequence length. Args: pad_type: ``None``: use the original padding config ``'
cdslib/core/nn/modules/conv.py:245
Functioncompute_point_ray_distance_in_chunks
Compute the distance between each point to each ray. Args: points: (*, n, 3) ray_origins: (*, m, 3)
plib/utils.py:329
Functioncompute_psnr
Compute peak signal to noise ratio Args: arr: (*b_shape, *d_shape) ref: (*b_shape, *d_shape) ndim_b: numb
pointersect/inference/inference_utils.py:194
Functioncompute_rmse
Compute the root 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:169
Methodcompute_seq_len_for_same
If we want to maintain the seq_len during downsampling, every input seq_len to a downsampling layer need to be an even number.
cdslib/core/nn/modules/filtered_conv.py:383
Functioncompute_ssim
Compute the ssim. Args: arr: (*b_shape, *d_shape) ref: (*b_shape, *d_shape) ndim_b: number of dimension o
pointersect/inference/inference_utils.py:218
Methodconstruct_models
(self)
pointersect/script/train_v2.py:483
Functionconstruct_onehot_vectors
Given labels :param labels: (seq_len, batch_size,), (batch_size,), or (*) int, [0, total_classes-1] :param total_classes: total number of
cdslib/core/nn/nn_utils.py:294
Methodconstruct_optimizers
(self)
tests/cdslib/script/test_base_train.py:142
Methodconstruct_optimizers
(self)
pointersect/script/train_v2.py:506
Functionconstruct_teacher_vectors
construct time-shifted version of the ground-truth to be used as teacher-forcing input :param gt_vectors: (seq_len, batch, dim_feature) :
cdslib/core/nn/nn_utils.py:224
Functioncreate_gif
Create a gif from the images Args: images: (n, h, w, 3) or list of (h, w, 3), float, range = 0-1 filename:
plib/render.py:467
Functioncreate_o3d_plane_mesh
Create an o3d mesh representing a plane. The mesh contains two triangles. Args: top_left: the top left coordinate of
plib/render.py:739
Functioncreate_octree
Store the xys points into an octree. Args: points: (*, 3) max_depth: max depth of the octree. As the
plib/utils.py:230
Functioncreate_video
Create a video from the images Args: images: (n, h, w, 3) or list of (h, w, 3), float, range = 0-1 filename:
plib/render.py:794
Functioncustomer
A decorator indicating methods to be customized.
cdslib/core/script/base_train.py:35
Methoddefault
(self, obj)
cdslib/core/utils/print_and_save.py:33
Functionderive_camera_intrinsics
Derive camera intrinsic matrix. Args: width_px: width (pixel) height_px: height (pixel) fov: field-of-view (degree)
plib/render.py:439
Methoddetach
(self)
pointersect/inference/structures.py:131
Methoddetach
(self)
pointersect/inference/structures.py:2195
Functiondraw_geometries
Mimic the behavior of :py:`o3d.visualization.draw_geometries` but free objects properly. Args: geometry_list: List of ge
plib/utils.py:2565
Methodepoch_setup
( self, epoch: int, dataloader: T.Sequence[T.Any], val_dataloa
tests/cdslib/script/test_base_train.py:150
Methodepoch_setup
Set up at the beginning of an epoch, before dataloder iterator is constructed. It can be used to setup the batch sampler, etc.
pointersect/script/train_v2.py:1445
Functionfind_corresponding_uv
Compute the correspoding points in image coordinates of the pixels in a source image. Args: uv_c: (*b_shape, *n_shape, 2
plib/utils.py:1242
Functionfind_k_neighbor_points_of_rays
Find all the points within ray_radius of a ray. Args: points: (b, n, 3) the xyz_w of points in world coord ray_
pointersect/pr/pr_utils.py:194
Functionfind_k_neighbor_points_of_rays
Find the k nearest points within `radius` of a ray, ie, the vertical distance from the point to ray <= radius. If not enough points found, return dumm
pointersect/pr/cuda/pr_cuda.cpp:514
Functionfind_k_neighbor_points_of_rays_brute_force
Modified version of find_neighbor_points_of_rays_brute_force return k neighbors within ray_radius report the valid numbers of neighbors i
pointersect/pr/naive.py:571
Functionfind_k_neighbor_points_of_rays_v2
Find the k nearest points within `radius` of a ray, ie, the vertical distance from the point to ray <= radius. If not enough points found, return dumm
pointersect/pr/cuda/pr_cuda.cpp:604
Functionfind_k_neighbor_points_of_rays_v3
pointersect/pr/cuda/pr_cuda.cpp:641
Functionfind_k_neighbor_points_of_rays_v4
pointersect/pr/cuda/pr_cuda.cpp:687
Functionfind_neighbor_points_of_rays
Find all the points within ray_radius of a ray. Args: points: (b, n, 3) the xyz_w of points in world coord ray_
pointersect/pr/pr_utils.py:59
Functionfind_neighbor_points_of_rays
Find the points within `radius` of a ray, ie, the vertical distance from the point to ray <= radius. Returns: list of list of list:
pointersect/pr/naive.py:353
Functionfind_neighbor_points_of_rays
Find the points within `radius` of a ray, ie, the vertical distance from the point to ray <= radius. Returns: list of list of list: b -> m -> n_idx
pointersect/pr/cpp/pr.cpp:803
Functionfind_neighbor_points_of_rays
Find the points within `radius` of a ray, ie, the vertical distance from the point to ray <= radius. Returns: ray2pidx: (b, M), all the points. The p
pointersect/pr/cuda/pr_cuda.cpp:439
Functionfind_neighbor_points_of_rays_brute_force
( points: torch.Tensor, # (b, n, 3) ray_origins: torch.Tensor, # (b, m, 3) ray_direc
pointersect/pr/naive.py:503
Functionfind_neighbors_and_rectify
Find the k nearest points by each ray and rectify the coordinate system as if the rays are in the direction of (0,0,1) and originated from (0
pointersect/models/model_utils.py:14
Methodfinish_procedure
(self)
tests/cdslib/script/test_base_train.py:245
Functionfit_hyperplane
Fit a hyperplane for the n points such that the plane minimizes the point-to-plane distances. .. math:: \min_{n,c} \sum_i w_i (n^T
plib/utils.py:1822
← previousnext →401–500 of 743, ranked by callers