MCPcopy Create free account

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

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

↓ 1 callersFunctionload_surface_sharpegde
(mesh, num_points=4096, num_sharp_points=4096, sharpedge_flag=True)
baselines/core/surface_loaders.py:144
↓ 1 callersMethodlog_local
(self, save_dir: str, split: str, images: Dict, global_step: int, current_epoch: int, batch_
baselines/core/utils/trainings/callback.py:125
↓ 1 callersMethodlog_local
(self, outputs: List[List['Latent2MeshOutput']], images: Union[np.ndarray,
baselines/core/utils/trainings/mesh_log_callback.py:79
↓ 1 callersFunctionmain
(arg)
baselines/tools/render/render.py:947
↓ 1 callersFunctionmain
()
baselines/scripts_prepare/step1_prepare_imgdict.py:47
↓ 1 callersFunctionmain
主函数 - 数据并行推理
baselines/scripts_infer/infer.py:96
↓ 1 callersFunctionmerge_cfg
(cfg, arg_cfg)
baselines/main_release.py:90
↓ 1 callersFunctionmesh_normalize
Normalize mesh vertices to sphere
baselines/core/postprocessors.py:160
↓ 1 callersMethodmode
(self)
baselines/core/models/autoencoders/model.py:114
↓ 1 callersMethodmoe_infer
(self, x, flat_expert_indices, flat_expert_weights)
baselines/core/models/denoisers/hunyuan3d_v21/moe_layers.py:157
↓ 1 callersFunctionnormalize_point_cloud_dimension
将点云数据按维度独立归一化到[-1, 1]范围。 参数: points (np.ndarray): 输入点云,形状为(n, 3)。 返回: np.ndarray: 归一化后的点云。 tuple: 每
baselines/tools/evaluation/chamfer_distance.py:12
↓ 1 callersFunctionnormalize_scene
Normalizes the scene by scaling and translating it to fit in a unit cube centered at the origin. Mostly taken from the Point-E / Shap-E rende
baselines/tools/render/render.py:896
↓ 1 callersFunctionnormalize_to_unit_box
Normalize the vertices V to fit inside a unit bounding box [0,1]^3. V: (n,3) numpy array of vertex positions. Returns: normalized V
baselines/tools/watertight/watertight_and_sample.py:165
↓ 1 callersMethodnormalizemesh
normalize mesh to fit in unit sphere scene_mesh: trimesh mesh
evaluate/run_metric.py:38
↓ 1 callersFunctionorthogonal_camera_sequence
()
baselines/tools/render/render.py:103
↓ 1 callersFunctionpadding
(image, mask, center=True, padding_ratio_range=[1.15, 1.15])
baselines/core/data/dit_dataset.py:93
↓ 1 callersFunctionparse_args
解析命令行参数
baselines/scripts_infer/infer.py:194
↓ 1 callersMethodplan
(self, t, x0, x1)
baselines/core/models/diffusion/transport/path.py:159
↓ 1 callersMethodprepare_extra_step_kwargs
(self, generator, eta)
baselines/core/pipelines.py:456
↓ 1 callersMethodprior_logp
Standard multivariate normal prior Assume z is batched
baselines/core/models/diffusion/transport/transport.py:98
↓ 1 callersFunctionpymeshlab2trimesh
(mesh: pymeshlab.MeshSet)
baselines/core/postprocessors.py:62
↓ 1 callersFunctionpytorch_worker_info
Return node and worker info for PyTorch and some distributed environments.
baselines/core/data/utils.py:93
↓ 1 callersFunctionradical_inverse
(base, n)
baselines/tools/render/render.py:56
↓ 1 callersMethodrandom_rotation_matrix
(self)
baselines/core/data/dit_dataset.py:558
↓ 1 callersFunctionrandom_sample_pointcloud
(mesh, num = 30000)
baselines/tools/watertight/watertight_and_sample.py:27
↓ 1 callersFunctionread_msgpack
(path)
baselines/core/data/dit_dataset.py:65
↓ 1 callersMethodrecursive_convert
(self, obj)
baselines/core/utils/trainings/peft.py:29
↓ 1 callersFunctionreduce_face
(mesh: pymeshlab.MeshSet, max_facenum: int = 200000)
baselines/core/postprocessors.py:37
↓ 1 callersFunctionremove_floater
(mesh: pymeshlab.MeshSet)
baselines/core/postprocessors.py:54
↓ 1 callersMethodreset
(self)
baselines/core/utils/visualizers/pythreejs_viewer.py:410
↓ 1 callersMethodreset_parameters
(self)
baselines/core/models/denoisers/hunyuan3d_v21/moe_layers.py:59
↓ 1 callersMethodrestore
Restore the parameters stored with the `store` method. Useful to validate the model with EMA parameters without affecting the
baselines/core/utils/ema.py:64
↓ 1 callersMethodrun
Abstract method to extract surface mesh from grid logits. This method should be implemented by subclasses. Raises:
baselines/core/models/autoencoders/surface_extractors.py:62
↓ 1 callersMethodsample
Sample from the diagonal Gaussian distribution. Returns: torch.Tensor: A sample tensor with the same shape as the mean.
baselines/core/models/autoencoders/model.py:69
↓ 1 callersMethodsample_ode
returns a sampling function with given ODE settings Args: - sampling_method: type of sampler used in solving the ODE; default to be Do
baselines/core/models/diffusion/transport/transport.py:385
↓ 1 callersMethodsample_points_and_latents
(self, pc: torch.FloatTensor, feats: Optional[torch.FloatTensor] = None)
baselines/core/models/autoencoders/attention_blocks.py:586
↓ 1 callersFunctionsample_sdf
(mesh, random_surface, sharp_surface)
baselines/tools/watertight/watertight_and_sample.py:67
↓ 1 callersFunctionsave_images
images: [B, 3, H, W]
baselines/debug_scripts/debug_dataloader.py:31
↓ 1 callersFunctionsave_obj
(pointnp_px3, facenp_fx3, fname)
baselines/core/utils/trainings/mesh.py:26
↓ 1 callersFunctionsave_points
points: [B, N, 7]
baselines/debug_scripts/debug_dataloader.py:17
↓ 1 callersFunctionsave_vae_mesh
(batch, batch_idx, mesh_outs, root='debug_files/dataloader')
baselines/debug_scripts/debug_dataloader.py:72
↓ 1 callersFunctionsavemeshtes2
(pointnp_px3, tcoords_px2, facenp_fx3, facetex_fx3, tex_map, fname)
baselines/core/utils/trainings/mesh.py:41
↓ 1 callersMethodschedule
(self, n, **kwargs)
baselines/core/utils/trainings/lr_scheduler.py:37
↓ 1 callersMethodset_cross_attention_processor
(self, processor=CrossAttentionProcessor)
baselines/core/models/autoencoders/attention_blocks.py:488
↓ 1 callersFunctionsetup_callbacks
(config: DictConfig)
baselines/main_release.py:55
↓ 1 callersFunctionsetup_distributed
初始化分布式环境(仅用于数据并行)
baselines/scripts_infer/infer.py:59
↓ 1 callersFunctionsetup_logging
设置日志
baselines/scripts_infer/infer.py:45
↓ 1 callersMethodsim_img
(self, pc, images)
evaluate/uni3d_score.py:83
↓ 1 callersFunctionsphere_hammersley_sequence
(n, num_samples, offset=(0, 0))
baselines/tools/render/render.py:73
↓ 1 callersFunctionsplit_mesh_normal
()
baselines/tools/render/render.py:804
↓ 1 callersMethodstore
Save the current parameters for restoring later. Args: parameters: Iterable of `torch.nn.Parameter`; the parameters to be
baselines/core/utils/ema.py:55
↓ 1 callersFunctionswitch_to_color_render
(output_nodes)
baselines/tools/render/render.py:379
↓ 1 callersFunctionswitch_to_mr_render
主函数:设置场景并处理所有材质
baselines/tools/render/render.py:205
↓ 1 callersFunctiontar_file_expander
Expand tar files. Args: data: iterator over opened tar file streams. handler: exception handler. select_files: select fil
baselines/core/data/tariterators.py:230
↓ 1 callersMethodtime_shift
(self, mu: float, sigma: float, t: torch.Tensor)
baselines/core/schedulers.py:178
↓ 1 callersMethodtraining_losses
Loss for training the score model Args: - model: backbone model; could be score, noise, or velocity - x1: datapoint -
baselines/core/models/diffusion/transport/transport.py:158
↓ 1 callersFunctiontrellis_cond_camera_sequence
(num_cond_views)
baselines/tools/render/render.py:82
↓ 1 callersFunctiontriangulate_meshes
Triangulates all meshes in the scene. Returns: None
baselines/tools/render/render.py:854
↓ 1 callersFunctiontrimesh2pymeshlab
(mesh: trimesh.Trimesh)
baselines/core/postprocessors.py:76
↓ 1 callersFunctionunhide_all_objects
Unhides all objects in the scene. Returns: None
baselines/tools/render/render.py:833
↓ 1 callersFunctionurl_opener
Open URLs and yield a stream of url+stream pairs. Args: data: iterator over dict(url=...) handler: exception handler. kw:
baselines/core/data/tariterators.py:76
↓ 1 callersFunctionvae_process
(batch, vae_model)
baselines/debug_scripts/debug_dataloader.py:46
MethodGetToonImage
(self, color_image, normal_image)
baselines/core/data/dit_dataset.py:574
Method__Euler_Maruyama_step
(self, x, mean_x, t, model, **model_kwargs)
baselines/core/models/diffusion/transport/integrators.py:54
Method__Heun_step
(self, x, _, t, model, **model_kwargs)
baselines/core/models/diffusion/transport/integrators.py:64
Method__call__
(self, image, border_ratio=0.15, to_tensor=True, **kwargs)
baselines/core/preprocessors.py:109
Method__call__
(self, image_dict, border_ratio=0.15, to_tensor=True, **kwargs)
baselines/core/preprocessors.py:135
Method__call__
( self, image: Union[str, List[str], Image.Image] = None, num_inference_steps: int = 5
baselines/core/pipelines.py:559
Method__call__
( self, image: Union[str, List[str], Image.Image, dict, List[dict], torch.Tensor] = None,
baselines/core/pipelines.py:694
Method__call__
(self, image: Image.Image)
baselines/core/rembg.py:23
Method__call__
(self, mesh_or_mesh_path, num_points=None)
baselines/core/surface_loaders.py:193
Method__call__
(self, mesh_or_mesh_path, num_uniform_points=None, num_sharp_points=None)
baselines/core/surface_loaders.py:217
Method__call__
( self, mesh: Union[pymeshlab.MeshSet, trimesh.Trimesh, Latent2MeshOutput, str], max_f
baselines/core/postprocessors.py:120
Method__call__
( self, mesh: Union[pymeshlab.MeshSet, trimesh.Trimesh, Latent2MeshOutput, str], )
baselines/core/postprocessors.py:133
Method__call__
( self, mesh: Union[pymeshlab.MeshSet, trimesh.Trimesh, Latent2MeshOutput, str], )
baselines/core/postprocessors.py:145
Method__call__
( self, mesh: Union[trimesh.Trimesh], )
baselines/core/postprocessors.py:187
Method__call__
Decorator: wrap the function to time its execution.
baselines/core/utils/utils.py:77
Method__call__
(self, n, **kwargs)
baselines/core/utils/trainings/lr_scheduler.py:50
Method__call__
Process a batch of grid logits to extract surface meshes. Args: grid_logits (torch.Tensor): Batch of grid logits with sh
baselines/core/models/autoencoders/surface_extractors.py:73
Method__call__
( self, latents: torch.FloatTensor, geo_decoder: Callable, bounds: Union[Tuple
baselines/core/models/autoencoders/volume_decoders.py:190
Method__call__
( self, latents: torch.FloatTensor, geo_decoder: Callable, bounds: Union[Tuple
baselines/core/models/autoencoders/volume_decoders.py:234
Method__call__
( self, latents: torch.FloatTensor, geo_decoder: CrossAttentionDecoder, bounds
baselines/core/models/autoencoders/volume_decoders.py:342
Method__call__
(self, attn, q, k, v)
baselines/core/models/autoencoders/attention_processors.py:30
Method__call__
(self, attn, q, k, v)
baselines/core/models/autoencoders/attention_processors.py:39
Method__call__
(self, pc, texts)
evaluate/ulip_score.py:57
Method__call__
(self, pc, texts)
evaluate/uni3d_score.py:56
Method__enter__
Context manager entry: start timing.
baselines/core/utils/utils.py:60
Method__exit__
Context manager exit: stop timing and log results.
baselines/core/utils/utils.py:68
Method__getitem__
(self, key)
baselines/core/models/diffusion/transport/utils.py:34
Method__getitem__
(self, index)
baselines/scripts_infer/infer.py:39
Method__init__
(self, config: DictConfig, basedir: Path, logdir: str = "log", ckptdir: str = "ckpt")
baselines/main_release.py:43
Method__init__
(self, size=512, border_ratio=None)
baselines/core/preprocessors.py:126
Method__init__
( self, num_train_timesteps: int = 1000, shift: float = 1.0, use_dynamic_shift
baselines/core/schedulers.py:79
Method__init__
( self, num_train_timesteps: int = 1000, pcm_timesteps: int = 50, )
baselines/core/schedulers.py:335
Method__init__
( self, vae, model, scheduler, conditioner, image_processor,
baselines/core/pipelines.py:230
Method__init__
(self)
baselines/core/rembg.py:20
Method__init__
(self, num_points=8192)
baselines/core/surface_loaders.py:190
Method__init__
(self, num_uniform_points=8192, num_sharp_points=8192, **kwargs)
baselines/core/surface_loaders.py:212
Method__init__
(self, executable: str = None)
baselines/core/postprocessors.py:180
Method__init__
(self, model, decay=0.9999, use_num_updates=True)
baselines/core/utils/ema.py:6
← previousnext →201–300 of 516, ranked by callers