MCPcopy Create free account

hub / github.com/facebookresearch/sam-3d-objects / functions

Functions784 in github.com/facebookresearch/sam-3d-objects

↓ 1 callersMethod_log_p0
(self, x0)
sam3d_objects/model/backbone/generator/flow_matching/model.py:230
↓ 1 callersFunction_naive_sdpa
Naive implementation of scaled dot product attention.
sam3d_objects/model/backbone/tdfy_dit/modules/attention/full_attn.py:26
↓ 1 callersMethod_normalize_weights
Normalizes the given weights to be non-negative. If input weights are None, it creates and returns a set of weights of ones.
sam3d_objects/model/backbone/tdfy_dit/representations/mesh/flexicubes/flexicubes.py:121
↓ 1 callersMethod_prepare_t_and_d
Prepare time sequence and step size for inference
sam3d_objects/model/backbone/generator/shortcut/model.py:395
↓ 1 callersMethod_preprocess_image_and_mask
Backward compatibility wrapper - only applies dual transforms
sam3d_objects/data/dataset/tdfy/preprocessor.py:183
↓ 1 callersMethod_preprocess_image_and_mask
( self, rgb_image, mask_image, img_mask_joint_transform )
sam3d_objects/pipeline/inference_pipeline.py:778
↓ 1 callersMethod_preprocess_input
(self, x)
sam3d_objects/model/backbone/dit/embedder/dino.py:70
↓ 1 callersMethod_preprocess_rgb_image_mask
Apply joint transforms to rgb_image and rgb_image_mask.
sam3d_objects/data/dataset/tdfy/preprocessor.py:148
↓ 1 callersMethod_prune_network
Ran this script: out = model(input) loss = out.sum() loss.backward() for name, p in dino_model.named_paramet
sam3d_objects/model/backbone/dit/embedder/dino.py:115
↓ 1 callersMethod_rope
(self, qkv: SparseTensor)
sam3d_objects/model/backbone/tdfy_dit/modules/sparse/attention/modules.py:119
↓ 1 callersMethod_sin_cos_embedding
Create sinusoidal position embeddings. Args: x: a 1-D Tensor of N indices Returns: an (N, D) Tensor
sam3d_objects/model/backbone/tdfy_dit/modules/transformer/blocks.py:22
↓ 1 callersMethod_triangulate
Connects four neighboring dual vertices to form a quadrilateral. The quadrilaterals are then split into triangles based on the gamma
sam3d_objects/model/backbone/tdfy_dit/representations/mesh/flexicubes/flexicubes.py:345
↓ 1 callersMethod_updown
(self, x: sp.SparseTensor)
sam3d_objects/model/backbone/tdfy_dit/models/structured_latent_flow.py:56
↓ 1 callersMethod_validate_fields
(self)
sam3d_objects/data/dataset/tdfy/pose_target.py:197
↓ 1 callersMethod_warmup
(self, num_warmup_iters=3)
sam3d_objects/pipeline/inference_pipeline_pointmap.py:139
↓ 1 callersMethod_warmup
(self, num_warmup_iters=3)
sam3d_objects/pipeline/inference_pipeline.py:249
↓ 1 callersFunction_yaw_pitch_r_fov_to_extrinsics_intrinsics
(yaws, pitchs, rs, fovs)
notebook/inference.py:123
↓ 1 callersFunctionalign_mesh_to_pointcloud
Align mesh vertices to target point cloud using scale and translation.
notebook/mesh_alignment.py:124
↓ 1 callersFunctionapply_gs_transform
Legacy function for compatibility - creates a copy. Use apply_gs_transform_inplace for better performance.
sam3d_objects/pipeline/layout_post_optimization_utils.py:981
↓ 1 callersFunctionapply_gs_transform_inplace_no_backup
Apply transformation to Gaussian Splatting object IN-PLACE for efficiency. Uses provided backup_data without creating new backups (more effic
sam3d_objects/pipeline/layout_post_optimization_utils.py:932
↓ 1 callersFunctionapply_icp_transformation_to_gaussian
Apply ICP transformation matrix to Gaussian scaling and rotation parameters. Returns: Tuple of (R, scale_icp, t) where:
sam3d_objects/pipeline/layout_post_optimization_utils.py:756
↓ 1 callersMethodapply_pointmap_dropout
Apply dropout to pointmap embeddings. Drops entire pointmap for selected samples during training or when forced. Whe
sam3d_objects/model/backbone/dit/embedder/pointmap.py:108
↓ 1 callersFunctionbake_texture
Bake texture to a mesh from multiple observations. Args: vertices (np.array): Vertices of the mesh. Shape (V, 3). faces (np.
sam3d_objects/model/backbone/tdfy_dit/utils/postprocessing_utils.py:364
↓ 1 callersFunctionblock_attn_config
Return the attention configuration of the model.
sam3d_objects/model/backbone/tdfy_dit/models/structured_latent_vae/base.py:11
↓ 1 callersFunctionblock_diag_attn_mask
Create an additive attention mask for block-diagonal attention. The result is shape [sum_q, sum_kv], with 0.0 in the valid region(s) and
sam3d_objects/model/backbone/tdfy_dit/modules/sparse/attention/masked_sdpa.py:6
↓ 1 callersFunctionbuild_rotation
(r)
sam3d_objects/model/backbone/tdfy_dit/representations/gaussian/general_utils.py:85
↓ 1 callersFunctionbuild_scaling_rotation
(s, r)
sam3d_objects/model/backbone/tdfy_dit/representations/gaussian/general_utils.py:111
↓ 1 callersFunctioncalc_serialization
Calculate serialization and partitioning for a set of coordinates. Args: tensor (SparseTensor): The input tensor. window_siz
sam3d_objects/model/backbone/tdfy_dit/modules/sparse/attention/serialized_attn.py:40
↓ 1 callersFunctioncalc_window_partition
Calculate serialization and partitioning for a set of coordinates. Args: tensor (SparseTensor): The input tensor. window_siz
sam3d_objects/model/backbone/tdfy_dit/modules/sparse/attention/windowed_attn.py:24
↓ 1 callersFunctioncheck_bounding_box
(bbox_w, bbox_h)
sam3d_objects/data/dataset/tdfy/img_and_mask_transforms.py:47
↓ 1 callersFunctioncheck_hydra_safety
( config: DictConfig, whitelist_filters: List[Callable], blacklist_filters: List[Callable], )
notebook/inference.py:328
↓ 1 callersFunctioncheck_target
( target: str, whitelist_filters: List[Callable], blacklist_filters: List[Callable], )
notebook/inference.py:315
↓ 1 callersFunctioncommon_prefix_length
(str_0: str, str_1: str)
sam3d_objects/model/io.py:45
↓ 1 callersMethodcomput_face_normals
(self, verts, faces)
sam3d_objects/model/backbone/tdfy_dit/representations/mesh/cube2mesh.py:23
↓ 1 callersFunctioncompute_gs_loss_rgb_mask
Loss function for GS optimization using both RGB and mask supervisions. Args: rendered: GS rendered output with 'color' key and 'alp
sam3d_objects/pipeline/layout_post_optimization_utils.py:1182
↓ 1 callersFunctioncompute_loss
(rendered, mask_gt, loss_weights, quat, translation, scale)
sam3d_objects/pipeline/layout_post_optimization_utils.py:256
↓ 1 callersFunctioncompute_mask_bbox
Compute a bounding box around a binary mask with optional size adjustment. Args: mask: A 2D binary tensor where non-zero values repr
sam3d_objects/data/dataset/tdfy/img_and_mask_transforms.py:335
↓ 1 callersMethodcompute_self_consistency_target
Compute self-consistency target for shortcut model's self-consistency objective. This method uses a mixed approach where:
sam3d_objects/model/backbone/generator/shortcut/model.py:91
↓ 1 callersFunctionconcat_rgba
Create a 4-channel RGBA image from a 3-channel RGB image and a mask.
sam3d_objects/data/dataset/tdfy/img_and_mask_transforms.py:110
↓ 1 callersFunctionconstruct_dense_grid
construct a dense grid based on resolution
sam3d_objects/model/backbone/tdfy_dit/representations/mesh/utils_cube.py:27
↓ 1 callersMethodconstruct_list_of_attributes
(self)
sam3d_objects/model/backbone/tdfy_dit/representations/gaussian/gaussian_model.py:124
↓ 1 callersFunctionconstruct_voxel_grid
(coords)
sam3d_objects/model/backbone/tdfy_dit/representations/mesh/utils_cube.py:42
↓ 1 callersMethodconvert_to_fp16
Convert the torso of the model to float16.
sam3d_objects/model/backbone/tdfy_dit/models/sparse_structure_flow.py:173
↓ 1 callersMethodconvert_to_fp16
Convert the torso of the model to float16.
sam3d_objects/model/backbone/tdfy_dit/models/mot_sparse_structure_flow.py:97
↓ 1 callersMethodconvert_to_fp16
Convert the torso of the model to float16.
sam3d_objects/model/backbone/tdfy_dit/models/sparse_structure_vae.py:181
↓ 1 callersMethodconvert_to_fp16
Convert the torso of the model to float16.
sam3d_objects/model/backbone/tdfy_dit/models/sparse_structure_vae.py:292
↓ 1 callersMethodconvert_to_fp16
Convert the torso of the model to float16.
sam3d_objects/model/backbone/tdfy_dit/models/structured_latent_flow.py:220
↓ 1 callersMethodconvert_to_fp16
Convert the torso of the model to float16.
sam3d_objects/model/backbone/tdfy_dit/models/structured_latent_vae/decoder_mesh.py:153
↓ 1 callersFunctionconvert_to_halo
(pred_transform, device, dtype)
sam3d_objects/pipeline/inference_utils.py:801
↓ 1 callersFunctioncopy_and_update_gaussian_positions
Create a copy of Gaussian with updated positions.
sam3d_objects/pipeline/layout_post_optimization_utils.py:829
↓ 1 callersFunctioncreate_textured_mesh
( verts: torch.Tensor, faces: torch.Tensor, vert_colors: torch.Tensor, )
sam3d_objects/utils/visualization/image_mesh.py:69
↓ 1 callersFunctioncrop_mesh_with_mask
Crop mesh vertices to only those visible in the mask.
notebook/mesh_alignment.py:62
↓ 1 callersFunctioncubes_to_verts
Args: cubes [Vx8] verts index for each cube value [Vx8xM] value to be scattered Operation: reduced[cubes[i][j]][k] +=
sam3d_objects/model/backbone/tdfy_dit/representations/mesh/utils_cube.py:49
↓ 1 callersFunctiondenormalize_f
(norm_K, height, width)
sam3d_objects/pipeline/layout_post_optimization_utils.py:357
↓ 1 callersFunctiondenormalize_intrinsics
Convert normalized intrinsics to absolute pixel coordinates.
notebook/mesh_alignment.py:44
↓ 1 callersMethoddicts_pose_target_to_instance_pose
( **kwargs, )
sam3d_objects/data/dataset/tdfy/pose_target.py:760
↓ 1 callersFunctiondownsample_sparse_structure
Downsample sparse structure coordinates when there are more than max_coords. Downsamples by rescaling coordinates, effectively shrinking the
sam3d_objects/pipeline/inference_utils.py:653
↓ 1 callersMethodembed_condition
(self, condition_embedder, *args, **kwargs)
sam3d_objects/pipeline/inference_pipeline.py:622
↓ 1 callersMethodembed_pointmap_windows
Process pointmap into window embeddings without positional encoding
sam3d_objects/model/backbone/dit/embedder/pointmap.py:156
↓ 1 callersFunctionensure_is_subclass
(child_class: type, parent_class: type)
sam3d_objects/config/utils.py:71
↓ 1 callersMethodestimate_plane
(self, pointmap_dict, image, ground_area_threshold=0.25, min_points=100)
sam3d_objects/pipeline/inference_pipeline_pointmap.py:537
↓ 1 callersFunctionestimate_plane_area
Calculate the area covered by the mask's 2D bounding box as a fraction of total image area.
sam3d_objects/pipeline/inference_utils.py:1068
↓ 1 callersFunctioneval_sh
Evaluate spherical harmonics at unit directions using hardcoded SH polynomials. Works with torch/np/jnp. ... Can be 0 or more batch d
sam3d_objects/model/backbone/tdfy_dit/renderers/sh_utils.py:58
↓ 1 callersFunctionexpand_right
e.g. Takes tensor of (a, b, c) and returns a tensor of (a, b, c, 1, 1, ...)
sam3d_objects/data/utils.py:82
↓ 1 callersFunctionextract_args_fn
(batch)
sam3d_objects/data/utils.py:155
↓ 1 callersFunctionextract_rgb_from_gs_rendering
Extract RGB from GS rendering with consistent logic. Args: rendered: GS rendered output dictionary Returns: RGB tensor
sam3d_objects/pipeline/layout_post_optimization_utils.py:495
↓ 1 callersFunctionextract_target_points
Extract target points from MoGe pointmap using visible mask.
notebook/mesh_alignment.py:97
↓ 1 callersMethodflat_to_cube
For converting latent tokens from generator to cube Args: flat_latent: (B, T, C) Returns: cube: (B,
sam3d_objects/model/backbone/tdfy_dit/models/sparse_structure_vae.py:327
↓ 1 callersMethodforward
(self, x_shape, x_device, *args_conditionals, **kwargs_conditionals)
sam3d_objects/model/backbone/generator/base.py:37
↓ 1 callersMethodforward
(self, t)
sam3d_objects/model/backbone/tdfy_dit/models/sparse_structure_flow.py:64
↓ 1 callersMethodforward
( self, h: Dict, t: torch.Tensor, cond: torch.Tensor, d: torch.Tensor
sam3d_objects/model/backbone/tdfy_dit/models/mot_sparse_structure_flow.py:140
↓ 1 callersMethodforward
(self, x: torch.Tensor)
sam3d_objects/model/backbone/tdfy_dit/models/sparse_structure_vae.py:50
↓ 1 callersMethodforward
( self, x: sp.SparseTensor, t: torch.Tensor, cond: torch.Tensor, d: torch.Tensor = None )
sam3d_objects/model/backbone/tdfy_dit/models/structured_latent_flow.py:268
↓ 1 callersMethodforward
(self, x, **kwargs)
sam3d_objects/model/backbone/dit/embedder/dino.py:110
↓ 1 callersMethodfrom_invariant
(cls, invariant_targets: InvariantPoseTarget)
sam3d_objects/data/dataset/tdfy/pose_target.py:599
↓ 1 callersMethodgather_from_leaf_children
Gather the data from the leaf children. Args: data (torch.Tensor): the data to gather. The first dimension should be the
sam3d_objects/model/backbone/tdfy_dit/representations/octree/octree_dfs.py:292
↓ 1 callersMethodgather_from_non_leaf_children
Gather the data from the non-leaf children. Args: data (torch.Tensor): the data to gather. The first dimension should be
sam3d_objects/model/backbone/tdfy_dit/representations/octree/octree_dfs.py:312
↓ 1 callersFunctiongaussian_blur
Apply gaussian blur to the input image. Args: image (torch.Tensor): Image tensor of shape (C, H, W), float32, with values in [0, 1].
sam3d_objects/data/dataset/tdfy/img_and_mask_transforms.py:923
↓ 1 callersMethodgenerate
(self, x_shape, x_device, *args_conditionals, **kwargs_conditionals)
sam3d_objects/model/backbone/generator/base.py:45
↓ 1 callersMethodgenerate_iter
( self, x_shape, x_device, *args_conditionals, **kwargs_conditionals,
sam3d_objects/model/backbone/generator/base.py:55
↓ 1 callersMethodget_covariance
(self, scaling_modifier=1)
sam3d_objects/model/backbone/tdfy_dit/representations/gaussian/gaussian_model.py:103
↓ 1 callersFunctionget_default_pose_decoder
()
sam3d_objects/pipeline/inference_utils.py:585
↓ 1 callersFunctionget_gs_mask_renderer
Setup GS renderer for mask rendering. Forces square rendering (H=W) to work with unmodified gaussian_render.py.
sam3d_objects/pipeline/layout_post_optimization_utils.py:581
↓ 1 callersFunctionget_gs_transformed
Apply initial transformation to Gaussian Splatting object. Similar to get_mesh but for GS. Args: Gaussian: Original Gaussian obj
sam3d_objects/pipeline/layout_post_optimization_utils.py:520
↓ 1 callersMethodget_layout
(self, feats: torch.Tensor, name: str)
sam3d_objects/model/backbone/tdfy_dit/representations/mesh/cube2mesh.py:94
↓ 1 callersFunctionget_mask_renderer
(Mask, min_size, Intrinsics, device)
sam3d_objects/pipeline/layout_post_optimization_utils.py:131
↓ 1 callersFunctionget_mesh
(Mesh, tfm_ori, device)
sam3d_objects/pipeline/layout_post_optimization_utils.py:116
↓ 1 callersFunctionget_moge_pointcloud
Generate MoGe point cloud from image tensor.
notebook/mesh_alignment.py:35
↓ 1 callersFunctionget_pose_decoder
(name)
sam3d_objects/pipeline/inference_utils.py:601
↓ 1 callersMethodget_scale_and_shift
(cls, pointmap)
sam3d_objects/data/dataset/tdfy/pose_target.py:361
↓ 1 callersFunctionget_stats
(tensor: torch.Tensor)
sam3d_objects/data/utils.py:192
↓ 1 callersFunctiongradient
(output, x, create_graph: bool = False)
sam3d_objects/model/backbone/generator/flow_matching/solver.py:15
↓ 1 callersFunctionhalton_sequence
(dim, n)
sam3d_objects/model/backbone/tdfy_dit/utils/random_utils.py:19
↓ 1 callersFunctionhas_internal_occlusion
Check if the mask has internal holes or has been split into fragments. This may indicate internal occlusion.
sam3d_objects/pipeline/layout_post_optimization_utils.py:81
↓ 1 callersFunctionimg_bytes_to_np
(img_bytes)
sam3d_objects/utils/visualization/plotly/save_scene.py:15
↓ 1 callersFunctioninfer_intrinsics_from_pointmap
Infer camera intrinsics from a point map. Exact implementation matching moge library's inference logic. Args: points: P
sam3d_objects/pipeline/utils/pointmap.py:21
↓ 1 callersMethodinit_pose_decoder
(self, ss_generator_config_path, pose_decoder_name)
sam3d_objects/pipeline/inference_pipeline.py:294
↓ 1 callersMethodinit_slat_condition_embedder
( self, slat_generator_config_path, slat_generator_ckpt_path )
sam3d_objects/pipeline/inference_pipeline.py:412
↓ 1 callersMethodinit_slat_decoder_mesh
( self, slat_decoder_mesh_config_path, slat_decoder_mesh_ckpt_path )
sam3d_objects/pipeline/inference_pipeline.py:382
↓ 1 callersMethodinit_slat_generator
(self, slat_generator_config_path, slat_generator_ckpt_path)
sam3d_objects/pipeline/inference_pipeline.py:322
← previousnext →201–300 of 784, ranked by callers