MCPcopy Create free account

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

Functions743 in github.com/apple/ml-pointersect

Functionremove_bad_char
(name: str)
pointersect/meta_script/meta_script_utils.py:31
Functionrender_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
Methodreset_point_at_inf
reset the point representing inf at n=0
pointersect/inference/structures.py:209
Methodreset_valid_mask
set all points as valid
pointersect/inference/structures.py:709
Functionreshape
Given a dict or a list containing tensor, reshape dimension `start` to `end` to the new shape
plib/utils.py:161
Methodreshape
Reshape each attributes.
pointersect/inference/structures.py:1450
Methodrotate_translate
(self, R: np.ndarray, t: np.ndarray)
plib/rigid_motion.py:122
Methodsample
Sample spherical gaussian distributions. Args: sample_shape: (*sample_shape). Can be an empty list. Returns:
plib/spherical_gaussian.py:94
Functionsample_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
Functionsample_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
Functionsample_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
Functionsample_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
Methodsample_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
Functionsample_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
Methodsave
Save the point cloud as a ply file and a npz.
pointersect/inference/structures.py:652
Methodsave
( self, output_dir: str, overwrite: bool = False, )
pointersect/inference/structures.py:1493
Methodsave
( self, output_dir: str, overwrite: bool = False, save_ply: bo
pointersect/inference/structures.py:2041
Methodsave_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
Methodsave_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
Methodsave_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
Functionsave_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
Functionsave_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
MethodsetUpClass
(cls)
tests/cdslib/data/test_chunked_memmap.py:32
Methodset_dataset_lengths
Args: dataset_lengths: a list containing the length of each data global_idxs: global
cdslib/core/data/dataloader/bucket_sampler.py:102
Methodset_extra_state
(self, state)
pointersect/inference/structures.py:4276
Functionset_needs_reduction
(self, input, output)
cdslib/core/utils/multigpu_utils.py:143
Functionset_process_info
( config_dict: T.Dict[str, T.Any], key: str, val: T.Any, )
pointersect/meta_script/submit_pbnr_v2.py:226
Methodshape
(self)
pointersect/inference/structures.py:1111
Methodsilhouette_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
Functionsrgb_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
Functionssim
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
Functionstr2bool
(v)
cdslib/core/utils/argparse_utils.py:17
MethodtearDownClass
(cls)
tests/cdslib/data/test_chunked_memmap.py:220
Functiontensorfun
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
Methodtest
(self)
tests/cdslib/nn/modules/test_upfirdn.py:134
Methodtest
(self)
tests/cdslib/nn/modules/test_upfirdn.py:209
Methodtest
(self)
tests/plib/test_utils.py:214
Methodtest
(self)
tests/pointersect/pr/test_pr_limit.py:78
Methodtest
( self, b: int = 1, n: int = 10000, # number of points m: int
tests/pointersect/pr/test_pr_speed.py:16
Methodtest
(self, b=10, n=20, max_size=20)
tests/pointersect/pr/cpp/test_cpp.py:64
Methodtest
(self, b=10, n=20, max_size=20)
tests/pointersect/pr/cpp/test_cpp.py:113
Methodtest
(self, b=1, m=100, max_size=20)
tests/pointersect/pr/cpp/test_cpp.py:150
Methodtest
(self, b=10, m=1000, max_size=40, seed=0)
tests/pointersect/pr/cuda/test_cuda.py:214
Methodtest
(self, b=1, n=100, m=2, max_size=40, seed=0)
tests/pointersect/pr/cuda/test_cuda.py:315
Methodtest
(self, b=1, m=1000, n=1000, seed=0)
tests/pointersect/pr/cuda/test_cuda.py:674
Methodtest1
Test cpu-only version.
tests/cdslib/script/test_base_train.py:376
Methodtest1
(self)
tests/cdslib/optim/test_tf_optim.py:72
Methodtest1
(self)
tests/cdslib/data/dataloader/test_distributed_bucket_sampler.py:74
Methodtest1
(self)
tests/cdslib/nn/modules/test_upfirdn.py:145
Methodtest1
(self)
tests/cdslib/nn/modules/test_filtered_conv.py:216
Methodtest1
(self)
tests/cdslib/nn/modules/test_subspace.py:111
Methodtest1
(self)
tests/pointersect/pr/test_naive.py:34
Methodtest2
Test cuda version.
tests/cdslib/script/test_base_train.py:380
Methodtest2
(self)
tests/cdslib/optim/test_tf_optim.py:77
Methodtest2
(self)
tests/cdslib/data/dataloader/test_distributed_bucket_sampler.py:83
Methodtest2
(self)
tests/cdslib/nn/modules/test_upfirdn.py:156
Methodtest2
(self)
tests/cdslib/nn/modules/test_upfirdn.py:217
Methodtest2
(self)
tests/cdslib/nn/modules/test_filtered_conv.py:237
Methodtest2
(self)
tests/cdslib/nn/modules/test_subspace.py:134
Methodtest2
(self)
tests/pointersect/pr/test_naive.py:43
Methodtest2
(self)
tests/pointersect/pr/test_naive.py:141
Methodtest2
(self)
tests/pointersect/pr/cuda/test_cuda.py:204
Methodtest3
Test cuda distributed version.
tests/cdslib/script/test_base_train.py:385
Methodtest3
(self)
tests/cdslib/data/dataloader/test_distributed_bucket_sampler.py:92
Methodtest3
(self)
tests/cdslib/nn/modules/test_upfirdn.py:225
Methodtest3
(self)
tests/cdslib/nn/modules/test_filtered_conv.py:260
Methodtest4
(self)
tests/cdslib/data/dataloader/test_distributed_bucket_sampler.py:101
Methodtest_1
single dataset
tests/cdslib/data/dataloader/test_batch_preparer.py:127
Methodtest_1
(self)
tests/cdslib/nn/modules/test_graves.py:13
Methodtest_1
(self)
tests/cdslib/nn/modules/test_vrnn.py:13
Methodtest_1
(self)
tests/cdslib/nn/modules/test_subspace.py:49
Methodtest_1
(self)
tests/plib/test_render.py:57
Methodtest_1
(self)
tests/plib/test_utils.py:10
Methodtest_1
(self)
tests/plib/test_utils.py:60
Methodtest_1
(self)
tests/plib/test_utils.py:120
Methodtest_1
(self)
tests/plib/test_utils.py:277
Methodtest_2
two datasets of different lengths, with ratio = 1
tests/cdslib/data/dataloader/test_batch_preparer.py:146
Methodtest_2
(self)
tests/cdslib/nn/modules/test_graves.py:16
Methodtest_2
(self)
tests/cdslib/nn/modules/test_subspace.py:58
Methodtest_2
(self)
tests/plib/test_render.py:60
Methodtest_2
(self)
tests/plib/test_utils.py:27
Methodtest_2
(self)
tests/plib/test_utils.py:296
Methodtest_3
two datasets of different lengths, with ratio = 0.3 and 0.5
tests/cdslib/data/dataloader/test_batch_preparer.py:173
Methodtest_3
(self)
tests/cdslib/nn/modules/test_graves.py:37
Methodtest_3
(self)
tests/cdslib/nn/modules/test_subspace.py:67
Methodtest_3
(self)
tests/plib/test_utils.py:43
Methodtest_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
Methodtest_build_model1
(self)
tests/cdslib/nn/modules/test_conv.py:14
Methodtest_build_model1
(self)
tests/cdslib/nn/modules/test_linear.py:13
Methodtest_build_model2
(self)
tests/cdslib/nn/modules/test_conv.py:20
Methodtest_build_model2
(self)
tests/cdslib/nn/modules/test_linear.py:18
Methodtest_build_model3
(self)
tests/cdslib/nn/modules/test_conv.py:26
Methodtest_build_model3
(self)
tests/cdslib/nn/modules/test_linear.py:23
Methodtest_build_model4
(self)
tests/cdslib/nn/modules/test_conv.py:32
Methodtest_build_model4
(self)
tests/cdslib/nn/modules/test_linear.py:29
Methodtest_chunk
(self)
tests/plib/test_utils.py:87
Methodtest_chunk
(self)
tests/plib/test_utils.py:179
Methodtest_cpp
( self, b=1, m=1, n=100000, max_grid_width=20.,
tests/pointersect/pr/test_pr_utils.py:222
Methodtest_cuda
( self, b=1, m=20000, n=20000, max_grid_width=20.,
tests/pointersect/pr/test_pr_utils.py:258
Methodtest_gru
(self)
tests/cdslib/nn/modules/test_lstm.py:67
← previousnext →601–700 of 743, ranked by callers