MCPcopy Create free account

hub / github.com/JasonLSC/GSCodec_Studio / functions

Functions1,225 in github.com/JasonLSC/GSCodec_Studio

↓ 165 callersMethodget
(self, field: str, default: str = "masked_npz_both")
gsplat/compression/post_training/codecs/__init__.py:31
↓ 58 callersMethodwrite
(self, x)
examples/helper/STG/general_utils.py:220
↓ 47 callersMethodrun
( self, splats: Mapping[str, Tensor] | ParameterDict, step: int )
gsplat/compression_simulation/runtime.py:42
↓ 45 callersMethodupdate
(self)
examples/simple_viewer_dyn.py:217
↓ 33 callersFunctionfocal2fov
(focal, pixels)
examples/helper/STG/graphics_utils.py:168
↓ 33 callersMethodstep
(self, visibility)
gsplat/optimizers/selective_adam.py:48
↓ 30 callersMethodstate_dict
(self)
gsplat/compression_simulation/mask.py:34
↓ 26 callersFunction_make_lazy_cuda_func
(name: str)
gsplat/cuda/_wrapper.py:9
↓ 24 callersMethodapply
Return the masked tensor along with optional loss/metrics.
gsplat/compression_simulation/mask.py:27
↓ 18 callersFunctionfake_quantize_ste
(input: Tensor, lower_bd: float, upper_bd: float, bitwidth: int = 8, q_type: str = "noise")
gsplat/compression_simulation/ops.py:39
↓ 18 callersMethodflush
(self)
examples/helper/STG/general_utils.py:227
↓ 16 callersMethoddecode
Decodes a bitstream file to a YUV file. Args: input_bitstream: Path to the input bitstream file. output_yuv:
gsplat/compression/video_codec.py:313
↓ 14 callersMethodbackward
(ctx, v_means2d: Tensor, v_covars2d: Tensor)
gsplat/cuda/_wrapper.py:719
↓ 13 callersMethod_get_paths
Generates standard file paths for an attribute component.
gsplat/compression/yuv_io.py:101
↓ 13 callersMethodcompress
Entry for running video anchor compression.
examples/codec_ply_sequence.py:614
↓ 13 callersFunctionread_next_bytes
Read and unpack the next bytes from a binary file. :param fid: :param num_bytes: Sum of combination of {2, 4, 8}, e.g. 2, 6, 16, 30, etc.
mpeg_gsc_utils/colmap_read_model.py:70
↓ 13 callersFunctionread_next_bytes
Read and unpack the next bytes from a binary file. :param fid: :param num_bytes: Sum of combination of {2, 4, 8}, e.g. 2, 6, 16, 30, etc.
examples/helper/STG/colmap_loader.py:72
↓ 12 callersFunctioncli
Wrapper to run a function in a distributed environment. The function `fn` should have the following signature: ```python def fn(local_ra
gsplat/distributed.py:304
↓ 12 callersFunctionrasterization
Rasterize a set of 3D Gaussians (N) to a batch of image planes (C). This function provides a handful features for 3D Gaussian rasterization, whic
gsplat/rendering.py:28
↓ 11 callersMethodinitialize_state
Initialize and return the running state for this strategy.
gsplat/strategy/mcmc.py:57
↓ 10 callersFunctionarray_to_blob
(array)
mpeg_gsc_utils/pre_colmap.py:94
↓ 10 callersMethodload_state_dict
(self, state: Mapping[str, Any])
gsplat/compression_simulation/mask.py:37
↓ 9 callersFunction_save_tensor_to_yuv
Save a tensor to a YUV file in planar format. Args: video (torch.Tensor): video in the shape of [T, H, W, 3], assumed to be uint8 an
gsplat/compression/yuv_utils.py:10
↓ 9 callersFunctionsort_splats
Sort splats with Parallel Linear Assignment Sorting from the paper `Compact 3D Scene Representation via Self-Organizing Gaussian Grids <https://ar
gsplat/compression/sort.py:7
↓ 9 callersMethodstep_post_backward
Callback function to be executed after the `loss.backward()` call.
gsplat/strategy/base.py:44
↓ 8 callersFunction_load_yuv_to_tensor
Load a raw YUV file into a PyTorch tensor. Reads planar YUV data and reconstructs it into a tensor of shape [T, H, W, 3] with dtype uint
gsplat/compression/yuv_utils.py:218
↓ 8 callersFunction_update_param_with_optimizer
Update the parameters and the state in the optimizers with defined functions. Args: param_fn: A function that takes the name of the param
gsplat/strategy/ops.py:48
↓ 8 callersMethoddecompress
Decompresses data from a compressed directory. 1. Decodes each bitstream back to a YUV file. 2. Loads data from YUV files us
gsplat/compression/yuv_codec.py:568
↓ 8 callersFunctionf
(value, bits)
examples/helper/ges_tm/pre_process_gaussian.py:7
↓ 8 callersFunctionfully_fused_projection
Projects Gaussians to 2D. This function fuse the process of computing covariances (:func:`quat_scale_to_covar_preci()`), transforming to came
gsplat/cuda/_wrapper.py:203
↓ 8 callersFunctiongetNerfppNorm
(cam_info)
examples/helper/STG/dataset_readers.py:57
↓ 8 callersFunctioninverse_log_transform
(y)
gsplat/utils.py:40
↓ 8 callersFunctionload_ply
(path: str)
examples/utils.py:317
↓ 8 callersFunctionpix2ndc
(v, S)
examples/helper/STG/helper_model.py:34
↓ 8 callersFunctionquat_scale_to_covar_preci
Converts quaternions and scales to covariance and precision matrices. Args: quats: Quaternions (No need to be normalized). [N, 4]
gsplat/cuda/_wrapper.py:76
↓ 8 callersFunctionqvec2rotmat
(qvec)
examples/helper/STG/colmap_loader.py:43
↓ 7 callersFunctionrgb_to_sh
(rgb: Tensor)
examples/utils.py:150
↓ 7 callersMethodstep_pre_backward
Callback function to be executed before the `loss.backward()` call.
gsplat/strategy/base.py:36
↓ 6 callersFunctionall_to_all_tensor_list
Split and exchange tensors between all ranks in a many-to-many fashion. Args: world_size: The total number of ranks. tensor_list:
gsplat/distributed.py:170
↓ 6 callersFunctiondecode_video_opencv
Decode video using OpenCV and handle color channels based on parameter name.
gsplat/compression/seq_hevc_compression.py:960
↓ 6 callersFunctiondecode_video_opencv
Decode video using OpenCV and handle color channels based on parameter name.
gsplat/compression/yuv_compression.py:1151
↓ 6 callersFunctiongetWorld2View2
(R, t, translate=np.array([.0, .0, .0]), scale=1.0)
examples/helper/STG/graphics_utils.py:39
↓ 6 callersMethodget_binary_mask
(self)
gsplat/compression_simulation/mask.py:41
↓ 6 callersFunctionisect_offset_encode
Encodes intersection ids to offsets. Args: isect_ids: Intersection ids. [n_isects] n_cameras: Number of cameras. tile_wid
gsplat/cuda/_wrapper.py:417
↓ 6 callersFunctionisect_tiles
Maps projected Gaussians to intersecting tiles. Args: means2d: Projected Gaussian means. [C, N, 2] if packed is False, [nnz, 2] if packed
gsplat/cuda/_wrapper.py:343
↓ 6 callersFunctionknn
(x: Tensor, K: int = 4)
examples/utils.py:143
↓ 6 callersFunctionlog_transform
(x)
gsplat/utils.py:36
↓ 6 callersFunctionremove
Inplace remove the Gaussian with the given mask. Args: params: A dictionary of parameters. optimizers: A dictionary of optimizers
gsplat/strategy/ops.py:200
↓ 6 callersFunctionreshape_view
(C: int, world_view: torch.Tensor, N_world: list)
gsplat/rendering.py:244
↓ 6 callersFunctionsave_ply
(splats: torch.nn.ParameterDict, path: str)
examples/utils.py:284
↓ 6 callersFunctionset_random_seed
(seed: int)
examples/utils.py:155
↓ 6 callersFunctiontransform_cameras
Transform cameras using an SE(3) matrix. Args: matrix: 4x4 SE(3) matrix camtoworlds: Nx4x4 array of camera-to-world matrices
examples/datasets/normalize.py:115
↓ 6 callersFunctiontransform_points
Transform points using an SE(3) matrix. Args: matrix: 4x4 SE(3) matrix points: Nx3 array of points Returns: Nx3 arra
examples/datasets/normalize.py:100
↓ 5 callersFunction_accumulate
(summary: Dict[str, Dict[str, List[float]]], key: str, metric: str, value: float)
examples/benchmarks/stg/summarize_stats.py:67
↓ 5 callersMethod_quantize_tensor
Quantizes a tensor to a specified bit depth after reshaping and normalization.
gsplat/compression/yuv_io.py:55
↓ 5 callersMethodcheck_sanity
Sanity check for the parameters and optimizers.
gsplat/strategy/base.py:15
↓ 5 callersMethodcreate
(config: MaskConfig, device: Optional[torch.device])
gsplat/compression_simulation/mask.py:238
↓ 5 callersFunctionf_inv
(value, bits)
examples/helper/ges_tm/post_process_gaussian.py:7
↓ 5 callersFunctionfetchPly
(path)
examples/helper/STG/dataset_readers.py:546
↓ 5 callersFunctionformat_size
Convert byte size to readable format (KB, MB, GB, etc.)
scripts/1f_vid/extract_metrics.py:7
↓ 5 callersFunctionfully_fused_projection_2dgs
Prepare Gaussians for rasterization This function prepares ray-splat intersection matrices, computes per splat bounding box and 2D means in i
gsplat/cuda/_wrapper.py:1260
↓ 5 callersFunctiongetProjectionMatrix
(znear, zfar, fovX, fovY)
examples/helper/STG/graphics_utils.py:52
↓ 5 callersFunctionlatex_escape
(text: str)
tools/static_bench/make_rd_table.py:117
↓ 5 callersMethodmaybe_update
Observe the current splats before running compression.
gsplat/compression_simulation/mask.py:24
↓ 5 callersMethodparam_inverse_transform
Inverse transform the splats parameters to original domain Args: splats_list (List[Dict]): splats parameters of all frame
gsplat/compression/yuv_codec.py:201
↓ 5 callersMethodparam_transform
Transform the splats parameters to new domain e.g. for SH coefficients, transform them from RGB domain to YCbCr domain for q
gsplat/compression/yuv_codec.py:102
↓ 5 callersMethodquantize
(self, tensor: Tensor, step: int)
gsplat/compression_simulation/quantizer.py:24
↓ 5 callersFunctionread_extrinsics_binary
see: src/base/reconstruction.cc void Reconstruction::ReadImagesBinary(const std::string& path) void Reconstruction::WriteImagesBi
examples/helper/STG/colmap_loader.py:168
↓ 5 callersFunctionread_extrinsics_text
Taken from https://github.com/colmap/colmap/blob/dev/scripts/python/read_write_model.py
examples/helper/STG/colmap_loader.py:232
↓ 5 callersFunctionread_intrinsics_binary
see: src/base/reconstruction.cc void Reconstruction::WriteCamerasBinary(const std::string& path) void Reconstruction::ReadCameras
examples/helper/STG/colmap_loader.py:203
↓ 5 callersFunctionread_intrinsics_text
Taken from https://github.com/colmap/colmap/blob/dev/scripts/python/read_write_model.py
examples/helper/STG/colmap_loader.py:144
↓ 5 callersFunctionregister_codec
(name: str, cls: type)
gsplat/compression/post_training/codec.py:40
↓ 5 callersFunctionspherical_harmonics
Computes spherical harmonics. Args: degrees_to_use: The degree to be used. dirs: Directions. [..., 3] coeffs: Coefficient
gsplat/cuda/_wrapper.py:47
↓ 5 callersFunctionstorePly
(path, xyzt, rgb)
examples/helper/STG/dataset_readers.py:555
↓ 5 callersFunctiontotal_variation_loss
Returns total variation on multi-dimensional tensors. Args: x (torch.Tensor): The input tensor with shape $(B, C, ...)$, where $B$ is the
examples/lib_bilagrid.py:161
↓ 5 callersFunctionviewmatrix
Construct lookat view matrix.
examples/datasets/traj.py:16
↓ 4 callersMethod__init__
(self, bound: float)
gsplat/compression_simulation/entropy_model.py:379
↓ 4 callersMethod_dequantize_tensor
Dequantizes a video tensor using metadata.
gsplat/compression/yuv_io.py:79
↓ 4 callersMethodadd_image
(self, name, camera_id, prior_q=np.full(4, np.NaN), prior_t=np.full(3, np.NaN), image_id=Non
mpeg_gsc_utils/pre_colmap.py:142
↓ 4 callersFunctionall_to_all_int32
Exchange 32-bit integers between all ranks in a many-to-many fashion. .. note:: This function is not differentiable to the input tensors.
gsplat/distributed.py:55
↓ 4 callersMethodcheck_sanity
Sanity check for the parameters and optimizers. Check if: * `params` and `optimizers` have the same keys. * Each opti
gsplat/strategy/mcmc.py:66
↓ 4 callersMethodeval
Entry for evaluation.
examples/compress_ply_sequence.py:627
↓ 4 callersFunctionfilter_splats
(splats: Dict[str, Tensor], opa_thres: float=0.005, std_factor: float=2.0, k_neighbors: int=10)
gsplat/compression/outlier_filter.py:8
↓ 4 callersFunctiongenerate_interpolated_path
Creates a smooth spline path between input keyframe camera poses. Spline is calculated with poses in format (position, lookat-point, up-point).
examples/datasets/traj.py:206
↓ 4 callersFunctionget_c2w
(camera)
examples/simple_viewer_dyn.py:50
↓ 4 callersMethodload_state_dict
(self, state: MutableMapping[str, Any])
gsplat/compression_simulation/runtime.py:54
↓ 4 callersFunctionmain
( batch_size: int = 1, channels: int = 3, reso: Literal["360p", "720p", "1080p", "4k"] = "4k",
profiling/main.py:40
↓ 4 callersMethodrasterize_splats
( self, camtoworlds: Tensor, Ks: Tensor, width: int, height: int,
examples/simple_trainer_old.py:966
↓ 4 callersMethodrasterize_splats
( self, timestamp: float, Ks: Tensor, width: int, height: int,
examples/simple_trainer_STG.py:500
↓ 4 callersMethodrasterize_splats
( self, camtoworlds: Tensor, Ks: Tensor, width: int, height: int,
examples/simple_trainer_2dgs.py:384
↓ 4 callersMethodrasterize_splats
( self, camtoworlds: Tensor, Ks: Tensor, width: int, height: int,
examples/simple_trainer.py:643
↓ 4 callersFunctionread_points3D_binary
see: src/base/reconstruction.cc void Reconstruction::ReadPoints3DBinary(const std::string& path) void Reconstruction::WritePoints
examples/helper/STG/colmap_loader.py:113
↓ 4 callersMethodstate_dict
(self)
gsplat/compression_simulation/runtime.py:51
↓ 4 callersMethodstep_post_backward
Callback function to be executed after the `loss.backward()` call. Args: lr (float): Learning rate for "means" attribute of the G
gsplat/strategy/mcmc.py:103
↓ 3 callersFunctionPILtoTorch
(pil_image, resolution)
examples/helper/STG/general_utils.py:66
↓ 3 callersMethod__init__
(self, config: CompSimConfig, device: Optional[torch.device] = None)
gsplat/compression_simulation/runtime.py:38
↓ 3 callersMethod__init__
(self, config: MaskConfig)
gsplat/compression_simulation/mask.py:21
↓ 3 callersFunction_apply_updates
(target: Any, updates: Dict[str, Any], path: str = "cfg")
examples/simple_trainer_old.py:386
↓ 3 callersFunction_get_rel_paths
Recursively get relative paths of files in a directory.
examples/datasets/colmap.py:20
↓ 3 callersFunction_make_lazy_cuda_obj
(name: str)
gsplat/cuda/_wrapper.py:37
next →1–100 of 1,225, ranked by callers