MCPcopy Create free account

hub / github.com/Tsinghua-MARS-Lab/SLAM-Former / functions

Functions601 in github.com/Tsinghua-MARS-Lab/SLAM-Former

Function_read_npy_disp
(filename)
src/croco/stereoflow/datasets_stereo.py:853
Function_read_numpy_flow
(filename)
src/croco/stereoflow/datasets_flow.py:641
Function_read_pfm_disp
(filename)
src/croco/stereoflow/datasets_stereo.py:845
Function_read_pfm_flow
(filename)
src/croco/stereoflow/datasets_flow.py:645
Method_set_decoder
No decoder
src/croco/models/croco_downstream.py:53
Method_set_mask_generator
No mask generator
src/croco/models/croco_downstream.py:44
Method_set_mask_generator
No mask generator
src/croco/models/croco_downstream.py:88
Method_set_mask_token
No mask token
src/croco/models/croco_downstream.py:48
Method_set_mask_token
No mask token
src/croco/models/croco_downstream.py:92
Method_set_mask_token
(self, dec_embed_dim)
src/croco/models/croco.py:153
Method_set_prediction_head
No 'prediction head' for downstream tasks.
src/croco/models/croco_downstream.py:57
Method_set_prediction_head
No prediction head for downstream tasks, define your own head
src/croco/models/croco_downstream.py:97
Methodadd_batch
(self, predictions, gt)
src/croco/stereoflow/criterion.py:189
Functionadjust_learning_rate
Decay the learning rate with half-cycle cosine after warmup
src/croco/utils/misc.py:606
Functionall_reduce_mean
Use accelerator to all-reduce and compute mean.
src/croco/utils/misc.py:470
Functionas_torch_dtype
(dtype: TypeSpec)
src/slamformer/models/dinov2/utils/dtype.py:31
Methodattn_residual_func
(x: Tensor)
src/slamformer/models/layers/block.py:88
Methodattn_residual_func
(x: Tensor, attn_bias=None)
src/slamformer/models/layers/block.py:218
Methodattn_residual_func
(x, kvcache=None)
src/slamformer/models/layers/block.py:312
Methodattn_residual_func
(x: Tensor)
src/slamformer/models/layers/block.py:434
Methodattn_residual_func
(x: Tensor)
src/slamformer/models/dinov2/layers/block.py:89
Methodattn_residual_func
(x: Tensor, attn_bias=None)
src/slamformer/models/dinov2/layers/block.py:219
Methodavg
(self)
src/croco/utils/misc.py:66
Functionbatched_trace
(mat_bNN)
slam/rerun_helper/generic_utils.py:99
Functionbuild_model_from_cfg
(cfg, only_teacher=False)
src/slamformer/models/dinov2/models/__init__.py:42
Functioncache_model_outputs
Helper function for model output during inference.
slam/rerun_helper/generic_utils.py:233
FunctioncolorTest
flow_utils.colorTest(): display an example of image showing the color encoding scheme
src/croco/stereoflow/datasets_flow.py:784
Functioncombine_dims
Views x with the dimensions from dim_begin to dim_end folded.
slam/rerun_helper/generic_utils.py:124
Functioncopy_code_state
Copies the code directory into the path specified using rsync. It will use a .gitignore file to exclude files in rsync. We preserve modification
slam/rerun_helper/generic_utils.py:15
Methodcross_attn_residual_func
(x: Tensor, y: Tensor)
src/slamformer/models/layers/block.py:437
Functiondepth23d
(depth, intrinsic)
slam/utils.py:117
Functiondepth_edge
Compute the edge mask of a depth map. The edge is defined as the pixels whose neighbors have a large difference in depth. Args:
src/slamformer/utils/geometry.py:347
Functiondepthmap_to_absolute_camera_coordinates
Args: - depthmap (HxW array): - camera_intrinsics: a 3x3 matrix - camera_pose: a 4x3 or 4x4 cam2world matrix Returns:
src/slamformer/utils/geometry.py:55
Functiondinov2_vitb14
DINOv2 ViT-B/14 model (optionally) pretrained on the LVD-142M dataset.
src/slamformer/models/dinov2/hub/backbones.py:71
Functiondinov2_vitb14_reg
DINOv2 ViT-B/14 model with registers (optionally) pretrained on the LVD-142M dataset.
src/slamformer/models/dinov2/hub/backbones.py:113
Functiondinov2_vitg14
DINOv2 ViT-g/14 model (optionally) pretrained on the LVD-142M dataset.
src/slamformer/models/dinov2/hub/backbones.py:85
Functiondinov2_vitg14_reg
DINOv2 ViT-g/14 model with registers (optionally) pretrained on the LVD-142M dataset.
src/slamformer/models/dinov2/hub/backbones.py:143
Functiondinov2_vitl14
DINOv2 ViT-L/14 model (optionally) pretrained on the LVD-142M dataset.
src/slamformer/models/dinov2/hub/backbones.py:78
Functiondinov2_vits14
DINOv2 ViT-S/14 model (optionally) pretrained on the LVD-142M dataset.
src/slamformer/models/dinov2/hub/backbones.py:64
Functiondinov2_vits14_reg
DINOv2 ViT-S/14 model with registers (optionally) pretrained on the LVD-142M dataset.
src/slamformer/models/dinov2/hub/backbones.py:98
Functiondownsample_images
Downsamples a list of image names by keeping every `downsample_factor`-th image. Args: image_names (list of str): List of image
slam/utils.py:42
Methodextra_repr
(self)
src/croco/models/blocks.py:64
Methodextract
(self, hidden, pos=None, shape_=None, cam_only=False)
src/slamformer/models/slamformer.py:404
Functionextract_number
(path)
slam/utils.py:34
Methodf
(*args, **kwargs)
src/slamformer/models/dinov2/models/vision_transformer.py:131
Methodffn_residual_func
(x: Tensor)
src/slamformer/models/layers/block.py:91
Methodffn_residual_func
(x: Tensor, attn_bias=None)
src/slamformer/models/layers/block.py:221
Methodffn_residual_func
(x: Tensor)
src/slamformer/models/layers/block.py:347
Methodffn_residual_func
(x: Tensor)
src/slamformer/models/layers/block.py:440
Methodffn_residual_func
(x: Tensor)
src/slamformer/models/dinov2/layers/block.py:92
Methodffn_residual_func
(x: Tensor, attn_bias=None)
src/slamformer/models/dinov2/layers/block.py:222
Functionfilename
transform a python obj or cmd into a proper filename. - \1 gets replaced by slash '/' - \2 gets replaced by comma ','
src/croco/utils/misc.py:497
Methodfinalize_submission
(self, outdir)
src/croco/stereoflow/datasets_flow.py:383
Methodfinalize_submission
(self, outdir)
src/croco/stereoflow/datasets_flow.py:574
Methodfinalize_submission
(self, outdir)
src/croco/stereoflow/datasets_flow.py:630
Methodfinalize_submission
(self, outdir)
src/croco/stereoflow/datasets_stereo.py:509
Methodfinalize_submission
(self, outdir)
src/croco/stereoflow/datasets_stereo.py:580
Methodfinalize_submission
(self, outdir)
src/croco/stereoflow/datasets_stereo.py:706
Methodfinalize_submission
(self, outdir)
src/croco/stereoflow/datasets_stereo.py:758
Methodfinalize_submission
(self, outdir)
src/croco/stereoflow/datasets_stereo.py:815
Functionfix_random_seeds
Fix random seeds.
src/slamformer/models/dinov2/utils/utils.py:36
Methodflops
(self)
src/slamformer/models/dinov2/layers/patch_embed.py:83
Methodforward
(self, x_or_x_list)
src/slamformer/models/layers/block.py:250
Methodforward
(self, x: Tensor, xpos=None, N=None, branch=1, global_=False, kvcache=None, use_cache=False, idx=None)
src/slamformer/models/layers/block.py:311
Methodforward
(self, x: Tensor, y: Tensor, xpos=None, ypos=None)
src/slamformer/models/layers/block.py:433
Methodforward
(self, hidden, xpos=None)
src/slamformer/models/layers/transformer_head.py:48
Methodforward
(self, decout, img_shape)
src/slamformer/models/layers/transformer_head.py:70
Methodforward
(self, x)
src/slamformer/models/layers/conv_head.py:55
Methodforward
(self, hidden_states: torch.Tensor, image: torch.Tensor = None, patch_h: int = None, patch_w: int = None)
src/slamformer/models/layers/conv_head.py:114
Methodforward
(self, x: Tensor, attn_bias=None)
src/slamformer/models/layers/attention.py:75
Methodforward
(self, x: Tensor, attn_bias=None)
src/slamformer/models/layers/attention.py:97
Methodforward
Args: query: Tensor of shape (B, N, C), input query key: Tensor of shape (B, M, C), input key value: Tens
src/slamformer/models/layers/attention.py:153
Methodforward
Args: query: Tensor of shape (B, N, C), input query key: Tensor of shape (B, M, C), input key value: Tens
src/slamformer/models/layers/attention.py:197
Methodforward
(self, x: Tensor, attn_bias=None, xpos=None)
src/slamformer/models/layers/attention.py:272
Methodforward
(self, x: Tensor, attn_bias=None, xpos=None)
src/slamformer/models/layers/attention.py:303
Methodforward
(self, x: Tensor, attn_bias=None, xpos=None, attn_mask=None, use_cache=False, kvcache=None, S=1, idx=None)
src/slamformer/models/layers/attention.py:361
Methodforward
input: * tokens: batch_size x nheads x ntokens x dim * positions: batch_size x ntokens x 2 (y and x posit
src/slamformer/models/layers/pos_embed.py:144
Methodforward
(self, res)
src/slamformer/models/layers/camera_head.py:25
Methodforward
(self, feat, patch_h, patch_w)
src/slamformer/models/layers/camera_head.py:48
Methodforward
(self, x)
src/slamformer/models/dinov2/hub/utils.py:36
Methodforward
(self, x)
src/slamformer/models/dinov2/layers/drop_path.py:33
Methodforward
(self, x_or_x_list)
src/slamformer/models/dinov2/layers/block.py:251
Methodforward
(self, x)
src/slamformer/models/dinov2/layers/dino_head.py:36
Methodforward
(self, x: Tensor)
src/slamformer/models/dinov2/layers/layer_scale.py:26
Methodforward
(self, x: Tensor, attn_bias=None)
src/slamformer/models/dinov2/layers/attention.py:73
Methodforward
(self, x: Tensor)
src/slamformer/models/dinov2/layers/mlp.py:34
Methodforward
(self, x: Tensor)
src/slamformer/models/dinov2/layers/swiglu_ffn.py:30
Methodforward
(self, x: Tensor)
src/slamformer/models/dinov2/layers/patch_embed.py:68
Methodforward
(self, x)
src/slamformer/models/dinov2/models/vision_transformer.py:39
Methodforward
(self, *args, is_training=False, **kwargs)
src/slamformer/models/dinov2/models/vision_transformer.py:332
Methodforward
(self, predictions, gt, inspect=False)
src/croco/stereoflow/criterion.py:33
Methodforward
(self, predictions, gt, conf)
src/croco/stereoflow/criterion.py:53
Methodforward
(self, predictions, gt, conf)
src/croco/stereoflow/criterion.py:74
Methodforward
(self, predictions, gt, conf)
src/croco/stereoflow/criterion.py:96
Methodforward
(self, predictions, gt)
src/croco/stereoflow/criterion.py:119
Methodforward
(self, predictions, gt)
src/croco/stereoflow/criterion.py:147
Methodforward
(self, img1, img2)
src/croco/datasets/transforms.py:35
Methodforward
(self, img1, img2)
src/croco/datasets/transforms.py:67
Methodforward
(self, x)
src/croco/models/blocks.py:61
Methodforward
(self, x)
src/croco/models/blocks.py:92
← previousnext →401–500 of 601, ranked by callers