MCPcopy Create free account

hub / github.com/DSL-Lab/StreamSplat / functions

Functions474 in github.com/DSL-Lab/StreamSplat

↓ 15 callersMethodsample
(self, logits_input, means_input, log_scales_input, a=torch.as_tensor(-1.0 + eps, dtype=torch.float32), b=torc
model/mixture_model_utils.py:78
↓ 13 callersMethod__init__
( self, dim_in: int, dim_out: int, n_neurons: int, n_hidden_layers: in
model/transformer_utils.py:77
↓ 13 callersMethodload_state_dict
Load state dict, filtering out non-trainable modules if present.
model/splat_model.py:57
↓ 11 callersFunction_make_dinov2_model
( *, arch_name: str = "vit_large", img_size: int = 518, patch_size: int = 14, init_values:
encoders/dinov2/hub/backbones.py:18
↓ 9 callersMethodnorm
(self)
encoders/dinov2/hub/depth/decode_heads.py:453
↓ 8 callersMethod__init__
(self, input_transform="resize_concat", in_index=(0, 1, 2, 3), upsample=1, **kwargs)
encoders/dinov2/hub/depth/decode_heads.py:226
↓ 8 callersFunction_make_dinov2_linear_classifier
( *, arch_name: str = "vit_large", layers: int = 4, pretrained: bool = True, weights: Unio
encoders/dinov2/hub/classifiers.py:86
↓ 8 callersFunctionconstant
(value, shape=None, dtype=None, device=None, memory_format=None)
datasets/augmentv2.py:49
↓ 7 callersFunctionmatrix
(*rows, device=None)
datasets/augmentv2.py:74
↓ 6 callersFunction_make_dinov2_model_name
(arch_name: str, patch_size: int, num_register_tokens: int = 0)
encoders/dinov2/hub/utils.py:17
↓ 6 callersMethodconstrain_to_multiple_of
(self, x, min_val=0, max_val=None)
model/depth_anything/depth_anything_v2/util/transform.py:51
↓ 6 callersMethodconstrain_to_multiple_of
(self, x, min_val=0, max_val=None)
datasets/transform_utils.py:51
↓ 5 callersMethod__init__
(self, opt: Options, **kwargs)
model/model_utils.py:42
↓ 5 callersMethodadd_layer
(self, layer_dict, key, dim, init_val=0., bias=True)
model/model_utils.py:220
↓ 5 callersFunctionresize
(input, size=None, scale_factor=None, mode="nearest", align_corners=None, warning=False)
encoders/dinov2/hub/depth/ops.py:11
↓ 4 callersFunction_block_cls
(**kwargs)
encoders/dinov2/models/vision_transformer.py:376
↓ 4 callersFunction_make_dinov2_dpt_depther
( *, arch_name: str = "vit_large", pretrained: bool = True, weights: Union[Weights, str] = Wei
encoders/dinov2/hub/depthers.py:180
↓ 4 callersFunction_make_dinov2_linear_depther
( *, arch_name: str = "vit_large", layers: int = 4, pretrained: bool = True, weights: Unio
encoders/dinov2/hub/depthers.py:70
↓ 4 callersFunction_make_fusion_block
(features, use_bn, size=None)
model/depth_anything/depth_anything_v2/dpt.py:12
↓ 4 callersMethodcdf_fn
Cumulative distribution function of the Gaussian distribution.
model/mixture_model_utils.py:50
↓ 4 callersFunctioncompute_lpips
( ground_truth: Float[Tensor, "batch channel height width"], predicted: Float[Tensor, "batch channel h
utils/metrics.py:28
↓ 4 callersFunctioncompute_psnr
( ground_truth: Float[Tensor, "batch channel height width"], predicted: Float[Tensor, "batch channel h
utils/metrics.py:12
↓ 4 callersFunctioncompute_ssim
( ground_truth: Float[Tensor, "batch channel height width"], predicted: Float[Tensor, "batch channel h
utils/metrics.py:37
↓ 4 callersMethodforward
(self, x)
model/transformer_utils.py:122
↓ 4 callersMethodinfer_image
(self, raw_image, input_size=518)
model/depth_anything/depth_anything_v2/dpt.py:187
↓ 4 callersMethodprepare_tokens_with_masks
(self, x, masks=None)
model/depth_anything/depth_anything_v2/dinov2.py:212
↓ 4 callersMethodprepare_tokens_with_masks
(self, x, masks=None)
encoders/dinov2/models/vision_transformer.py:236
↓ 4 callersFunctionscale2d_inv
(sx, sy, **kwargs)
datasets/augmentv2.py:134
↓ 4 callersMethodstate_dict
(self, **kwargs)
model/encoder_model.py:43
↓ 4 callersMethodstate_dict
Remove non-trainable modules (LPIPS, tracker) from state dict before saving.
model/splat_model.py:49
↓ 4 callersMethodstep
(self, epoch=None)
utils/general_utils.py:190
↓ 3 callersFunctionPILtoTorch
(pil_image, resolution)
utils/general_utils.py:24
↓ 3 callersMethodencode_decode
Encode images with backbone and decode into a depth estimation map of the same size as input.
encoders/dinov2/hub/depth/encoder_decoder.py:51
↓ 3 callersMethodexpand_params
Expand the parameters to n_samples.
model/mixture_model_utils.py:26
↓ 3 callersMethodinference
Inference with slide/whole style. Args: img (Tensor): The input image of shape (N, 3, H, W). img_meta (dict): Image i
encoders/dinov2/hub/depth/encoder_decoder.py:153
↓ 3 callersMethodmake_activation
(self, activation)
model/transformer_utils.py:138
↓ 3 callersMethodmake_linear
(self, dim_in, dim_out, is_first, is_last, bias=True)
model/transformer_utils.py:131
↓ 3 callersFunctionrotate2d_inv
(theta, **kwargs)
datasets/augmentv2.py:137
↓ 3 callersFunctionscale2d
(sx, sy, **kwargs)
datasets/augmentv2.py:99
↓ 3 callersMethodset_grad_checkpointing
(self, flag=True)
model/transformer_utils.py:393
↓ 3 callersFunctiontranslate2d
(tx, ty, **kwargs)
datasets/augmentv2.py:84
↓ 3 callersMethodupsampling
(self, output)
model/model_utils.py:503
↓ 2 callersMethod__init__
(self, silent)
utils/general_utils.py:117
↓ 2 callersMethod__init__
( self, in_channels, features=256, use_bn=False, out_channels=[256
model/depth_anything/depth_anything_v2/dpt.py:39
↓ 2 callersFunction_get_depth_range
(pretrained: bool, weights: Weights = Weights.NYU)
encoders/dinov2/hub/depthers.py:22
↓ 2 callersFunctionaugment_batch
(batch)
datasets/augmentv2.py:432
↓ 2 callersMethodbackward
(ctx, grad_out_color, grad_radii, grad_depth, grad_alpha, grad_flow, grad_covs_com)
gaussian_renderer_dynamic/diff_gaussian_rasterization.py:138
↓ 2 callersMethodcombine
(self, pred_gs)
model/model_utils.py:613
↓ 2 callersMethodcompute_losses
(self, input_frames, target_depth, supv_masks, render_pkg)
model/splat_model.py:69
↓ 2 callersFunctioncpu_deep_copy_tuple
(input_tuple)
gaussian_renderer_dynamic/diff_gaussian_rasterization.py:30
↓ 2 callersFunctioncpu_deep_copy_tuple
(input_tuple)
submodules/diff-gaussian-rasterization-orth/diff_gaussian_rasterization_kiui_orth/__init__.py:17
↓ 2 callersMethoddepth_pred
Prediction each pixel.
encoders/dinov2/hub/depth/decode_heads.py:149
↓ 2 callersFunctiondrop_add_residual_stochastic_depth
( x: Tensor, residual_func: Callable[[Tensor], Tensor], sample_drop_ratio: float = 0.0, )
model/depth_anything/depth_anything_v2/dinov2_layers/block.py:110
↓ 2 callersFunctiondrop_add_residual_stochastic_depth
( x: Tensor, residual_func: Callable[[Tensor], Tensor], sample_drop_ratio: float = 0.0, )
encoders/dinov2/layers/block.py:148
↓ 2 callersFunctiondrop_add_residual_stochastic_depth_list
( x_list: List[Tensor], residual_func: Callable[[Tensor, Any], Tensor], sample_drop_ratio: float =
model/depth_anything/depth_anything_v2/dinov2_layers/block.py:181
↓ 2 callersFunctiondrop_add_residual_stochastic_depth_list
( x_list: List[Tensor], residual_func: Callable[[Tensor, Any], Tensor], sample_drop_ratio: float =
encoders/dinov2/layers/block.py:219
↓ 2 callersMethodextract_feat
Extract features from images.
encoders/dinov2/hub/depth/encoder_decoder.py:47
↓ 2 callersMethodforward
Placeholder of forward function.
encoders/dinov2/hub/depth/decode_heads.py:108
↓ 2 callersMethodforward_features
(self, x, masks=None, mod=None)
encoders/dinov2/models/vision_transformer.py:281
↓ 2 callersMethodforward_test
Args: imgs (List[Tensor]): the outer list indicates test-time augmentations and inner Tensor should have a shape
encoders/dinov2/hub/depth/encoder_decoder.py:218
↓ 2 callersMethodforward_train
Forward function for training. Args: img (Tensor): Input images. img_metas (list[dict]): List of image info dict wher
encoders/dinov2/hub/depth/encoder_decoder.py:87
↓ 2 callersFunctionfov2focal
(fov, pixels)
utils/graphics_utils.py:120
↓ 2 callersFunctionget_attn_bias_and_cat
this will perform the index select, cat the tensors, and provide the attn_bias from cache
model/depth_anything/depth_anything_v2/dinov2_layers/block.py:157
↓ 2 callersFunctionget_attn_bias_and_cat
this will perform the index select, cat the tensors, and provide the attn_bias from cache
encoders/dinov2/layers/block.py:195
↓ 2 callersMethodget_predicted_depth_path
(self, image_path)
datasets/provider_vos.py:90
↓ 2 callersMethodget_predicted_depth_path
(self, image_path)
datasets/provider_davis.py:90
↓ 2 callersMethodget_predicted_depth_path
(self, image_path)
datasets/provider_co3d.py:89
↓ 2 callersFunctionmake_2tuple
(x)
model/depth_anything/depth_anything_v2/dinov2_layers/patch_embed.py:17
↓ 2 callersFunctionmake_2tuple
(x)
encoders/dinov2/layers/patch_embed.py:16
↓ 2 callersMethodtransform_mask
(self, mask)
datasets/provider_vos.py:84
↓ 2 callersMethodtransform_mask
(self, mask)
datasets/provider_davis.py:84
↓ 2 callersFunctiontranslate2d_inv
(tx, ty, **kwargs)
datasets/augmentv2.py:131
↓ 2 callersMethodupsampling
(self, output)
model/model_utils.py:589
↓ 2 callersMethodwrite
(self, x)
utils/general_utils.py:120
↓ 1 callersFunctionDINOv2
(model_name)
model/depth_anything/depth_anything_v2/dinov2.py:398
↓ 1 callersMethod__init__
Init. Args: features (int): number of features
model/depth_anything/depth_anything_v2/util/blocks.py:33
↓ 1 callersMethod__init__
( self, in_features: int, hidden_features: Optional[int] = None, out_features:
model/depth_anything/depth_anything_v2/dinov2_layers/swiglu_ffn.py:14
↓ 1 callersMethod__init__
( self, dim: int, num_heads: int, mlp_ratio: float = 4.0, qkv_bias: bo
encoders/dinov2/layers/block.py:50
↓ 1 callersMethod__init__
( self, in_features: int, hidden_features: Optional[int] = None, out_features:
encoders/dinov2/layers/swiglu_ffn.py:15
↓ 1 callersMethod_build_depth_anything
(self, model_name)
model/depth_wrapper.py:21
↓ 1 callersMethod_build_dinov2
(model_name: str, modulation_dim: int = None, pretrained: bool = True)
encoders/dinov2_wrapper.py:44
↓ 1 callersFunction_build_mlp
(nlayers, in_dim, bottleneck_dim, hidden_dim=None, use_bn=False, bias=True)
encoders/dinov2/layers/dino_head.py:44
↓ 1 callersMethod_decode_head_forward_test
Run forward function and calculate loss for decode head in inference.
encoders/dinov2/hub/depth/encoder_decoder.py:75
↓ 1 callersMethod_decode_head_forward_train
Run forward function and calculate loss for decode head in training.
encoders/dinov2/hub/depth/encoder_decoder.py:67
↓ 1 callersMethod_forward_feature
Forward function for feature maps before classifying each pixel with ``self.cls_seg`` fc. Args: inputs (list[Tensor]): Lis
encoders/dinov2/hub/depth/decode_heads.py:265
↓ 1 callersMethod_freeze
(self)
model/depth_wrapper.py:30
↓ 1 callersMethod_freeze
(self)
encoders/dinov2_wrapper.py:37
↓ 1 callersMethod_freeze_predictor
(self)
model/model_utils.py:569
↓ 1 callersMethod_get_intermediate_layers_chunked
(self, x, n=1)
model/depth_anything/depth_anything_v2/dinov2.py:283
↓ 1 callersMethod_get_intermediate_layers_chunked
(self, x, n=1)
encoders/dinov2/models/vision_transformer.py:317
↓ 1 callersMethod_get_intermediate_layers_not_chunked
(self, x, n=1)
model/depth_anything/depth_anything_v2/dinov2.py:271
↓ 1 callersMethod_get_intermediate_layers_not_chunked
(self, x, n=1)
encoders/dinov2/models/vision_transformer.py:305
↓ 1 callersMethod_get_pad
(self, size)
encoders/dinov2/hub/utils.py:28
↓ 1 callersFunction_imdenormalize
(img, mean, std, to_bgr=True)
encoders/dinov2/hub/depth/decode_heads.py:18
↓ 1 callersFunction_make_dinov2_dpt_depth_head
(*, embed_dim: int, min_depth: float, max_depth: float)
encoders/dinov2/hub/depthers.py:167
↓ 1 callersFunction_make_dinov2_linear_classification_head
( *, arch_name: str = "vit_large", patch_size: int = 14, embed_dim: int = 1024, layers: in
encoders/dinov2/hub/classifiers.py:20
↓ 1 callersFunction_make_dinov2_linear_depth_head
( *, embed_dim: int, layers: int, min_depth: float, max_depth: float, **kwargs, )
encoders/dinov2/hub/depthers.py:36
↓ 1 callersFunction_make_scratch
(in_shape, out_shape, groups=1, expand=False)
model/depth_anything/depth_anything_v2/util/blocks.py:4
↓ 1 callersMethod_parse_losses
(losses)
encoders/dinov2/hub/depth/encoder_decoder.py:318
↓ 1 callersFunction_ssim
(img1, img2, window, window_size, channel, size_average=True)
utils/loss_utils.py:44
next →1–100 of 474, ranked by callers