MCPcopy Create free account

hub / github.com/TencentARC/Pixal3D / functions

Functions865 in github.com/TencentARC/Pixal3D

↓ 106 callersMethodfloat
(self)
pixal3d/modules/sparse/basic.py:157
↓ 98 callersMethodcuda
(self)
pixal3d/pipelines/base.py:68
↓ 96 callersMethodreplace
(self, feats: torch.Tensor)
pixal3d/modules/sparse/basic.py:172
↓ 93 callersMethodreshape
(self, *shape)
pixal3d/modules/sparse/basic.py:165
↓ 65 callersMethodcpu
(self)
pixal3d/pipelines/base.py:71
↓ 65 callersMethodload
Load a checkpoint. Should be called by all processes.
pixal3d/trainers/basic.py:342
↓ 38 callersMethodsum
(self, dim: Optional[Union[int, Tuple[int,...]]] = None, keepdim: bool = False)
pixal3d/modules/sparse/basic.py:289
↓ 34 callersMethodto
(self, device: torch.device)
pixal3d/pipelines/pixal3d_image_to_3d.py:137
↓ 29 callersMethodload_state_dict
(self, state_dict)
pixal3d/utils/data_utils.py:151
↓ 29 callersMethodunbind
(self, dim: int)
pixal3d/modules/sparse/basic.py:169
↓ 29 callersMethodupdate
(self, n=1)
app.py:328
↓ 27 callersMethodfrom_pretrained
Load a pretrained model.
pixal3d/pipelines/base.py:22
↓ 27 callersFunctionmanual_cast
Cast if autocast is not enabled.
pixal3d/modules/utils.py:68
↓ 26 callersMethodto
(self, device: torch.device)
pixal3d/pipelines/trellis2_image_to_3d.py:123
↓ 25 callersMethodmean
(self, dim: Optional[Union[int, Tuple[int,...]]] = None, keepdim: bool = False)
pixal3d/modules/sparse/basic.py:286
↓ 25 callersMethodregister_spatial_cache
Register a spatial cache. The spatial cache can be any thing you want to cache. The registery and retrieval of the cache is b
pixal3d/modules/sparse/basic.py:773
↓ 25 callersMethodto
(self, device, non_blocking=False)
pixal3d/representations/mesh/base.py:22
↓ 24 callersMethodto
(self, device: torch.device)
pixal3d/pipelines/base.py:64
↓ 21 callersMethoddetach
(self)
pixal3d/modules/sparse/basic.py:161
↓ 20 callersMethodto
(self, dtype: torch.dtype, *, non_blocking: bool = False, copy: bool = False)
pixal3d/modules/sparse/basic.py:114
↓ 19 callersMethodtype
(self, dtype)
pixal3d/modules/sparse/basic.py:141
↓ 17 callersMethodget_spatial_cache
Get a spatial cache.
pixal3d/modules/sparse/basic.py:784
↓ 17 callersMethodsample
Sample from a model.
pixal3d/pipelines/samplers/base.py:11
↓ 17 callersMethodstate_dict
(self)
pixal3d/utils/data_utils.py:145
↓ 16 callersFunctionupdate_metadata
(path, opt)
data_toolkit/build_metadata.py:12
↓ 13 callersMethodcuda
(self)
pixal3d/trainers/flow_matching/mixins/image_conditioned.py:27
↓ 13 callersMethodreplace
(self, feats: torch.Tensor, coords: Optional[torch.Tensor] = None)
pixal3d/modules/sparse/basic.py:638
↓ 12 callersMethodto
(self, device: torch.device)
pixal3d/pipelines/trellis2_texturing.py:98
↓ 11 callersMethodcpu
(self)
pixal3d/trainers/flow_matching/mixins/image_conditioned.py:30
↓ 10 callersMethodsave
Save a checkpoint. Should be called only by the rank 0 process.
pixal3d/trainers/basic.py:391
↓ 9 callersMethodfull
(aabb, dim, value, dtype=torch.float32, device=None)
pixal3d/modules/sparse/basic.py:692
↓ 9 callersMethodto
(self, device)
pixal3d/trainers/flow_matching/mixins/image_conditioned_proj.py:426
↓ 8 callersMethod__elemwise__
(self, other: Union[torch.Tensor, 'VarLenTensor'], op: callable)
pixal3d/modules/sparse/basic.py:201
↓ 8 callersMethod_state_dicts_to_master_params
Convert a state_dict to master params.
pixal3d/trainers/basic.py:328
↓ 8 callersMethodcpu
(self)
pixal3d/trainers/flow_matching/mixins/image_conditioned_proj.py:442
↓ 8 callersFunctiondict_reduce
Reduce a list of dictionaries. Leaf values must be scalars.
pixal3d/utils/general_utils.py:53
↓ 8 callersFunctionrecursive_to_device
Recursively move all tensors in a data structure to a device.
pixal3d/utils/data_utils.py:9
↓ 8 callersMethodrender
Render the mesh. Args: mesh : meshmodel extrinsics (torch.Tensor): (4, 4) camera extrinsics intr
pixal3d/renderers/mesh_renderer.py:60
↓ 7 callersMethod__init__
( self, channels: int, out_channels: Optional[int] = None, downsample: bool =
pixal3d/models/sc_vaes/sparse_unet_vae.py:12
↓ 7 callersFunction_update_progress
(stage: str, step: int, total: int)
app.py:292
↓ 7 callersMethodcuda
(self)
pixal3d/trainers/flow_matching/mixins/image_conditioned_proj.py:434
↓ 7 callersFunctionload_balanced_group_indices
Split indices into groups with balanced load.
pixal3d/utils/data_utils.py:27
↓ 7 callersFunctionread_file_dist
Read the binary file distributedly. File is only read once by the rank 0 process and broadcasted to other processes. Returns: da
pixal3d/utils/dist_utils.py:20
↓ 7 callersFunctionzero_module
Zero out the parameters of a module and return it.
pixal3d/modules/utils.py:46
↓ 6 callersMethodcheck_ddp
Check if DDP is working properly. Should be called by all process.
pixal3d/trainers/basic.py:872
↓ 6 callersMethodcuda
(self, non_blocking=False)
pixal3d/representations/mesh/base.py:29
↓ 6 callersMethoddim
(self)
pixal3d/modules/sparse/basic.py:71
↓ 6 callersMethodset_resolution
(self, resolution: int)
pixal3d/models/sc_vaes/fdg_vae.py:80
↓ 6 callersMethodto
(self, device)
pixal3d/trainers/flow_matching/mixins/image_conditioned.py:24
↓ 6 callersFunctionyaw_pitch_r_fov_to_extrinsics_intrinsics
(yaws, pitchs, rs, fovs)
pixal3d/utils/render_utils.py:13
↓ 5 callersMethod_load_naf
Lazy-load pretrained NAF model.
pixal3d/trainers/flow_matching/mixins/image_conditioned_proj.py:415
↓ 5 callersMethod_render_batch
Render a batch of representations. Args: reps: The dictionary of lists of representations. extrinsics: The [
pixal3d/trainers/vae/shape_vae.py:134
↓ 5 callersMethodcuda
(self)
pixal3d/modules/image_feature_extractor.py:25
↓ 5 callersMethodfilter_metadata
(self, metadata: pd.DataFrame, dataset_name: str = None)
pixal3d/datasets/components.py:118
↓ 5 callersMethodlog
(self)
pixal3d/utils/elastic_utils.py:37
↓ 5 callersMethodrun
Run training.
pixal3d/trainers/basic.py:1168
↓ 4 callersMethod__init__
( self, channels: int, out_channels: Optional[int] = None, norm_type: Literal[
pixal3d/models/sparse_structure_vae.py:23
↓ 4 callersMethod_init_image_cond_model
Initialize the image conditioning model.
pixal3d/trainers/flow_matching/mixins/image_conditioned_proj.py:824
↓ 4 callersFunction_is_view_dir
(dirname)
data_toolkit/build_metadata.py:97
↓ 4 callersMethod_linear
(module: nn.Linear, x: Union[VarLenTensor, torch.Tensor])
pixal3d/modules/sparse/attention/modules.py:78
↓ 4 callersMethod_render_batch
Render a batch of representations. Args: reps: The dictionary of lists of representations. extrinsics: The [
pixal3d/trainers/vae/pbr_vae.py:124
↓ 4 callersMethod_texture_from_dump
(pack)
pixal3d/datasets/sparse_voxel_pbr.py:160
↓ 4 callersFunctionbuild_image_cond_model
(config: dict)
app.py:107
↓ 4 callersFunctionbuild_image_cond_model
(config: dict)
inference.py:59
↓ 4 callersFunctioncycle
(data_loader: DataLoader)
pixal3d/utils/data_utils.py:50
↓ 4 callersMethoddevice
(self)
pixal3d/pipelines/base.py:53
↓ 4 callersMethoddiffuse
Diffuse the data for a given number of diffusion steps. In other words, sample from q(x_t | x_0). Args: x_0: The
pixal3d/trainers/flow_matching/flow_matching.py:70
↓ 4 callersMethodencode_image
Encode the image (standard mode without projection).
pixal3d/trainers/flow_matching/mixins/image_conditioned_proj.py:1346
↓ 4 callersMethodget_cond
Get the conditioning data.
pixal3d/trainers/flow_matching/flow_matching.py:107
↓ 4 callersMethodget_inference_cond
Get the conditioning data for inference.
pixal3d/trainers/flow_matching/flow_matching.py:113
↓ 4 callersMethodget_instance
(self, root, instance: str)
pixal3d/datasets/components.py:122
↓ 4 callersMethodget_sampler
Get the sampler for the diffusion process.
pixal3d/trainers/flow_matching/flow_matching.py:119
↓ 4 callersMethodget_v
Compute the velocity of the diffusion process at time t.
pixal3d/trainers/flow_matching/flow_matching.py:101
↓ 4 callersFunctioninit_models
()
app.py:125
↓ 4 callersFunctionl1_loss
(network_output, gt)
pixal3d/utils/loss_utils.py:14
↓ 4 callersMethodload
Override to handle: 1. Old checkpoints that don't have image_cond_step*.pt 2. Partial image_cond checkpoints (only proj_linea
pixal3d/trainers/flow_matching/mixins/image_conditioned_proj.py:1021
↓ 4 callersFunctionnorm_layer
Return a normalization layer.
pixal3d/models/sparse_structure_vae.py:10
↓ 4 callersFunctionrender_frames
(sample, extrinsics, intrinsics, options={}, verbose=True, renderer=None, **kwargs)
pixal3d/utils/render_utils.py:70
↓ 4 callersMethodsample_t
Sample timesteps.
pixal3d/trainers/flow_matching/flow_matching.py:131
↓ 4 callersMethodsample_tex_slat
Sample structured latent with the given conditioning. Args: cond (dict): The conditioning information.
pixal3d/pipelines/trellis2_image_to_3d.py:402
↓ 4 callersFunctionscaled_dot_product_attention
Apply scaled dot product attention. Args: qkv (torch.Tensor): A [N, L, 3, H, C] tensor containing Qs, Ks, and Vs.
pixal3d/modules/attention/full_attn.py:28
↓ 4 callersMethodsnapshot
Sample images from the model. NOTE: When num_samples >= 4, this function should be called by all processes. When num_sa
pixal3d/trainers/basic.py:615
↓ 4 callersFunctiontry_extract_image_with_factor
Tries to extract an image and a factor from a texture node link.
data_toolkit/blender_script/dump_pbr.py:292
↓ 4 callersMethodvis_cond
Visualize the conditioning data.
pixal3d/trainers/flow_matching/flow_matching.py:125
↓ 3 callersMethod__init__
(self, channels: int, mlp_ratio: float = 4.0)
pixal3d/modules/transformer/blocks.py:50
↓ 3 callersMethod__init__
(self, grid_resolution: int = 16, image_resolution: int = 518)
pixal3d/trainers/flow_matching/mixins/image_conditioned_proj.py:151
↓ 3 callersMethod__init__
(self, roots: str, *, resolution: int, min_aesthetic_score: float = 5.0,
pixal3d/datasets/structured_latent_svpbr.py:252
↓ 3 callersMethod__init__
(self, roots: str, skip_list: Optional[str] = None, skip_aesthetic_score_datasets: Opt
pixal3d/datasets/components.py:25
↓ 3 callersMethod_extract_camera_info
Extract camera info from kwargs. Supports two formats: 1. 'camera_info' dict: {'camera_angle_x': ..., 'distance': ..
pixal3d/trainers/flow_matching/mixins/image_conditioned_proj.py:1362
↓ 3 callersMethod_fill_denoiser_proj_linear_from_image_cond
Fill missing per-block proj_linear weights in denoiser checkpoint from the old-style image_cond proj_linear (broadcast to all blocks)
pixal3d/trainers/flow_matching/mixins/image_conditioned_proj.py:891
↓ 3 callersFunction_write_progress_file
Atomically write progress JSON to a file (cross-process safe).
app.py:302
↓ 3 callersFunctioncalc_window_partition
Calculate serialization and partitioning for a set of coordinates. Args: tensor (SparseTensor): The input tensor. window_siz
pixal3d/modules/sparse/attention/windowed_attn.py:14
↓ 3 callersMethoddecode_latent
(self, z, batch_size=4)
pixal3d/datasets/structured_latent.py:46
↓ 3 callersFunctiondict_foreach
Recursively apply a function to all non-dictionary leaf values in a dictionary.
pixal3d/utils/general_utils.py:37
↓ 3 callersMethodencode_text
Encode the text.
pixal3d/trainers/flow_matching/mixins/text_conditioned.py:39
↓ 3 callersFunctionextract_image
(tex_node, channels)
data_toolkit/blender_script/dump_pbr.py:179
↓ 3 callersMethodfill_holes
(self, max_hole_perimeter=3e-2)
pixal3d/representations/mesh/base.py:35
↓ 3 callersMethodforward
(self, input: VarLenTensor)
pixal3d/modules/sparse/norm.py:19
↓ 3 callersMethodfrom_tensor_list
Create a VarLenTensor from a list of tensors.
pixal3d/modules/sparse/basic.py:43
↓ 3 callersFunctionget_new_camera_matrix
Compute camera-to-world 4x4 transform matrix in spherical coordinates, looking at origin with up=(0,1,0). Uses standard LookAt formula wh
data_toolkit/utils.py:453
next →1–100 of 865, ranked by callers