MCPcopy Create free account

hub / github.com/LuLing06/I-Scene-project / functions

Functions386 in github.com/LuLing06/I-Scene-project

↓ 1 callersMethod_init_image_cond_model
Initialize the image conditioning model.
iscene/trellis/models/image_conditioner.py:66
↓ 1 callersFunction_label_mask_to_pil
(label_map: np.ndarray)
interactive_demo.py:265
↓ 1 callersFunction_lexsort_columns
(columns: List[torch.Tensor])
iscene/trellis/modules/sparse/attention/windowed_attn.py:20
↓ 1 callersFunction_lexsort_coords
(coords: torch.Tensor)
iscene/trellis/modules/sparse/conv/conv_spconv.py:8
↓ 1 callersMethod_load_release_metadata
(self)
iscene/inference/inferencer.py:67
↓ 1 callersFunction_mask_to_polygon
(mask: np.ndarray)
interactive_demo.py:200
↓ 1 callersMethod_merge_instance_glbs_to_scene
(instance_mesh_paths)
iscene/inference/inferencer.py:456
↓ 1 callersFunction_naive_sdpa
Naive implementation of scaled dot product attention.
iscene/trellis/modules/attention/full_attn.py:23
↓ 1 callersMethod_normalize_weights
Normalizes the given weights to be non-negative. If input weights are None, it creates and returns a set of weights of ones.
iscene/trellis/representations/mesh/flexicubes/flexicubes.py:120
↓ 1 callersFunction_palette
()
interactive_demo.py:239
↓ 1 callersFunction_polygon_to_mask
(polygon: list[list[int]], image_shape: tuple[int, int])
interactive_demo.py:210
↓ 1 callersMethod_prepare_instance_inputs
( scene_rgb_path: str | Path, instance_seg_path: str | Path, input_loader=load_scene_a
iscene/inference/inferencer.py:140
↓ 1 callersFunction_raw_example_mask_path
(mask_path: Any)
interactive_demo.py:297
↓ 1 callersFunction_refine_masks
( masks: torch.Tensor, *, polygon_refinement: bool, mask_threshold: float, )
interactive_demo.py:218
↓ 1 callersFunction_resolve_mask_path
(mask_path: str | None)
interactive_demo.py:156
↓ 1 callersMethod_rope
(self, qkv: SparseTensor)
iscene/trellis/modules/sparse/attention/modules.py:99
↓ 1 callersMethod_sample_sparse_structure
( pipeline, *, scene_rgb, scene_mask, instance_masks, seed: in
iscene/inference/inferencer.py:155
↓ 1 callersMethod_save_debug_outputs
( self, scene_results, out_dir: Path, *, label_ids: list[int],
iscene/inference/inferencer.py:417
↓ 1 callersFunction_save_prompt_rgb
(image_prompts: Any, request: gr.Request | None)
interactive_demo.py:146
↓ 1 callersMethod_sin_cos_embedding
Create sinusoidal position embeddings. Args: x: a 1-D Tensor of N indices Returns: an (N, D) Tensor
iscene/trellis/modules/transformer/blocks.py:20
↓ 1 callersFunction_timestamped_output_dir
(request: gr.Request | None)
interactive_demo.py:126
↓ 1 callersMethod_triangulate
Connects four neighboring dual vertices to form a quadrilateral. The quadrilaterals are then split into triangles based on the gamma
iscene/trellis/representations/mesh/flexicubes/flexicubes.py:335
↓ 1 callersMethod_updown
(self, x: sp.SparseTensor)
iscene/trellis/models/structured_latent_flow.py:47
↓ 1 callersMethod_v_to_xstart_eps
(self, x_t, t, v)
iscene/trellis/pipelines/samplers/flow_euler.py:32
↓ 1 callersFunctionbake_texture
Bake texture to a mesh from multiple observations. Args: vertices (np.array): Vertices of the mesh. Shape (V, 3). faces (np.
iscene/trellis/utils/postprocessing_utils.py:276
↓ 1 callersFunctionblock_attn_config
Return the attention configuration of the model.
iscene/trellis/models/structured_latent_vae/base.py:10
↓ 1 callersFunctionbootstrap_imports
()
run_inference.py:17
↓ 1 callersFunctionbuild_demo
()
interactive_demo.py:448
↓ 1 callersFunctionbuild_parser
()
run_inference.py:25
↓ 1 callersFunctionbuild_rotation
(r)
iscene/trellis/representations/gaussian/general_utils.py:78
↓ 1 callersFunctionbuild_scaling_rotation
(s, r)
iscene/trellis/representations/gaussian/general_utils.py:101
↓ 1 callersFunctioncalc_serialization
Calculate serialization and partitioning for a set of coordinates. Args: tensor (SparseTensor): The input tensor. window_siz
iscene/trellis/modules/sparse/attention/serialized_attn.py:36
↓ 1 callersFunctioncalc_window_partition
Calculate serialization and partitioning for a set of coordinates. Args: tensor (SparseTensor): The input tensor. window_siz
iscene/trellis/modules/sparse/attention/windowed_attn.py:34
↓ 1 callersMethodcompute_face_normals
(self, verts, faces)
iscene/trellis/representations/mesh/cube2mesh.py:25
↓ 1 callersFunctionconstruct_dense_grid
construct a dense grid based on resolution
iscene/trellis/representations/mesh/utils_cube.py:8
↓ 1 callersMethodconstruct_list_of_attributes
(self)
iscene/trellis/representations/gaussian/gaussian_model.py:113
↓ 1 callersFunctionconstruct_voxel_grid
(coords)
iscene/trellis/representations/mesh/utils_cube.py:19
↓ 1 callersMethodconvert_to_fp16
(self)
iscene/trellis/models/image_conditioner.py:23
↓ 1 callersMethodconvert_to_fp16
Convert the torso of the model to float16.
iscene/trellis/models/sparse_structure_flow.py:139
↓ 1 callersMethodconvert_to_fp16
Convert the torso of the model to float16.
iscene/trellis/models/sparse_structure_sc_flow.py:72
↓ 1 callersMethodconvert_to_fp16
Convert the torso of the model to float16.
iscene/trellis/models/sparse_structure_vae.py:168
↓ 1 callersMethodconvert_to_fp16
Convert the torso of the model to float16.
iscene/trellis/models/sparse_structure_vae.py:277
↓ 1 callersMethodconvert_to_fp16
Convert the torso of the model to float16.
iscene/trellis/models/structured_latent_flow.py:197
↓ 1 callersMethodconvert_to_fp16
Convert the torso of the model to float16.
iscene/trellis/models/structured_latent_vae/base.py:89
↓ 1 callersMethodconvert_to_fp16
Convert the torso of the model to float16.
iscene/trellis/models/structured_latent_vae/decoder_mesh.py:131
↓ 1 callersFunctioncosine_anealing
(optimizer, step, total_steps, start_lr, end_lr)
iscene/trellis/utils/postprocessing_utils.py:365
↓ 1 callersFunctioncubes_to_verts
Args: cubes [Vx8] verts index for each cube value [Vx8xM] value to be scattered Operation: reduced[cubes[i][j]][k] +=
iscene/trellis/representations/mesh/utils_cube.py:26
↓ 1 callersMethoddecode_slat
Decode the structured latent. Args: slat (sp.SparseTensor): The structured latent. formats (List[str]): The
iscene/trellis/pipelines/trellis_image_to_3d_scene_context.py:284
↓ 1 callersFunctioneval_sh
Evaluate spherical harmonics at unit directions using hardcoded SH polynomials. Works with torch/np/jnp. ... Can be 0 or more batch d
iscene/trellis/renderers/sh_utils.py:57
↓ 1 callersMethodexpand_dinov2_model
Expand the DINOv2 patch embedding to accept additional input channels.
iscene/trellis/models/image_conditioner.py:91
↓ 1 callersMethodfrom_pretrained
( cls, model_id_or_path: str | Path, *, base_model_id: str | Path | None = Non
iscene/inference/inferencer.py:52
↓ 1 callersMethodget_cond_batch
Batched version of get_cond that handles B>1 samples. Args: preprocessed_list: List of preprocessed tensors/dicts from p
iscene/trellis/pipelines/trellis_image_to_3d_scene_context.py:343
↓ 1 callersMethodget_covariance
(self, scaling_modifier = 1)
iscene/trellis/representations/gaussian/gaussian_model.py:94
↓ 1 callersMethodget_layout
(self, feats : torch.Tensor, name : str)
iscene/trellis/representations/mesh/cube2mesh.py:91
↓ 1 callersFunctionget_renderer
(sample, **kwargs)
iscene/trellis/utils/render_utils.py:42
↓ 1 callersMethodhalf
(self)
iscene/trellis/modules/sparse/basic.py:217
↓ 1 callersFunctionhalton_sequence
(dim, n)
iscene/trellis/utils/random_utils.py:16
↓ 1 callersMethodinfer_scene_instances
( self, scene_rgb_path: str | Path, instance_seg_path: str | Path, seed: int =
iscene/inference/inferencer.py:214
↓ 1 callersMethodinitialize_positional_encoding
(self, num_external_sources: int = 2, enable_gate: bool = True, enable_k_bias: bool = False, k_bias_scale: flo
iscene/trellis/modules/attention/modules.py:113
↓ 1 callersMethodinitialize_weights
(self)
iscene/trellis/models/sparse_structure_flow.py:151
↓ 1 callersMethodinitialize_weights
(self)
iscene/trellis/models/structured_latent_flow.py:213
↓ 1 callersMethodinitialize_weights
(self)
iscene/trellis/models/structured_latent_vae/decoder_gs.py:53
↓ 1 callersMethodinitialize_weights
(self)
iscene/trellis/models/structured_latent_vae/decoder_mesh.py:125
↓ 1 callersFunctionintrinsics_to_projection
OpenCV intrinsics to OpenGL perspective matrix Args: intrinsics (torch.Tensor): [3, 3] OpenCV intrinsics matrix near (float)
iscene/trellis/renderers/mesh_renderer.py:8
↓ 1 callersFunctionintrinsics_to_projection
OpenCV intrinsics to OpenGL perspective matrix Args: intrinsics (torch.Tensor): [3, 3] OpenCV intrinsics matrix near (float)
iscene/trellis/renderers/gaussian_render.py:22
↓ 1 callersFunctioninverse_sigmoid
(x)
iscene/trellis/representations/gaussian/general_utils.py:18
↓ 1 callersFunctionload_rgb_image
Load an RGB image and handle alpha / transparency consistently.
iscene/inference/segmentation_utils.py:10
↓ 1 callersFunctionmain
(argv: list[str] | None = None)
run_inference.py:74
↓ 1 callersFunctionmain
()
interactive_demo.py:599
↓ 1 callersFunctionmerge_gaussian_ply_files
(ply_paths: list[str], output_path: str)
iscene/inference/inferencer.py:487
↓ 1 callersFunctionparametrize_mesh
Parametrize a mesh to a texture space, using xatlas. Args: vertices (np.array): Vertices of the mesh. Shape (V, 3). faces (n
iscene/trellis/utils/postprocessing_utils.py:259
↓ 1 callersFunctionparse_args
()
interactive_demo.py:585
↓ 1 callersFunctionpixel_shuffle_3d
3D pixel shuffle.
iscene/trellis/modules/spatial.py:4
↓ 1 callersFunctionpostprocess_mesh
Postprocess a mesh by simplifying, removing invisible faces, and removing isolated pieces. Args: vertices (np.array): Vertices of th
iscene/trellis/utils/postprocessing_utils.py:200
↓ 1 callersMethodpreprocess_image
Preprocess the input image.
iscene/trellis/pipelines/trellis_image_to_3d_scene_context.py:115
↓ 1 callersFunctionradical_inverse
(base, n)
iscene/trellis/utils/random_utils.py:5
↓ 1 callersFunctionrender
Render the scene. Background tensor (bg_color) must be on GPU!
iscene/trellis/renderers/gaussian_render.py:50
↓ 1 callersFunctionrender_frames
(sample, extrinsics, intrinsics, options={}, colors_overwrite=None, verbose=True, **kwargs)
iscene/trellis/utils/render_utils.py:66
↓ 1 callersFunctionrender_multiview
(sample, resolution=512, nviews=30, r=2, verbose=True)
iscene/trellis/utils/render_utils.py:87
↓ 1 callersFunctionresize_prompt_image
(image_prompts: Any)
interactive_demo.py:276
↓ 1 callersMethodsample_once
Sample x_{t-1} from the model using Euler method. Args: model: The model to sample from. x_t: The [N x C x .
iscene/trellis/pipelines/samplers/flow_euler.py:50
↓ 1 callersMethodsample_slat
Sample structured latent with the given conditioning. Args: cond (dict): The conditioning information. coord
iscene/trellis/pipelines/trellis_image_to_3d_scene_context.py:306
↓ 1 callersMethodsample_sparse_structure
Sample sparse structures with the given conditioning. Args: cond (dict): The conditioning information. num_s
iscene/trellis/pipelines/trellis_image_to_3d_scene_context.py:240
↓ 1 callersMethodsave_ply
(self, path, transform=[[1, 0, 0], [0, 0, -1], [0, 1, 0]])
iscene/trellis/representations/gaussian/gaussian_model.py:125
↓ 1 callersMethodsave_scene_outputs
( self, scene_results, output_dir: str | Path, overwrite: bool = True,
iscene/inference/inferencer.py:301
↓ 1 callersFunctionsave_sparse_coords_as_ply
(coords, output_path: str, resolution: int = 64)
iscene/inference/inferencer.py:479
↓ 1 callersMethodscene_context_attn
(self, x: torch.Tensor, context: torch.Tensor, num_instances=3, indices: Optional[torch.Tensor] = None)
iscene/trellis/modules/attention/modules.py:212
↓ 1 callersMethodset_exp_cfg
(self, cfg)
iscene/trellis/pipelines/trellis_image_to_3d_scene_context.py:112
↓ 1 callersMethodset_param_requires_grad
(self, model, requires_grad: bool)
iscene/trellis/models/image_conditioner.py:86
↓ 1 callersMethodsetup_functions
(self)
iscene/trellis/representations/gaussian/gaussian_model.py:45
↓ 1 callersFunctionsparse_cube2verts
(coords, feats, training=True)
iscene/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 conta
iscene/trellis/modules/sparse/attention/serialized_attn.py:120
↓ 1 callersFunctionsparse_unbind
Unbind a sparse tensor along a dimension. Args: input (SparseTensor): Sparse tensor to unbind. dim (int): Dimension to unbin
iscene/trellis/modules/sparse/basic.py:447
↓ 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 contain
iscene/trellis/modules/sparse/attention/windowed_attn.py:78
↓ 1 callersFunctionstrip_lowerdiag
(L)
iscene/trellis/representations/gaussian/general_utils.py:64
↓ 1 callersFunctionstrip_symmetric
(sym)
iscene/trellis/representations/gaussian/general_utils.py:75
↓ 1 callersMethodtimestep_embedding
Create sinusoidal timestep embeddings. Args: t: a 1-D Tensor of N indices, one per batch element. These
iscene/trellis/models/sparse_structure_flow.py:26
↓ 1 callersMethodto_representation
Convert a batch of network outputs to 3D representations. Args: x: The [N x * x C] sparse tensor output by the network.
iscene/trellis/models/structured_latent_vae/decoder_gs.py:80
↓ 1 callersMethodto_representation
Convert a batch of network outputs to 3D representations. Args: x: The [N x * x C] sparse tensor output by the network.
iscene/trellis/models/structured_latent_vae/decoder_mesh.py:145
↓ 1 callersFunctiontv_loss
(texture)
iscene/trellis/utils/postprocessing_utils.py:368
← previousnext →101–200 of 386, ranked by callers