MCPcopy Create free account

hub / github.com/Tencent-Hunyuan/HY3D-Bench / functions

Functions516 in github.com/Tencent-Hunyuan/HY3D-Bench

Methodforward
(self, timesteps)
baselines/core/models/denoisers/hunyuan3d_v21/hunyuandit.py:76
Methodforward
(self, t, condition)
baselines/core/models/denoisers/hunyuan3d_v21/hunyuandit.py:113
Methodforward
(self, x)
baselines/core/models/denoisers/hunyuan3d_v21/hunyuandit.py:134
Methodforward
Parameters ---------- x: torch.Tensor (batch, seqlen1, hidden_dim) (where hidden_dim = num heads * head dim)
baselines/core/models/denoisers/hunyuan3d_v21/hunyuandit.py:177
Methodforward
(self, x)
baselines/core/models/denoisers/hunyuan3d_v21/hunyuandit.py:254
Methodforward
(self, x)
baselines/core/models/denoisers/hunyuan3d_v21/hunyuandit.py:287
Methodforward
(self, x, c=None, text_states=None, skip_value=None)
baselines/core/models/denoisers/hunyuan3d_v21/hunyuandit.py:392
Methodforward
(self, x, c=None, text_states=None, skip_value=None)
baselines/core/models/denoisers/hunyuan3d_v21/hunyuandit.py:440
Methodforward
(self, x, attention_mask=None)
baselines/core/models/denoisers/hunyuan3d_v21/hunyuandit.py:480
Methodforward
(self, x)
baselines/core/models/denoisers/hunyuan3d_v21/hunyuandit.py:523
Methodforward
(self, x, t, contexts, **kwargs)
baselines/core/models/denoisers/hunyuan3d_v21/hunyuandit.py:701
Methodforward
(ctx, x, loss)
baselines/core/models/denoisers/hunyuan3d_v21/moe_layers.py:30
Methodforward
(self, hidden_states)
baselines/core/models/denoisers/hunyuan3d_v21/moe_layers.py:63
Methodforward
(self, hidden_states)
baselines/core/models/denoisers/hunyuan3d_v21/moe_layers.py:134
Methodforward
Forward process. Args: x: tensor of shape [..., dim] Returns: embedding: an embedding of `x` of shape [...,
baselines/core/models/autoencoders/attention_blocks.py:123
Methodforward
Drop paths (Stochastic Depth) per sample (when applied in main path of residual blocks). This is the same as the DropConnect impl I created f
baselines/core/models/autoencoders/attention_blocks.py:153
Methodforward
(self, x)
baselines/core/models/autoencoders/attention_blocks.py:191
Methodforward
(self, q, kv)
baselines/core/models/autoencoders/attention_blocks.py:213
Methodforward
(self, x, data)
baselines/core/models/autoencoders/attention_blocks.py:260
Methodforward
(self, x: torch.Tensor, data: torch.Tensor)
baselines/core/models/autoencoders/attention_blocks.py:306
Methodforward
(self, qkv)
baselines/core/models/autoencoders/attention_blocks.py:328
Methodforward
(self, x)
baselines/core/models/autoencoders/attention_blocks.py:369
Methodforward
(self, x: torch.Tensor)
baselines/core/models/autoencoders/attention_blocks.py:402
Methodforward
(self, x: torch.Tensor)
baselines/core/models/autoencoders/attention_blocks.py:440
Methodforward
(self, queries=None, query_embeddings=None, latents=None)
baselines/core/models/autoencoders/attention_blocks.py:494
Methodforward
Args: pc (torch.FloatTensor): [B, N, 3] feats (torch.FloatTensor or None): [B, N, C] Returns:
baselines/core/models/autoencoders/attention_blocks.py:713
Methodforward
(self, latents)
baselines/core/models/autoencoders/model.py:319
Functionfps
( src: torch.Tensor, batch: Optional[Tensor] = None, ratio: Optional[Union[Tensor, float]] = None,
baselines/core/models/autoencoders/attention_blocks.py:507
Methodfrom_pretrained
( cls, model_path, device='cuda', dtype=torch.float16, use_safetensors
baselines/core/models/denoisers/hunyuan3d_v21/hunyuandit.py:574
Methodget_noise_from_velocity
Wrapper function: transfrom velocity prediction model to denoiser Args: velocity: [batch_dim, ...] shaped tensor; velocity model o
baselines/core/models/diffusion/transport/path.py:111
Functionget_obj_from_config
(config)
baselines/core/utils/misc.py:48
Functionget_rank
()
baselines/core/utils/misc.py:94
Methodget_velocity_from_score
Wrapper function: transfrom score prediction model to velocity Args: score: [batch_dim, ...] shaped tensor; score model output
baselines/core/models/diffusion/transport/path.py:127
Functiongetdata_list_zero
(meta_info, split_list, filter_list_path)
baselines/core/data/dit_dataset.py:1318
Functionidentity
Return the argument as is.
baselines/core/data/utils.py:32
Methodinitialize_weight
(self)
baselines/core/models/denoisers/hunyuan3d_v21/moe_layers.py:131
Methodinvoke
(self, *args, **kw)
baselines/core/data/utils.py:28
Methodjupyter_mode
(self)
baselines/core/utils/visualizers/pythreejs_viewer.py:45
Methodkl
Compute the Kullback-Leibler (KL) divergence between this distribution and another. If `other` is None, compute KL divergence to a s
baselines/core/models/autoencoders/model.py:79
Functionload_json
(filepath)
baselines/core/utils/io.py:33
Functionlog_state
(state)
baselines/core/models/diffusion/transport/utils.py:43
Functionlookup_sym
Look up a symbol in a list of modules.
baselines/core/data/utils.py:44
Functionmake_seed
(*args)
baselines/core/data/utils.py:20
Methodmaybe_free_model_hooks
r""" Function that offloads all components, removes all model hooks that were added when using `enable_model_cpu_offload` and then app
baselines/core/pipelines.py:404
Functionmkdir
(path)
baselines/core/utils/io.py:11
Functionmodulate
(x, shift, scale)
baselines/core/models/denoisers/hunyuan3d_v21/hunyuandit.py:39
Methodnll
(self, sample, dims=(1, 2, 3))
baselines/core/models/autoencoders/model.py:106
Functionnode_zero_experiment
Returns the real experiment on rank 0 and otherwise the DummyExperiment.
baselines/core/utils/trainings/callback.py:37
Functionnode_zero_only
(fn: Callable)
baselines/core/utils/trainings/callback.py:27
Methodnoise_ode
(x, t, model, **model_kwargs)
baselines/core/models/diffusion/transport/transport.py:212
Methodoffline
(self)
baselines/core/utils/visualizers/pythreejs_viewer.py:48
Methodon_fit_start
(self, trainer: pl.trainer.Trainer, pl_module: pl.LightningModule)
baselines/main_release.py:49
Methodon_fit_start
(self, trainer: pl.trainer.Trainer, pl_module: pl.LightningModule)
baselines/core/utils/trainings/callback.py:75
Methodon_load_checkpoint
The pt_model is trained separately, so we already have access to its checkpoint and load it separately with `self.set_pt_model`.
baselines/core/models/diffusion/flow_matching_sit.py:207
Methodon_train_batch_end
(self, trainer: pl.trainer.Trainer, pl_module: pl.LightningModule, outputs: Generic
baselines/core/utils/trainings/callback.py:183
Methodon_train_batch_end
(self, trainer, pl_module, outputs, batch, batch_idx)
baselines/core/utils/trainings/callback.py:218
Methodon_train_batch_end
(self, trainer, pl_module, outputs, batch, batch_idx)
baselines/core/utils/trainings/callback.py:238
Methodon_train_batch_end
(self, trainer, pl_module, outputs, batch, batch_idx)
baselines/core/utils/trainings/peft.py:71
Methodon_train_batch_end
(self, trainer: pl.trainer.Trainer, pl_module: pl.LightningModule, outputs: Generic
baselines/core/utils/trainings/mesh_log_callback.py:233
Methodon_train_batch_end
( self, trainer: pl.trainer.Trainer, pl_module: pl.LightningModule, outputs: G
baselines/core/utils/trainings/mesh_log_callback.py:297
Methodon_train_batch_end
(self, *args, **kwargs)
baselines/core/models/diffusion/flow_matching_sit.py:327
Methodon_train_batch_start
(self, batch, batch_idx)
baselines/core/models/diffusion/flow_matching_sit.py:311
Methodon_train_epoch_end
(self, trainer, pl_module, outputs)
baselines/core/utils/trainings/callback.py:201
Methodon_train_epoch_end
(self, trainer, pl_module)
baselines/core/utils/trainings/peft.py:65
Methodon_train_epoch_start
(self, trainer, pl_module)
baselines/core/utils/trainings/callback.py:195
Methodon_train_epoch_start
(self)
baselines/core/models/diffusion/flow_matching_sit.py:331
Methodon_validation_batch_end
(self, trainer: pl.trainer.Trainer, pl_module: pl.LightningModule, outputs: Ge
baselines/core/utils/trainings/callback.py:187
Methodon_validation_batch_end
(self, trainer: pl.trainer.Trainer, pl_module: pl.LightningModule, outputs: Ge
baselines/core/utils/trainings/mesh_log_callback.py:243
Functionoverride_material
()
baselines/tools/render/render.py:822
Methodprepare_data
(self)
baselines/core/data/dit_dataset.py:1495
Functionprocess_point_chunk
process a single point cloud chunk, return the result and error info
baselines/scripts_prepare/step1_prepare_imgdict.py:11
Functionpytorch_worker_seed
Compute a distinct, deterministic RNG seed for each worker and node.
baselines/core/data/utils.py:129
Methodremove_object
(self, obj_id)
baselines/core/utils/visualizers/pythreejs_viewer.py:402
Functionrepeatedly
Repeatedly yield samples from an iterator.
baselines/core/data/utils.py:67
Functionrepeatedly0
Repeatedly returns batches from a DataLoader.
baselines/core/data/utils.py:54
Methodreset_parameters
Resets parameters based on their initialization used in __init__.
baselines/core/models/denoisers/hunyuan3d_v21/hunyuandit.py:247
Methodrun
Extract surface mesh using the Marching Cubes algorithm. Args: grid_logit (torch.Tensor): 3D grid logits tensor represen
baselines/core/models/autoencoders/surface_extractors.py:102
Methodrun
Extract surface mesh using Differentiable Marching Cubes (DMC) algorithm. Args: grid_logit (torch.Tensor): 3D grid logit
baselines/core/models/autoencoders/surface_extractors.py:128
Functionsafe_eval
Evaluate the given expression more safely.
baselines/core/data/utils.py:37
Methodsample
(self, batch, output_type='trimesh', **kwargs)
baselines/core/models/diffusion/flow_matching_sit.py:404
Methodsample
(self, x, model, **model_kwargs)
baselines/core/models/diffusion/transport/integrators.py:123
Methodsample_ode_intermediate
returns a sampling function with given ODE settings and time step t Args: - sampling_method: type of sampler used in solving the ODE;
baselines/core/models/diffusion/transport/transport.py:430
Methodsample_ode_likelihood
returns a sampling function for calculating likelihood with given ODE settings Args: - sampling_method: type of sampler used in solvin
baselines/core/models/diffusion/transport/transport.py:477
Methodsample_sde
returns a sampling function with given SDE settings Args: - sampling_method: type of sampler used in solving the SDE; default to be Eu
baselines/core/models/diffusion/transport/transport.py:324
Methodscale_noise
Forward process in flow-matching Args: sample (`torch.FloatTensor`): The input sample. times
baselines/core/schedulers.py:127
Methodschedule
(self, n, **kwargs)
baselines/core/utils/trainings/lr_scheduler.py:20
Methodscore_ode
(x, t, model, **model_kwargs)
baselines/core/models/diffusion/transport/transport.py:207
Functionsdf_func
(sdf_value, sdf_res)
baselines/core/data/dit_dataset.py:117
Methodselect_topkv
(self, q_chunk, k, v, topk)
baselines/core/models/autoencoders/attention_processors.py:86
Methodset_begin_index
Sets the begin index for the scheduler. This function should be run from pipeline before the inference. Args: begin_inde
baselines/core/schedulers.py:117
Methodset_begin_index
Sets the begin index for the scheduler. This function should be run from pipeline before the inference. Args: begin_inde
baselines/core/schedulers.py:369
Methodset_timesteps
Sets the discrete timesteps used for the diffusion chain (to be run before inference). Args: num_inference_steps (`int`)
baselines/core/schedulers.py:382
Methodsetup
(self, stage=None)
baselines/core/data/dit_dataset.py:1499
Functionshardlist
Given a list of URLs, yields that list, possibly shuffled.
baselines/core/data/tariterators.py:64
Methodstep
( self, model_output: torch.FloatTensor, timestep: Union[float, torch.FloatTensor],
baselines/core/schedulers.py:436
Methodstep_index
The index counter for current timestep. It will increase 1 after each scheduler step.
baselines/core/schedulers.py:103
Methodstep_index
The index counter for current timestep. It will increase 1 after each scheduler step.
baselines/core/schedulers.py:355
Functiontarfile_samples
Given a stream of tar files, yield samples. Args: src: stream of tar files handler: exception handler select_files: funct
baselines/core/data/tariterators.py:395
Functionto_html_frame
(content)
baselines/core/utils/visualizers/html_util.py:23
Functionto_image_embed_tag
(image: np.ndarray)
baselines/core/utils/visualizers/html_util.py:50
← previousnext →401–500 of 516, ranked by callers