MCPcopy Create free account

hub / github.com/JIA-Lab-research/VisionReasoner / functions

Functions358 in github.com/JIA-Lab-research/VisionReasoner

Methodforward
(self, x)
vision_reasoner/models/vggt/layers/vision_transformer.py:36
Methodforward
(self, *args, is_training=True, **kwargs)
vision_reasoner/models/vggt/layers/vision_transformer.py:325
Methodforward
Forward pass through the DPT head, supports processing by chunking frames. Args: aggregated_tokens_list (List[Tensor]): L
vision_reasoner/models/vggt/heads/dpt_head.py:115
Methodforward
Forward pass. Args: x (tensor): input Returns: tensor: output
vision_reasoner/models/vggt/heads/dpt_head.py:366
Methodforward
Forward pass. Returns: tensor: output
vision_reasoner/models/vggt/heads/dpt_head.py:432
Methodforward
Forward pass to predict camera parameters. Args: aggregated_tokens_list (list): List of token tensors from the network;
vision_reasoner/models/vggt/heads/camera_head.py:73
Methodforward
Forward pass of the TrackHead. Args: aggregated_tokens_list (list): List of aggregated tokens from the backbone.
vision_reasoner/models/vggt/heads/track_head.py:72
Methodforward
(self, input_tensor, mask=None)
vision_reasoner/models/vggt/heads/track_modules/blocks.py:90
Methodforward
query_points: B x N x 2, the number of batches, tracks, and xy fmaps: B x S x C x HH x WW, the number of batches, frames, and feature
vision_reasoner/models/vggt/heads/track_modules/base_track_predictor.py:82
Methodforward
(self, x)
vision_reasoner/models/vggt/heads/track_modules/modules.py:86
Methodforward
(self, x)
vision_reasoner/models/vggt/heads/track_modules/modules.py:124
Methodforward
(self, x, mask=None)
vision_reasoner/models/vggt/heads/track_modules/modules.py:156
Methodforward
(self, x, context, mask=None)
vision_reasoner/models/vggt/heads/track_modules/modules.py:192
Methodforward
Args: images (torch.Tensor): Input images with shape [B, S, 3, H, W], in range [0, 1]. B: batch size, S: sequence
vision_reasoner/models/vggt/models/aggregator.py:184
Methodforward
Forward pass of the VGGT model. Args: images (torch.Tensor): Input images with shape [S, 3, H, W] or [B, S, 3, H, W], in
vision_reasoner/models/vggt/models/vggt.py:29
Methodforward
Args: images (torch.Tensor): Images as RGB, in the range of [0, 1], with a shape of B x S x 3 x H x W. query_points (
vision_reasoner/models/vggt/dependency/vggsfm_tracker.py:58
Methodforward
(self, x)
vision_reasoner/models/vggt/dependency/track_modules/blocks.py:66
Methodforward
(self, x)
vision_reasoner/models/vggt/dependency/track_modules/blocks.py:132
Methodforward
(self, input_tensor, mask=None)
vision_reasoner/models/vggt/dependency/track_modules/blocks.py:224
Methodforward
query_points: B x N x 2, the number of batches, tracks, and xy fmaps: B x S x C x HH x WW, the number of batches, frames, and feature
vision_reasoner/models/vggt/dependency/track_modules/base_track_predictor.py:71
Methodforward
(self, x)
vision_reasoner/models/vggt/dependency/track_modules/modules.py:86
Methodforward
(self, x)
vision_reasoner/models/vggt/dependency/track_modules/modules.py:124
Methodforward
(self, x, mask=None)
vision_reasoner/models/vggt/dependency/track_modules/modules.py:155
Methodforward
(self, x, context, mask=None)
vision_reasoner/models/vggt/dependency/track_modules/modules.py:190
Methodget_intermediate_layers
( self, x: torch.Tensor, n: Union[int, Sequence] = 1, # Layers or n last layers to ta
vision_reasoner/models/vggt/layers/vision_transformer.py:299
Functioninit_weights_vit_timm
ViT weight initialization, original timm impl (for reproducibility)
vision_reasoner/models/vggt/layers/vision_transformer.py:333
Methodinit_weights_vit_timm
ViT weight initialization, original timm impl (for reproducibility)
vision_reasoner/models/vggt/dependency/track_modules/blocks.py:217
Functionload_and_preprocess_images_square
Load and preprocess images by center padding to square and resizing to target size. Also returns the position information of original pixels
vision_reasoner/models/vggt/utils/load_fn.py:13
Functionparse
(x)
vision_reasoner/models/vggt/dependency/track_modules/modules.py:20
Functionpose_encoding_to_extri_intri
Convert a pose encoding back to camera extrinsics and intrinsics. This function performs the inverse operation of extri_intri_to_pose_encoding,
vision_reasoner/models/vggt/utils/pose_enc.py:62
Methodpose_estimation
Pose estimation in an image based on a query Args: image: Input image query: Text query describing w
vision_reasoner/models/visurf_model.py:1061
Functionpredict_tracks
Predict tracks for the given images and masks. TODO: support non-square images TODO: support masks This function predicts the trac
vision_reasoner/models/vggt/dependency/track_predict.py:12
Methodprocess_batch
Process a batch of images with given instructions Args: batch_images (list): List of PIL Images batc
vision_reasoner/models/qwen_vl_cot.py:263
Methodprocess_batch
Process a batch of images and instructions Args: batch_images: List of input images batch_instructio
vision_reasoner/models/base_model.py:21
Methodprocess_batch
Process a batch of images with given instructions Args: batch_images (list): List of PIL Images batc
vision_reasoner/models/vision_reasoner_model.py:344
Methodprocess_batch
Process a batch of images with given instructions Args: batch_images (list): List of PIL Images batc
vision_reasoner/models/visurf_model.py:371
Methodprocess_batch
Process a batch of images with given instructions Args: batch_images (list): List of PIL Images batc
vision_reasoner/models/qwen_vl.py:230
Methodprocess_single_image
Process a single image and instruction Args: image: Input image instruction: Text instruction/query
vision_reasoner/models/base_model.py:7
Functionproject_world_points_to_cam
Transforms 3D points to 2D using extrinsic and intrinsic parameters. Args: world_points (torch.Tensor): 3D points of shape Px3.
vision_reasoner/models/vggt/utils/geometry.py:204
Functionproject_world_points_to_camera_points_batch
Transforms 3D points to 2D using extrinsic and intrinsic parameters. Args: world_points (torch.Tensor): 3D points of shape BxSxHxWx3.
vision_reasoner/models/vggt/utils/geometry.py:175
Functionpycolmap_to_batch_np_matrix
Convert a PyCOLMAP Reconstruction Object to batched NumPy arrays. Args: reconstruction (pycolmap.Reconstruction): The reconstruction
vision_reasoner/models/vggt/dependency/np_to_pycolmap.py:148
Functionrandomly_limit_trues
If mask has more than max_trues True values, randomly keep only max_trues of them and set the rest to False.
vision_reasoner/models/vggt/utils/helper.py:10
Functionrefine_track_v0
COPIED FROM VGGSfM Refines the tracking of images using a fine track predictor and a fine feature network. Check https://arxiv.org/abs/2
vision_reasoner/models/vggt/dependency/track_modules/track_refine.py:163
Methodroute_batch
Batch route tasks Args: instructions: List of instructions Returns: list: List of result
vision_reasoner/models/task_router.py:34
Methodroute_task
Route input instruction to corresponding task category Args: instruction: User input instruction Ret
vision_reasoner/models/task_router.py:17
Methodsegment_objects
Segment objects in an image based on a query Args: image: Input image query: Text query describing w
vision_reasoner/models/base_model.py:74
Methodsegment_objects_batch
Segment objects in a batch of images Args: images: List of input images queries: List of text querie
vision_reasoner/models/qwen_vl_cot.py:494
Methodsegment_objects_batch
Segment objects in a batch of images Args: images: List of input images queries: List of text querie
vision_reasoner/models/base_model.py:91
Methodsegment_objects_batch
Segment objects in a batch of images Args: images: List of input images queries: List of text querie
vision_reasoner/models/vision_reasoner_model.py:575
Methodsegment_objects_batch
Segment objects in a batch of images Args: images: List of input images queries: List of text querie
vision_reasoner/models/visurf_model.py:602
Functionunproject_depth_map_to_point_map
Unproject a batch of depth maps to 3D world coordinates. Args: depth_map (np.ndarray): Batch of depth maps of shape (S, H, W, 1) or
vision_reasoner/models/vggt/utils/geometry.py:15
Functionvisualize_result
保存一行三列的可视化图像
evaluation/visualization.py:5
Functionvisualize_result_with_bboxes_and_points
保存一行三列的可视化图像
evaluation/visualization.py:48
Functionvisualize_tracks_on_images
Visualizes frames in a grid layout with specified frames per row. Each track's color is determined by its (x,y) position in the first vis
vision_reasoner/models/vggt/utils/visual_track.py:80
Functionvit_base
(patch_size=16, num_register_tokens=0, **kwargs)
vision_reasoner/models/vggt/layers/vision_transformer.py:355
Functionvit_giant2
Close to ViT-giant, with embed-dim 1536 and 24 heads => embed-dim per head 64
vision_reasoner/models/vggt/layers/vision_transformer.py:383
Functionvit_large
(patch_size=16, num_register_tokens=0, **kwargs)
vision_reasoner/models/vggt/layers/vision_transformer.py:369
Functionvit_small
(patch_size=16, num_register_tokens=0, **kwargs)
vision_reasoner/models/vggt/layers/vision_transformer.py:341
← previous301–358 of 358, ranked by callers