MCPcopy Create free account

hub / github.com/VAST-AI-Research/MIDI-3D / functions

Functions380 in github.com/VAST-AI-Research/MIDI-3D

Method__init__
( self, num_attention_heads: int = 16, width: int = 2048, in_channels: int = 6
midi/models/transformers/triposg_transformer.py:405
Method__init__
( self, parameters: torch.Tensor, deterministic: bool = False, feature_dim: in
midi/models/autoencoders/vae.py:9
Method__init__
( self, in_channels: int = 3, out_channels: int = 1, dim: int = 512, n
midi/models/autoencoders/autoencoder_kl_triposg.py:92
Method__init__
( self, in_channels: int = 3, # NOTE xyz instead of feature dim latent_channels: int
midi/models/autoencoders/autoencoder_kl_triposg.py:217
Method__len__
(self)
midi/schedulers/scheduling_rectified_flow.py:326
Method__new__
(cls)
midi/utils/misc.py:244
Function_buildq3d_gpu
Builds the filterq matrix for the given variables on GPU, using chunking to reduce memory usage.
midi/utils/smoothing.py:124
Method_init_custom_adapter
( self, # Attention processor set_self_attn_module_names: Optional[List[str]] = None,
midi/pipelines/pipeline_midi.py:482
Method_load_custom_adapter
(self, state_dict)
midi/pipelines/pipeline_midi.py:569
Method_save_custom_adapter
( self, include_keys: Optional[List[str]] = None, exclude_keys: Optional[List[str]] =
midi/pipelines/pipeline_midi.py:590
Method_set_gradient_checkpointing
(self, module, value=False)
midi/models/transformers/triposg_transformer.py:464
Method_sigma_to_t
(self, sigma)
midi/schedulers/scheduling_rectified_flow.py:154
Functionapply_texture
(scene_path: str, rgb_image: Any, seg_image: Any, seed: int)
gradio_demo.py:225
Methodattention_kwargs
(self)
midi/pipelines/pipeline_midi.py:140
Methodattn_processors
r""" Returns: `dict` of attention processors: A dictionary containing all attention processors used in the model with
midi/models/transformers/triposg_transformer.py:544
Methodattn_processors
r""" Returns: `dict` of attention processors: A dictionary containing all attention processors used in the model with
midi/models/autoencoders/autoencoder_kl_triposg.py:310
Methodbackward
(ctx, g)
midi/utils/ops.py:51
Methodbackward
(ctx, graddist1, graddist2)
midi/utils/chamfer_distance/chamfer_distance.py:44
Functionbarrier
()
midi/utils/misc.py:214
Methodbegin_index
The index for the first timestep. It should be set from pipeline with `set_begin_index` method.
midi/schedulers/scheduling_rectified_flow.py:137
Functionbinary_cross_entropy
F.binary_cross_entropy is not numerically stable in mixed-precision training.
midi/utils/ops.py:316
Methodblend_rgba
(image)
midi/utils/saving.py:198
Functionbroadcast
(tensor, src=0)
midi/utils/misc.py:221
Functionc2w_to_polar
(c2w: Float[Tensor, "4 4"])
midi/utils/ops.py:396
Functioncalc_num_train_steps
(num_data, batch_size, max_epochs, num_nodes, num_cards=8)
midi/utils/config.py:26
Functionchamfer_distance_backward
midi/utils/chamfer_distance/chamfer_distance.cpp:114
Functionchamfer_distance_backward_cuda
midi/utils/chamfer_distance/chamfer_distance.cpp:41
Functionchamfer_distance_forward
midi/utils/chamfer_distance/chamfer_distance.cpp:90
Functionchamfer_distance_forward_cuda
midi/utils/chamfer_distance/chamfer_distance.cpp:27
Methodcheck_train
(self, batch, **kwargs)
midi/systems/base.py:141
Functionchunk_batch
(func: Callable, chunk_size: int, *args, **kwargs)
midi/utils/ops.py:96
Methodcollate
(self, batch)
midi/data/multi_object.py:613
Functioncompute_density_for_timestep_sampling
( weighting_scheme: str, batch_size: int, logit_mean: float = 0.0, logit_std: float = 1.0,
midi/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/
midi/schedulers/scheduling_rectified_flow.py:47
Methodconfigure
(self)
midi/systems/system_midi.py:74
Methodconfigure_optimizers
(self)
midi/systems/base.py:117
Methodcreate_custom_forward
(module)
midi/models/transformers/triposg_transformer.py:675
Methodcustom_forward
(*inputs)
midi/models/transformers/triposg_transformer.py:676
Functiondecimate_quadric_edge_collapse
( ms, targetfacenum=None, preservenormal=True, verbose=False )
midi/utils/mesh_process.py:50
Functiondecimate_quadric_edge_collapse_with_texture
( ms, targetfacenum=None, preservenormal=True, verbose=False )
midi/utils/mesh_process.py:30
Methoddecode_progressive
(self)
midi/pipelines/pipeline_midi.py:148
Functiondefault_set_attn_proc_func
( name: str, hidden_size: int, cross_attention_dim: Optional[int], ori_attn_proc: object, )
midi/models/transformers/__init__.py:6
Functiondisable_flash3
()
midi/utils/constants.py:12
Methoddisable_forward_chunking
(self)
midi/models/transformers/triposg_transformer.py:758
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
midi/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
midi/pipelines/pipeline_utils.py:33
Methoddo_classifier_free_guidance
(self)
midi/pipelines/pipeline_midi.py:132
Methodenable_forward_chunking
Sets the attention processor to use [feed forward chunking](https://huggingface.co/blog/reformer#2-chunked-feed-forward-layers).
midi/models/transformers/triposg_transformer.py:724
Functionenable_gradient
(model, enabled: bool = True)
midi/utils/misc.py:229
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
midi/pipelines/pipeline_utils.py:25
Methodencode
Encode a batch of point features into latents.
midi/models/autoencoders/autoencoder_kl_triposg.py:453
Methodend
(self, name: str, accumulate: bool = False)
midi/utils/misc.py:259
Methodfile_handle
(self)
midi/utils/callbacks.py:130
Methodfilter
(self, record)
launch.py:35
Functionfinish_with_cleanup
(func: Callable)
midi/utils/misc.py:201
Methodfn_recursive_add_processors
( name: str, module: torch.nn.Module, processors: Dict[str, AttentionProce
midi/models/transformers/triposg_transformer.py:553
Methodfn_recursive_add_processors
( name: str, module: torch.nn.Module, processors: Dict[str, AttentionProce
midi/models/autoencoders/autoencoder_kl_triposg.py:319
Methodfn_recursive_attn_processor
(name: str, module: torch.nn.Module, processor)
midi/models/transformers/triposg_transformer.py:595
Methodfn_recursive_attn_processor
(name: str, module: torch.nn.Module, processor)
midi/models/autoencoders/autoencoder_kl_triposg.py:361
Methodfn_recursive_feed_forward
( module: torch.nn.Module, chunk_size: int, dim: int )
midi/models/transformers/triposg_transformer.py:745
Methodforward
(ctx, x)
midi/utils/ops.py:45
Methodforward
(ctx, xyz1, xyz2)
midi/utils/chamfer_distance/chamfer_distance.py:19
Methodforward
Forward process. Args: x: tensor of shape [..., dim] Returns: embedding: an embedding of `x` of shape [...,
midi/models/embeddings.py:76
Methodforward
( self, hidden_states: torch.Tensor, encoder_hidden_states: Optional[torch.Tensor] = N
midi/models/transformers/triposg_transformer.py:283
Methodforward
The [`HunyuanDiT2DModel`] forward method. Args: hidden_states (`torch.Tensor` of shape `(batch size, dim, height, width)`):
midi/models/transformers/triposg_transformer.py:614
Methodforward
(self, sample_1: torch.Tensor, sample_2: torch.Tensor)
midi/models/autoencoders/autoencoder_kl_triposg.py:74
Methodforward
( self, sample: torch.Tensor, queries: torch.Tensor, kv_cache: Optional[torch.
midi/models/autoencoders/autoencoder_kl_triposg.py:189
Methodforward
(self, x: torch.Tensor)
midi/models/autoencoders/autoencoder_kl_triposg.py:528
Functionfourier_position_encoding
(x, n_freq: int, dim: int)
midi/utils/ops.py:439
Methodfuse_qkv_projections
Enables fused QKV projections. For self-attention modules, all projection matrices (i.e., query, key, value) are fused. For cross-att
midi/pipelines/pipeline_utils.py:40
Methodfuse_qkv_projections
Enables fused QKV projections. For self-attention modules, all projection matrices (i.e., query, key, value) are fused. For cross-att
midi/models/transformers/triposg_transformer.py:501
Methodfuse_qkv_projections
Enables fused QKV projections. For self-attention modules, all projection matrices (i.e., query, key, value) are fused. For cross-att
midi/models/autoencoders/autoencoder_kl_triposg.py:267
Methodget_accumulation
(self, name: str, average: bool = False)
midi/utils/misc.py:270
Functionget_activation
(name)
midi/utils/ops.py:59
Functionget_config_from_file
( config_file: str, cli_args: list = [], **kwargs )
midi/utils/misc.py:40
Functionget_intrinsic_from_fov
(fov, H, W, bs=-1)
midi/utils/ops.py:302
Methodget_metrics
(self, *args, **kwargs)
midi/utils/callbacks.py:116
Functionget_mvp_matrix
( c2w: Float[Tensor, "*B 4 4"], proj_mtx: Float[Tensor, "*B 4 4"] )
midi/utils/ops.py:281
Functionget_obj_from_config
(config)
midi/utils/misc.py:78
Functionget_plucker_rays
( rays_o: Float[Tensor, "*N 3"], rays_d: Float[Tensor, "*N 3"] )
midi/utils/ops.py:388
Functionget_projection_matrix
( fovy: Union[float, Float[Tensor, "B"]], aspect_wh: float, near: float, far: float )
midi/utils/ops.py:256
Functionget_ray_directions
Get ray directions for all pixels in camera coordinate. Reference: https://www.scratchapixel.com/lessons/3d-basic-rendering/ r
midi/utils/ops.py:163
Functionget_rays
( directions: Float[Tensor, "... 3"], c2w: Float[Tensor, "... 4 4"], keepdim=False, noise_scal
midi/utils/ops.py:207
Methodguidance_scale
(self)
midi/pipelines/pipeline_midi.py:128
Methodinclude_fn
(k)
midi/pipelines/pipeline_midi.py:595
Functioninstantiate_from_config
(config, **kwargs)
midi/utils/misc.py:85
Methodinterrupt
(self)
midi/pipelines/pipeline_midi.py:144
Methodkl
(self, other: "DiagonalGaussianDistribution" = None)
midi/models/autoencoders/vae.py:38
Functionlaplacian_smooth
(ms, stepsmoothnum=3, verbose=False)
midi/utils/mesh_process.py:136
Methodmode
(self)
midi/models/autoencoders/vae.py:68
Methodnll
( self, sample: torch.Tensor, dims: Tuple[int, ...] = [1, 2, 3] )
midi/models/autoencoders/vae.py:57
Methodnon_module
(self, name: str)
midi/utils/base.py:122
Methodnormalize_
(tensor)
midi/systems/system_midi.py:239
Methodnum_timesteps
(self)
midi/pipelines/pipeline_midi.py:136
Methodon_before_optimizer_step
# some gradient-related debugging goes here, example: from lightning.pytorch.utilities import grad_norm norms = grad_norm(sel
midi/systems/base.py:252
Methodon_check_train
(self, batch)
midi/systems/system_midi.py:178
Methodon_fit_start
(self, trainer, pl_module)
midi/utils/callbacks.py:90
Methodon_fit_start
(self, trainer, pl_module)
midi/utils/callbacks.py:111
Methodon_fit_start
(self)
midi/systems/system_midi.py:131
Methodon_fit_start
(self)
midi/systems/base.py:130
← previousnext →201–300 of 380, ranked by callers