MCPcopy Create free account

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

Functions743 in github.com/apple/ml-pointersect

↓ 1 callersMethodset_init_step
Set the initial step.
cdslib/core/optim/tf_optim.py:111
↓ 1 callersFunctionset_model_info
( config_dict: T.Dict[str, T.Any], dim: int = 512, dropout: float = 0.1, num_l
pointersect/meta_script/submit_pbnr_v2.py:192
↓ 1 callersFunctionset_optim_info
( config_dict: T.Dict[str, T.Any], random_drop_rgb_rate: float = 0.5, random_drop_samp
pointersect/meta_script/submit_pbnr_v2.py:155
↓ 1 callersMethodsetup_assets
Setup the assets like dataset, pretrained models, etc.
cdslib/core/script/base_train.py:1032
↓ 1 callersMethodsetup_for_distributed_learning
Setup the networks in the model for distributed computation. It automactically gather all modules.
cdslib/core/models/base_model.py:268
↓ 1 callersFunctionshuffle_along_axis
Shuffle `arr` along `axis`. Args: arr: (*,) axis: Returns: (*,)
plib/sample_utils.py:92
↓ 1 callersMethodstart_process
( self, dim_w=30, num_samples=1000, batch_size=32,
tests/cdslib/script/test_base_train.py:351
↓ 1 callersMethodstate_dict
Returns a dictionary that can be saved or load.
pointersect/inference/structures.py:252
↓ 1 callersMethodstate_dict
Returns a dictionary that can be saved or load.
pointersect/inference/structures.py:1298
↓ 1 callersMethodstate_dict
Returns a dictionary that can be saved or load.
pointersect/inference/structures.py:1695
↓ 1 callersMethodstate_dict
Returns a dictionary that can be saved or load.
pointersect/inference/structures.py:2449
↓ 1 callersFunctionsub2ind
Given x y z index, change to the linear index. (matlab's sub2ind) Args: idx: (*, n, 3) int64_t size: (*, 3) int64_t Returns: (*, n) int64_t
pointersect/pr/cpp/pr.cpp:101
↓ 1 callersMethodsubspace_fun
This function exposes the underlying subspace operators. See :py:class:`Subspace` for detailed documentation.
cdslib/core/nn/modules/subspace.py:307
↓ 1 callersMethodsubspace_fun
Args: xls (*, style_dim) or list of (*, style_dim) or None: input tensor on the right hand side xrs (
cdslib/core/nn/modules/subspace.py:500
↓ 1 callersMethodtest
( self, b=10, m=7, n=20, max_grid_size=5,
tests/pointersect/pr/test_naive.py:113
↓ 1 callersMethodtest
(self, b=10, n=100, max_size=20)
tests/pointersect/pr/cuda/test_cuda.py:110
↓ 1 callersMethodtest1
( self, b=1, m=1, n=10000, max_grid_width=20.,
tests/pointersect/pr/cpp/test_cpp.py:389
↓ 1 callersMethodtest_setup
Setup before test loop.
cdslib/core/script/base_train.py:1164
↓ 1 callersMethodto
(self, device: torch.device)
pointersect/inference/structures.py:1289
↓ 1 callersMethodtrain_setup
Setup before training loop.
cdslib/core/script/base_train.py:1090
↓ 1 callersFunctionuv_sampling
Sample the feature map at the uv values. Args: uv: (b, *p, 2) values between [0, 1] feature_map: (b
plib/utils.py:1313
↓ 1 callersMethodvalidation_setup
Setup before validation loop.
cdslib/core/script/base_train.py:1127
FunctionPYBIND11_MODULE
pointersect/pr/cpp/pr.cpp:961
FunctionPYBIND11_MODULE
pointersect/pr/cuda/pr_cuda.cpp:734
Method__call__
(self, input_list)
tests/cdslib/data/dataloader/test_batch_preparer.py:35
Method__call__
(self, *args, **kwargs)
cdslib/core/models/base_model.py:330
Method__call__
query the texture map at locations uv Args: uv: (*, 2) u is in the x/width direction, v is in the y/height direction,
plib/uv_mapping.py:42
Method__call__
Returns: input_rgbd_images: RGBDImage, (b, q, h, w), ray: Ray, (b, q=n_target_img, ho
pointersect/data/mesh_dataset_v2.py:340
Method__delattr__
(self, name: str)
cdslib/core/utils/argparse_utils.py:191
Method__delitem__
(self, key)
cdslib/core/nn/nn_utils.py:339
Method__enter__
(self)
cdslib/core/script/base_train.py:253
Method__exit__
(self, exc_type, exc_val, exc_tb)
cdslib/core/script/base_train.py:256
Method__getattr__
(self, name: str)
cdslib/core/utils/argparse_utils.py:182
Method__getitem__
(self, i)
tests/cdslib/script/test_base_train.py:26
Method__getitem__
(self, idx)
tests/cdslib/data/test_chunked_memmap.py:25
Method__getitem__
(self, i)
tests/cdslib/data/test_chunked_memmap.py:191
Method__getitem__
(self, i)
tests/cdslib/data/dataloader/test_batch_preparer.py:26
Method__getitem__
Return the ith's sample (in global index) as if calling samples[idx]. Note: 1. Each sample is returned in their native shape (no
cdslib/core/data/chunked_memmap.py:144
Method__getitem__
Returns the content of the i-th line in the index file.
cdslib/core/data/index_reader.py:70
Method__getitem__
(self, key)
cdslib/core/nn/nn_utils.py:333
Method__getitem__
Returns: point_cloud: PointCloud, (b=1, n), n: number of points ray: Ray, (b=1, q=n_
pointersect/data/mesh_dataset_v2.py:237
Method__getitem__
(self, idx)
pointersect/data/mesh_dataset_v2.py:399
Method__getitem__
(self, i)
pointersect/data/hypersim_dataset.py:541
Method__getitem__
slice the camera in the b dimension. Always retain (b, q, 4, 4) even when ib is int.
pointersect/inference/structures.py:1679
Method__init__
( self, dim_w: int, dim_y: int, # dataset size batch_size: in
tests/cdslib/script/test_base_train.py:39
Method__init__
(self, wdir)
tests/cdslib/data/test_chunked_memmap.py:18
Method__init__
(self, samples_list)
tests/cdslib/data/test_chunked_memmap.py:183
Method__init__
(self, arr: np.ndarray)
tests/cdslib/data/dataloader/test_batch_preparer.py:18
Method__init__
(self, *args, **kwargs)
cdslib/core/utils/argparse_utils.py:173
Method__init__
Create the logger. Args: log_filename: Filename to save the log. None: do not save to a file. Re
cdslib/core/utils/print_and_save.py:251
Method__init__
Args: convert_to_float: whether to convert input values (from Tensor, ndarray) to float
cdslib/core/utils/print_and_save.py:553
Method__init__
Args: exp_tag (str): name of the experiment config_filename (str): the yaml or json f
cdslib/core/script/base_train.py:61
Method__init__
r""" Vary the learning rate every training step according to: .. math:: lr = \text{factor} * d_{model}^{-0.5} * \
cdslib/core/optim/tf_optim.py:15
Method__init__
Create memmaps that store chunked of the samples. Args: working_dir: the directory where all the chunked memmaps
cdslib/core/data/chunked_memmap.py:43
Method__init__
Args: index_filename: the index file that lists all the data, one per line. with_uid:
cdslib/core/data/index_reader.py:36
Method__init__
Args: batch_size: typical batch_size collate_fn: collate function used to combine sam
cdslib/core/data/dataloader/batch_preparer.py:49
Method__init__
Args: batch_size: batch size drop_last: whether to drop the last few data that cannot
cdslib/core/data/dataloader/bucket_sampler.py:53
Method__init__
Args: seq_lens: sequence length of individual samples. batch_size: batch size of indi
cdslib/core/data/dataloader/distributed_bucket_sampler.py:64
Method__init__
Args: batch_size: batch size max_batch_combined_size: limitation on batch_size * seq_
cdslib/core/data/dataloader/sort_sampler.py:15
Method__init__
(self, *args, **kwargs)
cdslib/core/nn/nn_utils.py:323
Method__init__
Create an Alex Graves' model. Args: param_dict: A :py:class:`ParamGraves` object to define the hyper-parameters o
cdslib/core/nn/modules/graves.py:198
Method__init__
Create a Variational Recurrent Neural Network (VRNN) model. Args: param_dict: A :py:class:`ParamVRNN` ob
cdslib/core/nn/modules/vrnn.py:210
Method__init__
Convenient helper nn.Module to create a stack of linear layers. Args: num_layers: Total number of linear
cdslib/core/nn/modules/linear.py:110
Method__init__
r""" Args: in_features (int): input feature dimension out_features (int): output featu
cdslib/core/nn/modules/linear.py:316
Method__init__
Construct multiple stacked conv1D layers. It applies a low-pass filtering for every upsampling/downsampling to avoid aliasing.
cdslib/core/nn/modules/filtered_conv.py:27
Method__init__
r""" Args: in_channels (int): number of input channels of the blur_kernel out_channels (int):
cdslib/core/nn/modules/filtered_conv.py:477
Method__init__
Given input, the layer computes a mixture of 1D gaussians as the attention weights. Args: num_mixtures:
cdslib/core/nn/modules/attention.py:21
Method__init__
See :py:class:`TacotronContentEncoder` for details.
cdslib/core/nn/modules/tacotron_content_encoder.py:122
Method__init__
r""" Args: in_features (int): input feature dimension out_features (int): output featu
cdslib/core/nn/modules/subspace.py:206
Method__init__
r"""Construct multiple stacked modulated subspace layers sandwiched between nonlinearity. Args: in_features (int):
cdslib/core/nn/modules/subspace.py:320
Method__init__
Construct nested dropout layer, which drops the last dimension. Note that it creates a mask of shape (B, C), so if the input x
cdslib/core/nn/modules/nested_dropout.py:20
Method__init__
let :math:`p_t = p` if target = 1, :math:`1-p` if target != 1 let :math:`a_t = a` if target = 1, :math:`1-p` if target != 1
cdslib/core/nn/modules/focal_loss.py:9
Method__init__
Create a one-dimensional transposed convolution layer whose weights are initialized with a chosen method. The usage of the l
cdslib/core/nn/modules/conv.py:157
Method__init__
Multiple Conv1D layers with normalization and nonlinearity. Args: num_layers (int): total number of laye
cdslib/core/nn/modules/conv.py:300
Method__init__
A multi-layer RNN composed of LSTMCells (or the provided lstm_cell_fn). Args: num_layers: Number of RNN
cdslib/core/nn/modules/lstm.py:25
Method__init__
(self)
cdslib/core/models/base_model.py:42
Method__init__
Args: texture: (h, w, dim) for example, an rgb image, a displacement map, a bump map, etc mode:
plib/uv_mapping.py:10
Method__init__
Args: u: (*, 3) the mean direction. (*) is the dimension of independent components`.
plib/spherical_gaussian.py:25
Method__init__
(self, R: np.ndarray = None, t: np.ndarray = None, H: np.ndarray = None)
plib/rigid_motion.py:15
Method__init__
( self, ## dataset_info dataset_name: str = 'tex', # name of the dataset
pointersect/script/train_v2.py:31
Method__init__
Args: mesh: class Mesh containing cleaned and scaled mesh and ray_casting scene. n_target_imgs:
pointersect/data/mesh_dataset_v2.py:21
Method__init__
( self, datasets: T.Iterable[MeshDataset], max_retry=30, wait_
pointersect/data/mesh_dataset_v2.py:383
Method__init__
Args: scene_dir: the root dir of the scene, e.g., /mnt/task_runtime/trove/ml-hypersim-1.0.0/data
pointersect/data/hypersim_dataset.py:102
Method__init__
( self, xyz_w: torch.Tensor, # (b, n, 3) rgb: T.Optional[torch.Tensor] =
pointersect/inference/structures.py:32
Method__init__
( self, intersection_xyz_w: torch.Tensor, # (b, *m_shape, 3) intersection
pointersect/inference/structures.py:1240
Method__init__
( self, H_c2w: torch.Tensor, # (b, q, 4, 4) camera pose in the world coord
pointersect/inference/structures.py:1600
Method__init__
( self, rgb: torch.Tensor, # (b, q, h, w, 3) b: different scene, q: multiple imgs of
pointersect/inference/structures.py:2129
Method__init__
( self, mesh: T.Union[o3d.geometry.TriangleMesh, str], scale: T.Optional[f
pointersect/inference/structures.py:3243
Method__init__
Args: mode: n_imgs: number of cameras in a set total: total number of se
pointersect/inference/structures.py:3661
Method__init__
Apply the color correction to an rgbd_image Args: correction_type: 'wrgb': the correction is 3 scalars \
pointersect/inference/structures.py:4250
Method__init__
( self, d_model: int, nhead: int, dim_feedforward: int = 2048,
pointersect/models/network_transformer.py:59
Method__init__
( self, learn_dist: bool, num_layers: int, dim_feature: int,
pointersect/models/pointersect.py:22
Method__iter__
- randomly select sample indexes to be used in the epoch - reset the batch_sampler :return:
cdslib/core/data/dataloader/batch_preparer.py:241
Method__iter__
(self)
cdslib/core/data/dataloader/bucket_sampler.py:199
Method__iter__
(self)
cdslib/core/data/dataloader/distributed_bucket_sampler.py:220
Method__iter__
(self)
cdslib/core/data/dataloader/sort_sampler.py:89
Method__iter__
(self)
cdslib/core/nn/nn_utils.py:342
Method__len__
(self)
tests/cdslib/script/test_base_train.py:23
Method__len__
(self)
tests/cdslib/data/test_chunked_memmap.py:22
Method__len__
(self)
tests/cdslib/data/test_chunked_memmap.py:187
← previousnext →301–400 of 743, ranked by callers