Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/apple/ml-pointersect
/ functions
Functions
743 in github.com/apple/ml-pointersect
⨍
Functions
743
◇
Types & classes
103
Function
remove_bad_char
(name: str)
pointersect/meta_script/meta_script_utils.py:31
Function
render_pcd_with_pointersect
Convenient function to render a point cloud with pointersect. Args: input_point_cloud: the filename of a ply file contai
pointersect/inference/main.py:2141
Method
reset_point_at_inf
reset the point representing inf at n=0
pointersect/inference/structures.py:209
Method
reset_valid_mask
set all points as valid
pointersect/inference/structures.py:709
Function
reshape
Given a dict or a list containing tensor, reshape dimension `start` to `end` to the new shape
plib/utils.py:161
Method
reshape
Reshape each attributes.
pointersect/inference/structures.py:1450
Method
rotate_translate
(self, R: np.ndarray, t: np.ndarray)
plib/rigid_motion.py:122
Method
sample
Sample spherical gaussian distributions. Args: sample_shape: (*sample_shape). Can be an empty list. Returns:
plib/spherical_gaussian.py:94
Function
sample_new_points_using_pointersect
Sample new points from the current point cloud. Args: num_points: number of points to sample method:
pointersect/inference/infer.py:1686
Function
sample_patch
Sample from `arr` a patch centered at `center` with a different pixel pitch and number of pixels. Args: arr: (*b, c, h_i
plib/utils.py:2724
Function
sample_point_cloud_with_ray_tracing
Sample a set of points (with color) on the mesh. Args: mesh: a triangle mesh representing the surface. We as
plib/render.py:24
Function
sample_random_patch_uv
Samples random uv coordinates ([0, w), [0, h)) to create random patches. Args: b_shape: (*b,) determines the number of p
plib/utils.py:2886
Method
sample_random_patches
Generate rays to form patches on the corresponding images. Args: num_patches_per_q: number of patches fr
pointersect/inference/structures.py:2344
Function
sample_regions_camera_rays_and_features
Used in PCD version of inverse rendering. Args: cam_poses: intrinsics: sample_center: region_width_px:
plib/utils.py:1677
Method
save
Save the point cloud as a ply file and a npz.
pointersect/inference/structures.py:652
Method
save
( self, output_dir: str, overwrite: bool = False, )
pointersect/inference/structures.py:1493
Method
save
( self, output_dir: str, overwrite: bool = False, save_ply: bo
pointersect/inference/structures.py:2041
Method
save_as_llff
Save as the format used by LLFF. LLFF processes the outputs of COLMAP, and we will only output a subset of it. See: https:/
pointersect/inference/structures.py:3069
Method
save_as_npbgpp_input
Save as the format used by NPBG++ (https://github.com/rakhimovv/npbgpp). We use the DTU dataset's format: - image: 000000.pn
pointersect/inference/structures.py:2711
Method
save_as_rtmv
Save as the format used in the RTMV dataset https://www.cs.umd.edu/~mmeshry/projects/rtmv/. Each scene in the dataset contains
pointersect/inference/structures.py:2820
Function
save_code
Backup the code in a src directory to a dst directory. The function recursively copies the code (determined by their file extensions) in the fold
cdslib/core/utils/print_and_save.py:146
Function
save_imgs
Save image tensor as numpy and optionally gif and png Args: imgs: (b, h, w, 3) save_gif: whether to s
pointersect/inference/inference_utils.py:82
Method
setUpClass
(cls)
tests/cdslib/data/test_chunked_memmap.py:32
Method
set_dataset_lengths
Args: dataset_lengths: a list containing the length of each data global_idxs: global
cdslib/core/data/dataloader/bucket_sampler.py:102
Method
set_extra_state
(self, state)
pointersect/inference/structures.py:4276
Function
set_needs_reduction
(self, input, output)
cdslib/core/utils/multigpu_utils.py:143
Function
set_process_info
( config_dict: T.Dict[str, T.Any], key: str, val: T.Any, )
pointersect/meta_script/submit_pbnr_v2.py:226
Method
shape
(self)
pointersect/inference/structures.py:1111
Method
silhouette_carving
Use the hit_map and the camera in the rgbd_image to invalid points. It marks the valid_mask to be False for point that should be carv
pointersect/inference/structures.py:942
Function
srgb_to_linear
Converts an image from sRGB to Linear colorspace. We treat each pixel independently (to color channels as well). Args: x:
plib/render.py:914
Function
ssim
Convenient function to call skimage's ssim. Not differentiable. Args: rgb: (h, w, 3), in the range of [0, 1] gts: (h, w, 3)
plib/metrics.py:69
Function
str2bool
(v)
cdslib/core/utils/argparse_utils.py:17
Method
tearDownClass
(cls)
tests/cdslib/data/test_chunked_memmap.py:220
Function
tensorfun
Apply `func(tensor)` to any tensors in the list or dict. Args: func: function that takes a tensor and outputs a tensor
cdslib/core/utils/tensor_utils.py:10
Method
test
(self)
tests/cdslib/nn/modules/test_upfirdn.py:134
Method
test
(self)
tests/cdslib/nn/modules/test_upfirdn.py:209
Method
test
(self)
tests/plib/test_utils.py:214
Method
test
(self)
tests/pointersect/pr/test_pr_limit.py:78
Method
test
( self, b: int = 1, n: int = 10000, # number of points m: int
tests/pointersect/pr/test_pr_speed.py:16
Method
test
(self, b=10, n=20, max_size=20)
tests/pointersect/pr/cpp/test_cpp.py:64
Method
test
(self, b=10, n=20, max_size=20)
tests/pointersect/pr/cpp/test_cpp.py:113
Method
test
(self, b=1, m=100, max_size=20)
tests/pointersect/pr/cpp/test_cpp.py:150
Method
test
(self, b=10, m=1000, max_size=40, seed=0)
tests/pointersect/pr/cuda/test_cuda.py:214
Method
test
(self, b=1, n=100, m=2, max_size=40, seed=0)
tests/pointersect/pr/cuda/test_cuda.py:315
Method
test
(self, b=1, m=1000, n=1000, seed=0)
tests/pointersect/pr/cuda/test_cuda.py:674
Method
test1
Test cpu-only version.
tests/cdslib/script/test_base_train.py:376
Method
test1
(self)
tests/cdslib/optim/test_tf_optim.py:72
Method
test1
(self)
tests/cdslib/data/dataloader/test_distributed_bucket_sampler.py:74
Method
test1
(self)
tests/cdslib/nn/modules/test_upfirdn.py:145
Method
test1
(self)
tests/cdslib/nn/modules/test_filtered_conv.py:216
Method
test1
(self)
tests/cdslib/nn/modules/test_subspace.py:111
Method
test1
(self)
tests/pointersect/pr/test_naive.py:34
Method
test2
Test cuda version.
tests/cdslib/script/test_base_train.py:380
Method
test2
(self)
tests/cdslib/optim/test_tf_optim.py:77
Method
test2
(self)
tests/cdslib/data/dataloader/test_distributed_bucket_sampler.py:83
Method
test2
(self)
tests/cdslib/nn/modules/test_upfirdn.py:156
Method
test2
(self)
tests/cdslib/nn/modules/test_upfirdn.py:217
Method
test2
(self)
tests/cdslib/nn/modules/test_filtered_conv.py:237
Method
test2
(self)
tests/cdslib/nn/modules/test_subspace.py:134
Method
test2
(self)
tests/pointersect/pr/test_naive.py:43
Method
test2
(self)
tests/pointersect/pr/test_naive.py:141
Method
test2
(self)
tests/pointersect/pr/cuda/test_cuda.py:204
Method
test3
Test cuda distributed version.
tests/cdslib/script/test_base_train.py:385
Method
test3
(self)
tests/cdslib/data/dataloader/test_distributed_bucket_sampler.py:92
Method
test3
(self)
tests/cdslib/nn/modules/test_upfirdn.py:225
Method
test3
(self)
tests/cdslib/nn/modules/test_filtered_conv.py:260
Method
test4
(self)
tests/cdslib/data/dataloader/test_distributed_bucket_sampler.py:101
Method
test_1
single dataset
tests/cdslib/data/dataloader/test_batch_preparer.py:127
Method
test_1
(self)
tests/cdslib/nn/modules/test_graves.py:13
Method
test_1
(self)
tests/cdslib/nn/modules/test_vrnn.py:13
Method
test_1
(self)
tests/cdslib/nn/modules/test_subspace.py:49
Method
test_1
(self)
tests/plib/test_render.py:57
Method
test_1
(self)
tests/plib/test_utils.py:10
Method
test_1
(self)
tests/plib/test_utils.py:60
Method
test_1
(self)
tests/plib/test_utils.py:120
Method
test_1
(self)
tests/plib/test_utils.py:277
Method
test_2
two datasets of different lengths, with ratio = 1
tests/cdslib/data/dataloader/test_batch_preparer.py:146
Method
test_2
(self)
tests/cdslib/nn/modules/test_graves.py:16
Method
test_2
(self)
tests/cdslib/nn/modules/test_subspace.py:58
Method
test_2
(self)
tests/plib/test_render.py:60
Method
test_2
(self)
tests/plib/test_utils.py:27
Method
test_2
(self)
tests/plib/test_utils.py:296
Method
test_3
two datasets of different lengths, with ratio = 0.3 and 0.5
tests/cdslib/data/dataloader/test_batch_preparer.py:173
Method
test_3
(self)
tests/cdslib/nn/modules/test_graves.py:37
Method
test_3
(self)
tests/cdslib/nn/modules/test_subspace.py:67
Method
test_3
(self)
tests/plib/test_utils.py:43
Method
test_4
two datasets of different lengths, with ratio = 0.3 and 0.5, max_sample smaller than len(dataset) * ratio
tests/cdslib/data/dataloader/test_batch_preparer.py:200
Method
test_build_model1
(self)
tests/cdslib/nn/modules/test_conv.py:14
Method
test_build_model1
(self)
tests/cdslib/nn/modules/test_linear.py:13
Method
test_build_model2
(self)
tests/cdslib/nn/modules/test_conv.py:20
Method
test_build_model2
(self)
tests/cdslib/nn/modules/test_linear.py:18
Method
test_build_model3
(self)
tests/cdslib/nn/modules/test_conv.py:26
Method
test_build_model3
(self)
tests/cdslib/nn/modules/test_linear.py:23
Method
test_build_model4
(self)
tests/cdslib/nn/modules/test_conv.py:32
Method
test_build_model4
(self)
tests/cdslib/nn/modules/test_linear.py:29
Method
test_chunk
(self)
tests/plib/test_utils.py:87
Method
test_chunk
(self)
tests/plib/test_utils.py:179
Method
test_cpp
( self, b=1, m=1, n=100000, max_grid_width=20.,
tests/pointersect/pr/test_pr_utils.py:222
Method
test_cuda
( self, b=1, m=20000, n=20000, max_grid_width=20.,
tests/pointersect/pr/test_pr_utils.py:258
Method
test_gru
(self)
tests/cdslib/nn/modules/test_lstm.py:67
← previous
next →
601–700 of 743, ranked by callers