MCPcopy Create free account

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

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

↓ 87 callersMethodto
(self, device=None, dtype=None)
baselines/core/pipelines.py:296
↓ 17 callersFunctioninstantiate_from_config
(config, **kwargs)
baselines/core/utils/misc.py:55
↓ 11 callersMethod__init__
(self, *, width: int)
baselines/core/models/denoisers/hunyuan3d_v21/hunyuandit.py:127
↓ 11 callersMethod__init__
( self, *, width: int, expand_ratio: int = 4, output_width: int = None,
baselines/core/models/autoencoders/attention_blocks.py:177
↓ 10 callersMethodsample
forward loop of sde
baselines/core/models/diffusion/transport/integrators.py:89
↓ 9 callersMethodcompute_sigma_t
Compute the noise coefficient along the path
baselines/core/models/diffusion/transport/path.py:52
↓ 8 callersFunctionexpand_t_like_x
Function to reshape time t to broadcastable dimension of x Args: t: [batch_dim,], time vector x: [batch_dim,...], data point
baselines/core/models/diffusion/transport/path.py:30
↓ 8 callersMethodexport
(self, fname)
baselines/core/utils/trainings/mesh.py:104
↓ 6 callersFunctionget_neighbor
根据指定轴进行位移并保持维度一致
baselines/core/models/autoencoders/volume_decoders.py:39
↓ 6 callersFunctionsafe_where
(neighbor)
baselines/core/models/autoencoders/volume_decoders.py:93
↓ 6 callersFunctiontar_file_iterator
Iterate over tar file, yielding filename, content pairs for the given tar stream. Args: fileobj: the tar file stream. skip_meta:
baselines/core/data/tariterators.py:172
↓ 5 callersMethod__add_object
(self, obj, parent=None)
baselines/core/utils/visualizers/pythreejs_viewer.py:73
↓ 5 callersMethod__get_shading
(self, shading)
baselines/core/utils/visualizers/pythreejs_viewer.py:54
↓ 5 callersMethodcheck_interval
( self, train_eps, sample_eps, *, diffusion_form="SBDM", sde=F
baselines/core/models/diffusion/transport/transport.py:108
↓ 5 callersMethodcompute_drift
We always output sde according to score parametrization;
baselines/core/models/diffusion/transport/path.py:60
↓ 5 callersFunctioninstantiate_from_config
(config, **kwargs)
baselines/core/pipelines.py:121
↓ 5 callersMethodmake_grid
(self, images)
baselines/core/utils/trainings/mesh_log_callback.py:213
↓ 4 callersMethod__update_view
(self)
baselines/core/utils/visualizers/pythreejs_viewer.py:105
↓ 4 callersMethodcompute_alpha_t
Compute the data coefficient along the path
baselines/core/models/diffusion/transport/path.py:48
↓ 4 callersFunctionexport_to_trimesh
(mesh_output)
baselines/core/pipelines.py:96
↓ 4 callersFunctionget_colors
(inp, colormap="viridis", normalize=True, vmin=None, vmax=None)
baselines/core/utils/visualizers/color_util.py:20
↓ 4 callersFunctionget_config_from_file
(config_file: str)
baselines/core/utils/misc.py:13
↓ 4 callersFunctionread_json
(path)
baselines/core/data/dit_dataset.py:53
↓ 4 callersMethodsave
(self, filename="")
baselines/core/utils/visualizers/pythreejs_viewer.py:541
↓ 4 callersMethodunconditional_embedding
(self, batch_size, **kwargs)
baselines/core/models/conditioner.py:108
↓ 3 callersMethod__init__
( self, version=None, config=None, use_cls_token=True, image_size=224,
baselines/core/models/conditioner.py:59
↓ 3 callersFunctionbuild_image_encoder
(config)
baselines/core/models/conditioner.py:205
↓ 3 callersMethodcompile
(self)
baselines/core/pipelines.py:249
↓ 3 callersMethoddecode
(self, latents)
baselines/core/models/autoencoders/model.py:339
↓ 3 callersMethodencode
(self, surface, sample_posterior=True, return_posterior=False)
baselines/core/models/autoencoders/model.py:324
↓ 3 callersFunctionexport_mesh
(input, output)
baselines/core/postprocessors.py:91
↓ 3 callersFunctionimport_mesh
(mesh: Union[pymeshlab.MeshSet, trimesh.Trimesh, Latent2MeshOutput, str])
baselines/core/postprocessors.py:104
↓ 3 callersMethodlatents2mesh
(self, latents: torch.FloatTensor, **kwargs)
baselines/core/models/autoencoders/model.py:211
↓ 3 callersFunctionmean_flat
Take the mean over all non-batch dimensions.
baselines/core/models/diffusion/transport/utils.py:37
↓ 3 callersFunctionnpz_loads
(data)
baselines/core/utils/io.py:23
↓ 3 callersMethodsample
Sampling x0 & t based on shape of x1 (if needed) Args: x1 - data point; [batch, *dim]
baselines/core/models/diffusion/transport/transport.py:138
↓ 3 callersFunctionsample_pointcloud
Sample points uniformly from the surface of the mesh along with their corresponding face normals. Args: mesh (trimesh.Trimesh): Inpu
baselines/core/surface_loaders.py:47
↓ 3 callersMethodset_timesteps
Sets the discrete timesteps used for the diffusion chain (to be run before inference). Args: num_inference_steps (`int`)
baselines/core/schedulers.py:181
↓ 3 callersFunctionsmart_load_model
( model_path, subfolder, use_safetensors, variant, )
baselines/core/utils/utils.py:89
↓ 3 callersMethodtrain_dataloader
(self)
baselines/core/data/dit_dataset.py:1513
↓ 3 callersMethodtransform
(self, sample)
baselines/core/data/dit_dataset.py:1128
↓ 2 callersMethod__add_line_geometry
(self, lines, shading, obj=None)
baselines/core/utils/visualizers/pythreejs_viewer.py:88
↓ 2 callersMethod__get_colors
(self, v, f, c, sh)
baselines/core/utils/visualizers/pythreejs_viewer.py:138
↓ 2 callersMethod__init__
Sample shards from the shard list with replacement. :param urls: a list of URLs as a Python list or brace notation string
baselines/core/data/dit_dataset.py:143
↓ 2 callersMethod_convert_peft_config
(self)
baselines/core/utils/trainings/peft.py:61
↓ 2 callersMethod_export
( self, latents, output_type='trimesh', box_v=1.01, mc_level=0.0,
baselines/core/pipelines.py:659
↓ 2 callersFunction_nn_distances
Compute nearest-neighbor Euclidean distances from each point in a_pts to nearest in b_pts. Returns distances (not squared).
baselines/tools/evaluation/chamfer_distance.py:84
↓ 2 callersMethod_sigma_to_t
(self, sigma)
baselines/core/schedulers.py:175
↓ 2 callersMethod_split_trainable_parameters
(self, named_trainable_parameters, decay=[], no_decay=[])
baselines/core/models/diffusion/flow_matching_sit.py:223
↓ 2 callersMethodadd_mesh
(self, v, f, c=None, uv=None, n=None, shading={}, texture_data=None, **kwargs)
baselines/core/utils/visualizers/pythreejs_viewer.py:222
↓ 2 callersFunctionarray_to_tensor
(np_array)
baselines/core/preprocessors.py:22
↓ 2 callersMethoddenormalize_image
Args: image (np.ndarray): [3, h, w] Returns: image (np.ndarray): [h, w, 3], np.uint8, [0, 255].
baselines/core/utils/trainings/mesh_log_callback.py:251
↓ 2 callersMethodenable_flashvdm_decoder
( self, enabled: bool = True, adaptive_kv_selection=True, topk_mode='mean',
baselines/core/models/autoencoders/model.py:218
↓ 2 callersMethodencode_cond
(self, image, additional_cond_inputs, do_classifier_free_guidance, dual_guidance)
baselines/core/pipelines.py:424
↓ 2 callersFunctionfind_next_points
(grid_logits, mc_level, octree_depth_now, resolutions, bbox_size, bbox_min, bbox_max, dil
baselines/core/models/autoencoders/volume_decoders.py:162
↓ 2 callersMethodforward
(self, batch)
baselines/core/models/diffusion/flow_matching_sit.py:334
↓ 2 callersMethodfrom_pretrained
( cls, model_path, device='cuda', dtype=torch.float16, use_safetensors
baselines/core/pipelines.py:197
↓ 2 callersFunctiongenerate_dense_grid_points
( bbox_min: np.ndarray, bbox_max: np.ndarray, octree_resolution: int, indexing: str = "ij", )
baselines/core/models/autoencoders/volume_decoders.py:122
↓ 2 callersFunctiongenerate_query_points
(bounds, resolutions, device, dtype)
baselines/core/models/autoencoders/volume_decoders.py:140
↓ 2 callersFunctionget_obj_from_str
(string, reload=False)
baselines/core/utils/misc.py:38
↓ 2 callersMethodindex_for_timestep
(self, timestep, schedule_timesteps=None)
baselines/core/schedulers.py:231
↓ 2 callersMethodinit_from_ckpt
(self, path, ignore_keys=())
baselines/core/models/diffusion/flow_matching_sit.py:144
↓ 2 callersMethodinit_from_ckpt
(self, path, ignore_keys=())
baselines/core/models/autoencoders/model.py:183
↓ 2 callersFunctioninstantiate_non_trainable_model
(config)
baselines/core/utils/misc.py:76
↓ 2 callersFunctionis_dist_avail_and_initialized
()
baselines/core/utils/misc.py:86
↓ 2 callersFunctionjson_loads
(data)
baselines/core/utils/io.py:28
↓ 2 callersMethodload_image
(self, image, border_ratio=0.15, to_tensor=True)
baselines/core/preprocessors.py:90
↓ 2 callersMethodlog_img
(self, pl_module: pl.LightningModule, batch: Tuple[torch.LongTensor, torch.FloatTensor], batch_idx: int,
baselines/core/utils/trainings/callback.py:144
↓ 2 callersMethodlog_sample
Args: pl_module: batch (dict): the batch sample information, and it contains: - surface (torch.Floa
baselines/core/utils/trainings/mesh_log_callback.py:147
↓ 2 callersFunctionnormalize_mesh
Normalize the mesh to fit inside a centered cube with a specified scale. The mesh is translated so that its bounding box center is at the or
baselines/core/surface_loaders.py:23
↓ 2 callersFunctionnpy_loads
(data)
baselines/core/utils/io.py:17
↓ 2 callersFunctionpick
(buf, rng)
baselines/core/data/dit_dataset.py:58
↓ 2 callersMethodpointRotationV2
(self, data, rotation_result, scale=False)
baselines/core/data/dit_dataset.py:417
↓ 2 callersMethodprepare_image
(self, image, mask=None)
baselines/core/pipelines.py:490
↓ 2 callersMethodprepare_latents
(self, batch_size, dtype, device, generator, latents=None)
baselines/core/pipelines.py:473
↓ 2 callersMethodread_tar_list
(self, split_list, data_count=False)
baselines/core/data/dit_dataset.py:1502
↓ 2 callersMethodrecenter
recenter an image to leave some empty space at the image border. Args: image (ndarray): input image, float/uint8 [H, W, 3/4]
baselines/core/preprocessors.py:36
↓ 2 callersFunctionretrieve_timesteps
Calls the scheduler's `set_timesteps` method and retrieves timesteps from the scheduler after the call. Handles custom timesteps. Any kwargs
baselines/core/pipelines.py:36
↓ 2 callersFunctionrotate_image
(image, angle)
baselines/core/data/dit_dataset.py:70
↓ 2 callersFunctionsample_points_from_mesh
Uniformly sample points on mesh surface. vertices: (n,3) array or flattened (n*3,) faces: (f,3) array of indices or flattened (f*3,)
baselines/tools/evaluation/chamfer_distance.py:37
↓ 2 callersFunctionscene_bbox
Returns the bounding box of the scene. Taken from Shap-E rendering script (https://github.com/openai/shap-e/blob/main/shap_e/rendering/blende
baselines/tools/render/render.py:872
↓ 2 callersMethodselect_topkv
(self, q_chunk, k, v, topk, stride=50)
baselines/core/models/autoencoders/attention_processors.py:74
↓ 2 callersMethodset_surface_extractor
(self, mc_algo)
baselines/core/pipelines.py:547
↓ 2 callersFunctionsharp_sample_pointcloud
Sample points and normals preferentially from sharp edges of the mesh. Sharp edges are detected based on the angle between vertex normals an
baselines/core/surface_loaders.py:95
↓ 2 callersMethodsim_img
(self, pc, images)
evaluate/ulip_score.py:77
↓ 2 callersMethodstep
Predict the sample from the previous timestep by reversing the SDE. This function propagates the diffusion process from the learned m
baselines/core/schedulers.py:245
↓ 2 callersMethodto_html
(self, imports=True, html_frame=True)
baselines/core/utils/visualizers/pythreejs_viewer.py:486
↓ 2 callersFunctionvalid_sample
Check whether a sample is valid. Args: sample: a Returns: boolean indicating whether the sample is valid.
baselines/core/data/tariterators.py:46
↓ 2 callersMethodwhetherDeleter
(self, uid)
baselines/core/data/dit_dataset.py:1300
↓ 1 callersFunctionConvertDepthMap
(input_exr, output_png)
baselines/tools/render/render.py:453
↓ 1 callersFunctionConvertNormalMap
(input_exr, output_jpg)
baselines/tools/render/render.py:441
↓ 1 callersFunctionSampleMesh
(V, F)
baselines/tools/watertight/watertight_and_sample.py:144
↓ 1 callersFunctionWatertight
(V, F, epsilon = 2.0/256, grid_res = 256)
baselines/tools/watertight/watertight_and_sample.py:179
↓ 1 callersMethod__forward_fn
TODO: generalize here by adding all private functions ending with steps to it
baselines/core/models/diffusion/transport/integrators.py:75
↓ 1 callersMethod__get_bbox
(self, v)
baselines/core/utils/visualizers/pythreejs_viewer.py:126
↓ 1 callersMethod__get_last_step
Get the last step function of the SDE solver
baselines/core/models/diffusion/transport/transport.py:291
↓ 1 callersMethod__get_point_colors
(self, v, c, sh)
baselines/core/utils/visualizers/pythreejs_viewer.py:186
↓ 1 callersMethod__get_sde_diffusion_and_drift
( self, *, diffusion_form="SBDM", diffusion_norm=1.0, )
baselines/core/models/diffusion/transport/transport.py:272
↓ 1 callersMethod__init__
(self, size=512, border_ratio=None)
baselines/core/preprocessors.py:31
↓ 1 callersMethod__init__
(self, batch_frequency: int, max_images: int, clamp: bool = True, increase_log_steps: bool =
baselines/core/utils/trainings/callback.py:89
next →1–100 of 516, ranked by callers