MCPcopy Create free account

hub / github.com/VAST-AI-Research/HoloPart / functions

Functions124 in github.com/VAST-AI-Research/HoloPart

↓ 6 callersMethoddecode
( self, z: torch.Tensor, sampled_points: torch.Tensor, return_dict: bool = Tru
holopart/models/autoencoders/autoencoder_kl_triposg.py:514
↓ 6 callersFunctionget_neighbor
(t, shift, axis)
holopart/inference_utils.py:220
↓ 6 callersFunctionsafe_where
(neighbor)
holopart/inference_utils.py:271
↓ 4 callersMethodset_attn_processor
r""" Sets the attention processor to use to compute attention. Parameters: processor (`dict` of `AttentionProcessor` or o
holopart/models/transformers/triposg_transformer.py:727
↓ 3 callersMethod_build_cross_attenion_kwargs
(self, name, encoder_hidden_states, weight=1.0)
holopart/models/transformers/triposg_transformer.py:367
↓ 3 callersMethodsample
(self, generator: Optional[torch.Generator] = None)
holopart/models/autoencoders/vae.py:27
↓ 3 callersMethodset_attn_processor
r""" Sets the attention processor to use to compute attention. Parameters: processor (`dict` of `AttentionProcessor` or o
holopart/models/autoencoders/autoencoder_kl_triposg.py:347
↓ 3 callersMethodset_timesteps
Sets the discrete timesteps used for the diffusion chain (to be run before inference). Args: num_inference_steps (`int`)
holopart/schedulers/scheduling_rectified_flow.py:166
↓ 3 callersMethodset_topk
(self, topk)
holopart/models/transformers/triposg_transformer.py:287
↓ 2 callersMethod__init__
( self, in_channels: int = 3, dim: int = 512, num_attention_heads: int = 8,
holopart/models/autoencoders/autoencoder_kl_triposg.py:27
↓ 2 callersMethod_decode
( self, z: torch.Tensor, sampled_points: torch.Tensor, num_chunks: int = 50000
holopart/models/autoencoders/autoencoder_kl_triposg.py:483
↓ 2 callersMethod_encode
( self, x: torch.Tensor, num_tokens: int = 2048, seed: Optional[int] = None )
holopart/models/autoencoders/autoencoder_kl_triposg.py:441
↓ 2 callersMethod_forward_cross_attention
(self, hidden_states, cross_attentions: List[Dict[str, Any]], image_rotary_emb: Opt
holopart/models/transformers/triposg_transformer.py:348
↓ 2 callersMethod_sample_features
Sample points from features of the input point cloud. Args: x (torch.Tensor): The input point cloud. shape: (B, N, C)
holopart/models/part_encoders.py:171
↓ 2 callersMethodadd_noise
(self, x, timesteps)
holopart/models/part_encoders.py:208
↓ 2 callersFunctionhierarchical_extract_geometry
Args: geometric_func: device: bounds: dense_octree_depth: hierarchical_octree_depth: Returns:
holopart/inference_utils.py:129
↓ 2 callersMethodset_chunk_feed_forward
(self, chunk_size: Optional[int], dim: int = 0)
holopart/models/transformers/triposg_transformer.py:339
↓ 1 callersMethod__init__
( self, position_channels: int = 3, part_feature_channels: int = 3, whole_feat
holopart/models/part_encoders.py:84
↓ 1 callersMethod__init__
( self, dim: int, num_attention_heads: int, use_self_attention: bool = True,
holopart/models/transformers/triposg_transformer.py:162
↓ 1 callersMethod_forward
( self, hidden_states: torch.Tensor, encoder_hidden_states: Optional[torch.Tensor] = N
holopart/models/transformers/triposg_transformer.py:392
↓ 1 callersMethod_init_step_index
(self, timestep)
holopart/schedulers/scheduling_rectified_flow.py:226
↓ 1 callersMethod_sample_features
Sample points from features of the input point cloud. Args: x (torch.Tensor): The input point cloud. shape: (B, N, C)
holopart/models/autoencoders/autoencoder_kl_triposg.py:404
↓ 1 callersMethod_set_time_proj
( self, time_embedding_type: str, inner_dim: int, flip_sin_to_cos: bool,
holopart/models/transformers/triposg_transformer.py:622
↓ 1 callersMethod_sigma_to_t
(self, sigma)
holopart/schedulers/scheduling_rectified_flow.py:154
↓ 1 callersMethod_t_to_sigma
(self, timestep)
holopart/schedulers/scheduling_rectified_flow.py:157
↓ 1 callersMethodadd_additional_cross_attention
(self, name, cross_attention_dim, cross_attention_norm_type=None)
holopart/models/transformers/triposg_transformer.py:318
↓ 1 callersMethoddisable_slicing
r""" Disable sliced VAE decoding. If `enable_slicing` was previously enabled, this method will go back to computing decoding in one st
holopart/models/autoencoders/autoencoder_kl_triposg.py:397
↓ 1 callersMethodenable_slicing
r""" Enable sliced VAE decoding. When this option is enabled, the VAE will split the input tensor in slices to compute decoding in sev
holopart/models/autoencoders/autoencoder_kl_triposg.py:389
↓ 1 callersMethodencode_context_local
(self, part_surface, whole_surface, part_local_surface, noise_strength, device)
holopart/pipelines/pipeline_holopart.py:154
↓ 1 callersFunctionexpand_edge_region_fast
(edge_coords, grid_size)
holopart/inference_utils.py:100
↓ 1 callersFunctionextract_near_surface_volume_fn
Args: input_tensor: shape [D, D, D], torch.float16 alpha: isosurface offset Returns: mask: shape [D, D, D], torch.int
holopart/inference_utils.py:203
↓ 1 callersFunctionfind_candidates_band
Returns the coordinates of all voxels in the occupancy_grid where |value| < band_threshold. Args: occupancy_grid (torch.Tensor): A 3
holopart/inference_utils.py:72
↓ 1 callersFunctionflash_extract_geometry
( latents: torch.FloatTensor, vae: Callable, bounds: Union[Tuple[float], List[float], float] = 1.0
holopart/inference_utils.py:319
↓ 1 callersFunctiongenerate_dense_grid_points_2
( bbox_min: np.ndarray, bbox_max: np.ndarray, octree_resolution: int, indexing: str = "ij", )
holopart/inference_utils.py:300
↓ 1 callersFunctiongenerate_dense_grid_points_gpu
(bbox_min: torch.Tensor, bbox_max: torch.Tensor,
holopart/inference_utils.py:12
↓ 1 callersMethodget_dims
(self, input_dim)
holopart/models/embeddings.py:70
↓ 1 callersMethodindex_for_timestep
(self, timestep, schedule_timesteps=None)
holopart/schedulers/scheduling_rectified_flow.py:212
↓ 1 callersFunctionparallel_zoom
(occupancy_grid, scale_factor)
holopart/inference_utils.py:123
↓ 1 callersFunctionprepare_data
(data_path, device="cuda")
scripts/inference_holopart.py:23
↓ 1 callersMethodprepare_latents
( self, batch_size, num_tokens, num_channels_latents, dtype, d
holopart/pipelines/pipeline_holopart.py:129
↓ 1 callersMethodqkv
(self, attn, q, k, v, attn_mask, dropout_p, is_causal)
holopart/models/attention_processor.py:26
↓ 1 callersMethodquery_geometry
( self, model_fn: callable, queries: torch.Tensor, sample: torch.Tensor,
holopart/models/autoencoders/autoencoder_kl_triposg.py:154
↓ 1 callersFunctionretrieve_timesteps
Calls the scheduler's `set_timesteps` method and retrieves timesteps from the scheduler after the call. Handles custom timesteps. Any kwargs
holopart/pipelines/pipeline_holopart.py:23
↓ 1 callersFunctionrun_holopart
( pipe: Any, batch: dict, batch_size: int, seed: int, num_inference_steps: int = 50, g
scripts/inference_holopart.py:99
↓ 1 callersMethodscale_noise
Forward function for the noise scaling in the flow matching.
holopart/schedulers/scheduling_rectified_flow.py:310
↓ 1 callersMethodset_flash_decoder
(self)
holopart/models/autoencoders/autoencoder_kl_triposg.py:272
↓ 1 callersMethodset_flash_processor
(self, processor)
holopart/models/autoencoders/autoencoder_kl_triposg.py:151
↓ 1 callersFunctionsimplify_mesh
(mesh: trimesh.Trimesh, n_faces)
scripts/inference_holopart.py:85
↓ 1 callersMethodstep
Predict the sample from the previous timestep by reversing the SDE. This function propagates the diffusion process from the learned m
holopart/schedulers/scheduling_rectified_flow.py:234
↓ 1 callersMethodtime_shift
(self, t: torch.Tensor)
holopart/schedulers/scheduling_rectified_flow.py:163
↓ 1 callersMethodtime_shift_dynamic
(self, mu: float, sigma: float, t: torch.Tensor)
holopart/schedulers/scheduling_rectified_flow.py:160
↓ 1 callersMethodupdate_cross_attention
(self, name, cross_attention_dim, cross_attention_norm_type = None)
holopart/models/transformers/triposg_transformer.py:294
Method__call__
( self, part_surface, whole_surface, num_inference_steps: int = 50, nu
holopart/pipelines/pipeline_holopart.py:169
Method__call__
( self, attn: Attention, hidden_states: torch.Tensor, encoder_hidden_states: O
holopart/models/attention_processor.py:66
Method__call__
( self, attn: Attention, hidden_states: torch.Tensor, encoder_hidden_states: O
holopart/models/attention_processor.py:190
Method__call__
( self, attn: Attention, hidden_states: torch.Tensor, encoder_hidden_states: O
holopart/models/attention_processor.py:319
Method__init__
( self, vae: TripoSGVAEModel, transformer: TripoSGDiTModel, scheduler: HoloPar
holopart/pipelines/pipeline_holopart.py:93
Method__init__
( self, num_train_timesteps: int = 1000, shift: float = 1.0, use_dynamic_shift
holopart/schedulers/scheduling_rectified_flow.py:100
Method__init__
(self, topk=True)
holopart/models/attention_processor.py:19
Method__init__
(self)
holopart/models/attention_processor.py:184
Method__init__
(self)
holopart/models/attention_processor.py:313
Method__init__
( self, q_in_channels: int = 3, kv_in_channels: int = 3, dim: int = 512,
holopart/models/part_encoders.py:16
Method__init__
The initialization
holopart/models/embeddings.py:42
Method__init__
( self, num_attention_heads: int = 16, width: int = 2048, in_channels: int = 6
holopart/models/transformers/triposg_transformer.py:550
Method__init__
( self, parameters: torch.Tensor, deterministic: bool = False, feature_dim: in
holopart/models/autoencoders/vae.py:9
Method__init__
( self, in_channels: int = 3, out_channels: int = 1, dim: int = 512, n
holopart/models/autoencoders/autoencoder_kl_triposg.py:92
Method__init__
( self, in_channels: int = 3, # NOTE xyz instead of feature dim latent_channels: int
holopart/models/autoencoders/autoencoder_kl_triposg.py:223
Method__len__
(self)
holopart/schedulers/scheduling_rectified_flow.py:326
Method_set_gradient_checkpointing
(self, module, value: bool = False)
holopart/models/transformers/triposg_transformer.py:344
Method_set_gradient_checkpointing
(self, module, value: bool = False)
holopart/models/transformers/triposg_transformer.py:864
Methodadd_additional_cross_attention
(self, name, cross_attention_dim, cross_attention_norm_type=None)
holopart/models/transformers/triposg_transformer.py:609
Methodattention_kwargs
(self)
holopart/pipelines/pipeline_holopart.py:122
Methodattn_processors
r""" Returns: `dict` of attention processors: A dictionary containing all attention processors used in the model with
holopart/models/transformers/triposg_transformer.py:699
Methodattn_processors
r""" Returns: `dict` of attention processors: A dictionary containing all attention processors used in the model with
holopart/models/autoencoders/autoencoder_kl_triposg.py:319
Methodbegin_index
The index for the first timestep. It should be set from pipeline with `set_begin_index` method.
holopart/schedulers/scheduling_rectified_flow.py:137
Functioncompute_density_for_timestep_sampling
( weighting_scheme: str, batch_size: int, logit_mean: float = 0.0, logit_std: float = 1.0,
holopart/schedulers/scheduling_rectified_flow.py:20
Functioncompute_loss_weighting
Computes loss weighting scheme for SD3 training. Courtesy: This was contributed by Rafie Walker in https://github.com/huggingface/diffusers/
holopart/schedulers/scheduling_rectified_flow.py:47
Functiondefault_set_attn_proc_func
( name: str, hidden_size: int, cross_attention_dim: Optional[int], ori_attn_proc: object, )
holopart/models/transformers/__init__.py:6
Methoddisable_forward_chunking
(self)
holopart/models/transformers/triposg_transformer.py:903
Methoddisable_vae_slicing
r""" Disable sliced VAE decoding. If `enable_vae_slicing` was previously enabled, this method will go back to computing decoding in on
holopart/pipelines/pipeline_utils.py:18
Methoddisable_vae_tiling
r""" Disable tiled VAE decoding. If `enable_vae_tiling` was previously enabled, this method will go back to computing decoding in one
holopart/pipelines/pipeline_utils.py:33
Methoddo_classifier_free_guidance
(self)
holopart/pipelines/pipeline_holopart.py:114
Methodenable_forward_chunking
Sets the attention processor to use [feed forward chunking](https://huggingface.co/blog/reformer#2-chunked-feed-forward-layers).
holopart/models/transformers/triposg_transformer.py:869
Methodenable_vae_slicing
r""" Enable sliced VAE decoding. When this option is enabled, the VAE will split the input tensor in slices to compute decoding in sev
holopart/pipelines/pipeline_utils.py:11
Methodenable_vae_tiling
r""" Enable tiled VAE decoding. When this option is enabled, the VAE will split the input tensor into tiles to compute decoding and en
holopart/pipelines/pipeline_utils.py:25
Methodencode
Encode a batch of point features into latents.
holopart/models/autoencoders/autoencoder_kl_triposg.py:462
Functionfind_mesh_grid_coordinates_fast_gpu
(occupancy_grid, n_limits=-1)
holopart/inference_utils.py:31
Methodfn_recursive_add_processors
( name: str, module: torch.nn.Module, processors: Dict[str, AttentionProce
holopart/models/transformers/triposg_transformer.py:708
Methodfn_recursive_add_processors
( name: str, module: torch.nn.Module, processors: Dict[str, AttentionProce
holopart/models/autoencoders/autoencoder_kl_triposg.py:328
Methodfn_recursive_attn_processor
(name: str, module: torch.nn.Module, processor)
holopart/models/transformers/triposg_transformer.py:750
Methodfn_recursive_attn_processor
(name: str, module: torch.nn.Module, processor)
holopart/models/autoencoders/autoencoder_kl_triposg.py:370
Methodfn_recursive_feed_forward
( module: torch.nn.Module, chunk_size: int, dim: int )
holopart/models/transformers/triposg_transformer.py:890
Methodforward
(self, sample_1: torch.Tensor, sample_2: torch.Tensor)
holopart/models/part_encoders.py:65
Methodforward
(self, part: torch.Tensor, whole: torch.Tensor, part_local: Optional[torch.Tensor] = None, noise_level: float
holopart/models/part_encoders.py:213
Methodforward
Forward process. Args: x: tensor of shape [..., dim] Returns: embedding: an embedding of `x` of shape [...,
holopart/models/embeddings.py:76
Methodforward
(self, hidden_states: torch.Tensor, encoder_hidden_states: Optional[torch.Tensor] = None,
holopart/models/transformers/triposg_transformer.py:468
Methodforward
The [`HunyuanDiT2DModel`] forward method. Args: hidden_states (`torch.Tensor` of shape `(batch size, dim, height, width)`):
holopart/models/transformers/triposg_transformer.py:769
Methodforward
(self, sample_1: torch.Tensor, sample_2: torch.Tensor)
holopart/models/autoencoders/autoencoder_kl_triposg.py:74
Methodforward
( self, sample: torch.Tensor, queries: torch.Tensor, kv_cache: Optional[torch.
holopart/models/autoencoders/autoencoder_kl_triposg.py:195
Methodforward
(self, x: torch.Tensor)
holopart/models/autoencoders/autoencoder_kl_triposg.py:537
next →1–100 of 124, ranked by callers