MCPcopy Create free account

hub / github.com/Stable-X/ComfyUI-Hi3DGen / functions

Functions333 in github.com/Stable-X/ComfyUI-Hi3DGen

↓ 1 callersMethod_setup_environment
Set up environment variables and backends lazily. This is the main difference: we call our new lazy set_*_backend funcs.
IF_TrellisCheckpointLoader.py:80
↓ 1 callersMethod_sin_cos_embedding
Create sinusoidal position embeddings. Args: x: a 1-D Tensor of N indices Returns: an (N, D)
trellis/modules/transformer/blocks.py:20
↓ 1 callersMethod_triangulate
Connects four neighboring dual vertices to form a quadrilateral. The quadrilaterals are then split into triangles based on the gam
trellis/representations/mesh/flexicube.py:315
↓ 1 callersFunction_try_import_spconv
()
trellis/backend_config.py:57
↓ 1 callersFunction_try_import_torchsparse
()
trellis/backend_config.py:64
↓ 1 callersMethod_updown
(self, x: sp.SparseTensor)
trellis/models/structured_latent_flow.py:47
↓ 1 callersMethod_v_to_xstart_eps
(self, x_t, t, v)
trellis/pipelines/samplers/flow_euler.py:32
↓ 1 callersFunctionblock_attn_config
Return the attention configuration of the model.
trellis/models/structured_latent_vae/base.py:10
↓ 1 callersFunctioncalc_serialization
Calculate serialization and partitioning for a set of coordinates. Args: tensor (SparseTensor): The input tensor. windo
trellis/modules/sparse/attention/serialized_attn.py:54
↓ 1 callersFunctioncalc_window_partition
Calculate serialization and partitioning for a set of coordinates. Args: tensor (SparseTensor): The input tensor. windo
trellis/modules/sparse/attention/windowed_attn.py:42
↓ 1 callersMethodcheck_inputs
( self, image: PipelineImageInput, num_inference_steps: int, ensemble_size: in
stablex/pipeline_yoso.py:185
↓ 1 callersMethodcleanup_outputs
(self, outputs)
IF_Trellis.py:261
↓ 1 callersMethodcomput_face_normals
(self, verts, faces)
trellis/representations/mesh/cube2mesh.py:27
↓ 1 callersFunctionconstruct_dense_grid
construct a dense grid based on resolution
trellis/representations/mesh/utils_cube.py:8
↓ 1 callersFunctionconstruct_voxel_grid
(coords)
trellis/representations/mesh/utils_cube.py:19
↓ 1 callersFunctionconvert_module_to_f16
Convert primitive modules to float16.
trellis/modules/utils.py:17
↓ 1 callersFunctionconvert_module_to_f32
Convert primitive modules to float32, undoing convert_module_to_f16().
trellis/modules/utils.py:26
↓ 1 callersMethodconvert_to_fp16
Convert the torso of the model to float16.
trellis/models/sparse_structure_flow.py:138
↓ 1 callersMethodconvert_to_fp16
Convert the torso of the model to float16.
trellis/models/sparse_structure_vae.py:168
↓ 1 callersMethodconvert_to_fp16
Convert the torso of the model to float16.
trellis/models/sparse_structure_vae.py:277
↓ 1 callersMethodconvert_to_fp16
Convert the torso of the model to float16.
trellis/models/structured_latent_flow.py:192
↓ 1 callersMethodconvert_to_fp16
Convert the torso of the model to float16.
trellis/models/structured_latent_vae/base.py:89
↓ 1 callersMethodconvert_to_fp16
Convert the torso of the model to float16.
trellis/models/structured_latent_vae/decoder_mesh.py:131
↓ 1 callersFunctioncubes_to_verts
Args: cubes [Vx8] verts index for each cube value [Vx8xM] value to be scattered Operation: reduced[cubes[i][j]][
trellis/representations/mesh/utils_cube.py:26
↓ 1 callersMethodcuda
(self)
trellis/pipelines/base.py:73
↓ 1 callersMethoddecode_prediction
(self, pred_latent: torch.Tensor)
stablex/pipeline_yoso.py:558
↓ 1 callersMethodencode_image
Encode the image. Args: image (Union[torch.Tensor, list[Image.Image]]): The image to encode Returns:
trellis/pipelines/trellis_image_to_3d.py:160
↓ 1 callersMethodgenerate_outputs
(self, outputs, project_name,)
IF_Trellis.py:130
↓ 1 callersMethodget_layout
(self, feats : torch.Tensor, name : str)
trellis/representations/mesh/cube2mesh.py:92
↓ 1 callersMethodget_pipeline_params
(self, seed, ss_sampling_steps, ss_guidance_strength, slat_sampling_steps, slat_g
IF_Trellis.py:173
↓ 1 callersFunctionget_subpath_after_dir
(full_path: str, target_dir: str)
IF_Trellis.py:22
↓ 1 callersFunctionhalton_sequence
(dim, n)
trellis/utils/random_utils.py:16
↓ 1 callersFunctionhammersley_sequence
(dim, n, num_samples)
trellis/utils/random_utils.py:19
↓ 1 callersMethodinference_context
Context manager for inference that handles device placement and cleanup.
trellis/pipelines/trellis_image_to_3d.py:521
↓ 1 callersMethodinitialize_weights
(self)
trellis/models/sparse_structure_flow.py:150
↓ 1 callersMethodinitialize_weights
(self)
trellis/models/structured_latent_flow.py:208
↓ 1 callersMethodinitialize_weights
(self)
trellis/models/structured_latent_vae/decoder_mesh.py:125
↓ 1 callersMethodinitialize_weights
(self)
trellis/models/structured_latent_vae/encoder.py:48
↓ 1 callersMethodload_dinov2
Load DINOv2 model with device, precision, and attention backend management
trellis_model_manager.py:173
↓ 1 callersMethodload_models
Load all required models with current configuration
trellis_model_manager.py:148
↓ 1 callersFunctionnotes_on_image
(img, notes=None)
trellis/utils/general_utils.py:141
↓ 1 callersFunctionpatchify
Patchify a tensor. Args: x (torch.Tensor): (N, C, *spatial) tensor patch_size (int): Patch size
trellis/modules/spatial.py:16
↓ 1 callersFunctionpixel_shuffle_3d
3D pixel shuffle.
trellis/modules/spatial.py:4
↓ 1 callersMethodprepare_latents
( self, image: torch.Tensor, latents: Optional[torch.Tensor], generator: Optio
stablex/pipeline_yoso.py:529
↓ 1 callersFunctionradical_inverse
(base, n)
trellis/utils/random_utils.py:5
↓ 1 callersMethodrun
Run the pipeline. Args: image (Image.Image): The image prompt. num_samples (int): The number of samples
trellis/pipelines/trellis_image_to_3d.py:378
↓ 1 callersMethodrun_multi_image
Run the pipeline with multiple images as condition Args: images (List[Image.Image]): The multi-view images of the as
trellis/pipelines/trellis_image_to_3d.py:486
↓ 1 callersMethodsample_once
Sample x_{t-1} from the model using Euler method. Args: model: The model to sample from. x_t: T
trellis/pipelines/samplers/flow_euler.py:48
↓ 1 callersFunctionset_attention_backend
Alias for set_attn for backwards compatibility
trellis/backend_config.py:220
↓ 1 callersFunctionset_attn
Set attention backend with validation
trellis/backend_config.py:178
↓ 1 callersFunctionset_backend
Set sparse backend with validation
trellis/backend_config.py:124
↓ 1 callersFunctionset_sparse_backend
Alias for set_backend for backwards compatibility Parameters: backend: The sparse backend to use algo: The algorithm to u
trellis/backend_config.py:153
↓ 1 callersFunctionset_spconv_algo
Set spconv algorithm with validation.
trellis/backend_config.py:18
↓ 1 callersFunctionsparse_cube2verts
(coords, feats, training=True)
trellis/representations/mesh/utils_cube.py:40
↓ 1 callersFunctionsparse_serialized_scaled_dot_product_self_attention
Apply serialized scaled dot product self attention to a sparse tensor. Args: qkv (SparseTensor): [N, *, 3, H, C] sparse tensor c
trellis/modules/sparse/attention/serialized_attn.py:138
↓ 1 callersFunctionsparse_unbind
Unbind a sparse tensor along a dimension. Args: input (SparseTensor): Sparse tensor to unbind. dim (int): Dimension
trellis/modules/sparse/basic.py:454
↓ 1 callersFunctionsparse_windowed_scaled_dot_product_self_attention
Apply windowed scaled dot product self attention to a sparse tensor. Args: qkv (SparseTensor): [N, *, 3, H, C] sparse tensor con
trellis/modules/sparse/attention/windowed_attn.py:85
↓ 1 callersMethodtimestep_embedding
Create sinusoidal timestep embeddings. Args: t: a 1-D Tensor of N indices, one per batch element. T
trellis/models/sparse_structure_flow.py:25
↓ 1 callersMethodto_representation
Convert a batch of network outputs to 3D representations. Args: x: The [N x * x C] sparse tensor output by the netwo
trellis/models/structured_latent_vae/decoder_mesh.py:145
↓ 1 callersFunctionunpatchify
Unpatchify a tensor. Args: x (torch.Tensor): (N, C, *spatial) tensor patch_size (int): Patch size
trellis/modules/spatial.py:34
MethodINPUT_TYPES
(s)
StableXWrapper.py:29
MethodINPUT_TYPES
(s)
StableXWrapper.py:95
MethodINPUT_TYPES
(s)
StableXWrapper.py:140
MethodINPUT_TYPES
(s)
IF_Trellis.py:39
MethodINPUT_TYPES
Define input types with device-specific options.
IF_TrellisCheckpointLoader.py:35
Method__add__
(self, other: Union[torch.Tensor, 'SparseTensor', float])
trellis/modules/sparse/basic.py:327
Method__call__
Generates a mesh based on the specified sparse voxel structures. Args: cube_attrs [Nx21] : Sparse Tensor attrs about c
trellis/representations/mesh/cube2mesh.py:97
Method__call__
(self, voxelgrid_vertices, scalar_field, cube_idx, resolution, qef_reg_scale=1e-3, weight_sc
trellis/representations/mesh/flexicube.py:49
Method__call__
Function invoked when calling the pipeline. Args: image (`PIL.Image.Image`, `np.ndarray`, `torch.Tensor`, `List[PIL.Imag
stablex/pipeline_yoso.py:330
Function__from_env
Read current backend configuration
trellis/modules/attention/__init__.py:16
Function__from_env
Read current backend configuration
trellis/modules/sparse/attention/__init__.py:20
Function__getattr__
(name)
trellis_model_manager.py:25
Function__getattr__
(name)
trellis/modules/sparse/__init__.py:44
Method__getitem__
(self, idx)
trellis/modules/sparse/basic.py:351
Method__init__
Initialize the model manager with a specific model directory. Args: model_dir (str): Path to model directory
trellis_model_manager.py:36
Method__init__
(self, vertices=None, faces=None, uvs=None, face_uvs=None, albedo=None)
IF_Trellis.py:65
Method__init__
(self)
IF_TrellisCheckpointLoader.py:24
Method__init__
(self, hidden_size: int, in_channels: int = 3)
trellis/modules/attention/modules.py:19
Method__init__
( self, channels: int, num_heads: int, ctx_channels: Optional[int]=None,
trellis/modules/attention/modules.py:64
Method__init__
(self, in_features, out_features, bias=True)
trellis/modules/sparse/linear.py:11
Method__init__
(self, factor: Union[int, Tuple[int, ...], List[int]])
trellis/modules/sparse/spatial.py:18
Method__init__
(self)
trellis/modules/sparse/spatial.py:89
Method__init__
(self, normalized_shape, eps=1e-5, elementwise_affine=True)
trellis/modules/sparse/norm.py:32
Method__init__
(self, feats: torch.Tensor, coords: torch.Tensor, shape: Optional[torch.Size] = None, layout: Optional[List[sl
trellis/modules/sparse/basic.py:40
Method__init__
(self, activation: nn.Module)
trellis/modules/sparse/nonlinearity.py:29
Method__init__
( self, channels: int, num_heads: int, ctx_channels: Optional[int] = None,
trellis/modules/sparse/attention/modules.py:29
Method__init__
(self, in_channels, out_channels, kernel_size, stride=1, dilation=1, bias=True, indice_key=None)
trellis/modules/sparse/conv/conv_torchsparse.py:28
Method__init__
(self, in_channels, out_channels, kernel_size, stride=1, dilation=1, bias=True, indice_key=None)
trellis/modules/sparse/conv/conv_spconv.py:58
Method__init__
( self, channels: int, num_heads: int, mlp_ratio: float = 4.0, at
trellis/modules/sparse/transformer/blocks.py:28
Method__init__
( self, channels: int, ctx_channels: int, num_heads: int, mlp_rat
trellis/modules/sparse/transformer/blocks.py:85
Method__init__
( self, channels: int, ctx_channels: int, num_heads: int, mlp_rat
trellis/modules/sparse/transformer/modulated.py:85
Method__init__
(self, channels: int, in_channels: int = 3)
trellis/modules/transformer/blocks.py:12
Method__init__
( self, channels: int, num_heads: int, mlp_ratio: float = 4.0, at
trellis/modules/transformer/blocks.py:66
Method__init__
( self, channels: int, ctx_channels: int, num_heads: int, mlp_rat
trellis/modules/transformer/blocks.py:119
Method__init__
( self, channels: int, ctx_channels: int, num_heads: int, mlp_rat
trellis/modules/transformer/modulated.py:80
Method__init__
(self, backend='cuda')
trellis/utils/_rasterization.py:6
Method__init__
( self, models: dict[str, nn.Module] = None, )
trellis/pipelines/base.py:11
Method__init__
( self, models: dict[str, nn.Module] = None, sparse_structure_sampler: samplers.Sam
trellis/pipelines/trellis_image_to_3d.py:37
Method__init__
( self, sigma_min: float, )
trellis/pipelines/samplers/flow_euler.py:18
Method__init__
( self, resolution: int, in_channels: int, model_channels: int, c
trellis/models/sparse_structure_flow.py:56
← previousnext →101–200 of 333, ranked by callers