Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/JIA-Lab-research/VisionReasoner
/ functions
Functions
358 in github.com/JIA-Lab-research/VisionReasoner
⨍
Functions
358
◇
Types & classes
48
↓ 1 callers
Function
add_residual
(x, brange, residual, residual_scale_factor, scaling_vector=None)
vision_reasoner/models/vggt/layers/block.py:136
↓ 1 callers
Method
answer_question
Answer a question about an image Args: image: Input image question: Text question
vision_reasoner/models/visurf_model.py:753
↓ 1 callers
Method
answer_questions_batch_math
Answer questions about a batch of images Args: images: List of input images questions: List of text
vision_reasoner/models/visurf_model.py:842
↓ 1 callers
Function
build_vggsfm_tracker
Build and initialize the VGGSfM tracker. Args: model_path: Path to the model weights file. If None, weights are downloaded from Hugg
vision_reasoner/models/vggt/dependency/vggsfm_utils.py:29
↓ 1 callers
Function
calculate_index_mappings
Construct an order that switches [query_index] and [0] so that the content of query_index would be placed at [0]. Args: query_in
vision_reasoner/models/vggt/dependency/vggsfm_utils.py:153
↓ 1 callers
Function
calculate_metrics
(output_dir)
evaluation/calculate_counting.py:12
↓ 1 callers
Function
calculate_metrics
(output_dir)
evaluation/calculate_acc_auc.py:13
↓ 1 callers
Function
calculate_metrics
(output_dir)
evaluation/calculate_math_acc.py:46
↓ 1 callers
Function
calculate_metrics
(output_dir)
evaluation/calculate_iou.py:12
↓ 1 callers
Function
calculate_metrics
(output_dir)
evaluation/calculate_iou_with_bbox.py:12
↓ 1 callers
Function
calculate_metrics
(output_dir, gt_json_path)
evaluation/calculate_coco_ap.py:16
↓ 1 callers
Function
calculate_metrics
(output_dir)
evaluation/calculate_gui_acc.py:12
↓ 1 callers
Function
calculate_metrics
(output_dir)
evaluation/calculate_iou_with_bbox_nonobj.py:12
↓ 1 callers
Function
closed_form_inverse_se3
Compute the inverse of each 4x4 (or 3x4) SE3 matrix in a batch. If `R` and `T` are provided, they must correspond to the rotation and transl
vision_reasoner/models/vggt/utils/geometry.py:120
↓ 1 callers
Function
color_from_xy
Map (x, y) -> color in (R, G, B). 1) Normalize x,y to [0,1]. 2) Combine them into a single scalar c in [0,1]. 3) Use matplotlib's col
vision_reasoner/models/vggt/utils/visual_track.py:13
↓ 1 callers
Function
compute_bbox_iou
(bbox1, bbox2)
evaluation/evaluation_anomaly.py:41
↓ 1 callers
Function
compute_corr_level
(fmap1, fmap2s, C)
vision_reasoner/models/vggt/heads/track_modules/blocks.py:231
↓ 1 callers
Function
compute_iou
(mask1, mask2)
evaluation/evaluation_segmentation.py:34
↓ 1 callers
Method
corr
(self, targets)
vision_reasoner/models/vggt/dependency/track_modules/blocks.py:309
↓ 1 callers
Method
corr_sample
Instead of storing the entire correlation pyramid, we compute each level's correlation volume, sample it immediately, then discard it
vision_reasoner/models/vggt/heads/track_modules/blocks.py:176
↓ 1 callers
Method
count_objects
Count objects in an image based on a query Args: image: Input image query: Text query describing wha
vision_reasoner/models/visurf_model.py:652
↓ 1 callers
Method
count_objects_batch
Count objects in a batch of images Args: images: List of input images queries: List of text queries
vision_reasoner/models/qwen_vl.py:573
↓ 1 callers
Function
create_bbox_frame
Create the bounding box frame without white borders
vision_reasoner/utils.py:117
↓ 1 callers
Function
create_depth_bbox_frame
Create the bounding box frame for depth estimation
vision_reasoner/utils.py:471
↓ 1 callers
Function
create_depth_estimation_frame
Create the depth estimation frame
vision_reasoner/utils.py:487
↓ 1 callers
Function
create_depth_original_frame
Create the original image frame for depth estimation
vision_reasoner/utils.py:460
↓ 1 callers
Function
create_original_frame
Create the original image frame without white borders
vision_reasoner/utils.py:106
↓ 1 callers
Function
create_overlay_frame
Create the overlay frame without white borders
vision_reasoner/utils.py:139
↓ 1 callers
Function
create_pose_bbox_frame
Create the bounding box frame for pose estimation
vision_reasoner/utils.py:376
↓ 1 callers
Function
create_pose_estimation_frame
Create the pose estimation frame
vision_reasoner/utils.py:392
↓ 1 callers
Function
create_pose_original_frame
Create the original image frame for pose estimation
vision_reasoner/utils.py:365
↓ 1 callers
Function
create_uv_grid
Create a normalized UV grid of shape (width, height, 2). The grid spans horizontally and vertically according to an aspect ratio, ensuri
vision_reasoner/models/vggt/heads/utils.py:66
↓ 1 callers
Method
depth_estimation
(self, image, query)
vision_reasoner/models/visurf_model.py:912
↓ 1 callers
Function
depth_to_cam_coords_points
Convert a depth map to camera coordinates. Args: depth_map (np.ndarray): Depth map of shape (H, W). intrinsic (np.ndarray):
vision_reasoner/models/vggt/utils/geometry.py:87
↓ 1 callers
Function
depth_to_world_coords_points
Convert a depth map to world coordinates. Args: depth_map (np.ndarray): Depth map of shape (H, W). intrinsic (np.ndarray): C
vision_reasoner/models/vggt/utils/geometry.py:47
↓ 1 callers
Method
detect_objects
Detect objects in an image based on a query Args: image: Input image query: Text query describing wh
vision_reasoner/models/visurf_model.py:447
↓ 1 callers
Function
drop_path
(x, drop_prob: float = 0.0, training: bool = False)
vision_reasoner/models/vggt/layers/drop_path.py:14
↓ 1 callers
Function
exists
(val)
vision_reasoner/models/vggt/heads/track_modules/modules.py:28
↓ 1 callers
Function
exists
(val)
vision_reasoner/models/vggt/dependency/track_modules/modules.py:28
↓ 1 callers
Function
extract_keypoints
Extract keypoints using pre-initialized feature extractors. Args: query_image: Input image tensor (3xHxW, range [0, 1]) extr
vision_reasoner/models/vggt/dependency/vggsfm_utils.py:227
↓ 1 callers
Function
farthest_point_sampling
Farthest point sampling algorithm to select diverse frames. Args: distance_matrix: Matrix of distances between frames num_sa
vision_reasoner/models/vggt/dependency/vggsfm_utils.py:118
↓ 1 callers
Method
forward
(self, x: Tensor, pos=None)
vision_reasoner/models/vggt/layers/block.py:77
↓ 1 callers
Method
forward
(self, x: Tensor, pos=None)
vision_reasoner/models/vggt/layers/attention.py:50
↓ 1 callers
Method
forward_features
(self, x, masks=None)
vision_reasoner/models/vggt/layers/vision_transformer.py:252
↓ 1 callers
Method
forward_features_list
(self, x_list, masks_list)
vision_reasoner/models/vggt/layers/vision_transformer.py:228
↓ 1 callers
Method
forward_nested
x_list contains a list of tensors to nest together and run
vision_reasoner/models/vggt/layers/block.py:199
↓ 1 callers
Method
generate_image
Generate an image based on a query Args: refer_image_path: Path to the reference image image_prompt:
vision_reasoner/models/visurf_model.py:875
↓ 1 callers
Method
generate_masks
Generate segmentation masks for given image, bounding boxes and points Args: image (PIL.Image): Input image
vision_reasoner/models/qwen_vl_cot.py:388
↓ 1 callers
Method
generate_masks
Generate segmentation masks for given image, bounding boxes and points Args: image (PIL.Image): Input image
vision_reasoner/models/qwen_vl.py:341
↓ 1 callers
Function
generate_rank_by_dino
Generate a ranking of frames using DINO ViT features. Args: images: Tensor of shape (S, 3, H, W) with values in range [0, 1]
vision_reasoner/models/vggt/dependency/vggsfm_utils.py:51
↓ 1 callers
Function
get_2d_embedding
This function generates a 2D positional embedding from given coordinates using sine and cosine functions. Args: - xy: The coordinates to
vision_reasoner/models/vggt/heads/track_modules/utils.py:90
↓ 1 callers
Function
get_2d_embedding
This function generates a 2D positional embedding from given coordinates using sine and cosine functions. Args: - xy: The coordinates to
vision_reasoner/models/vggt/dependency/track_modules/utils.py:91
↓ 1 callers
Function
get_2d_sincos_pos_embed
This function initializes a grid and generates a 2D positional embedding using sine and cosine functions. It is a wrapper of get_2d_sincos_po
vision_reasoner/models/vggt/heads/track_modules/utils.py:18
↓ 1 callers
Function
get_2d_sincos_pos_embed
This function initializes a grid and generates a 2D positional embedding using sine and cosine functions. It is a wrapper of get_2d_sincos_po
vision_reasoner/models/vggt/dependency/track_modules/utils.py:19
↓ 1 callers
Function
get_2d_sincos_pos_embed_from_grid
This function generates a 2D positional embedding from a given grid using sine and cosine functions. Args: - embed_dim: The embedding di
vision_reasoner/models/vggt/heads/track_modules/utils.py:43
↓ 1 callers
Function
get_2d_sincos_pos_embed_from_grid
This function generates a 2D positional embedding from a given grid using sine and cosine functions. Args: - embed_dim: The embedding di
vision_reasoner/models/vggt/dependency/track_modules/utils.py:44
↓ 1 callers
Function
get_bbox
(mask)
evaluation/evaluation_segmentation.py:139
↓ 1 callers
Function
get_branges_scales
(x, sample_drop_ratio=0.0)
vision_reasoner/models/vggt/layers/block.py:128
↓ 1 callers
Function
get_track_colors_by_position
Given all tracks in one sample (b), compute a (N,3) array of RGB color values in [0,255]. The color is determined by the (x,y) position in th
vision_reasoner/models/vggt/utils/visual_track.py:37
↓ 1 callers
Function
img_from_cam
Applies intrinsic parameters and optional distortion to the given 3D points. Args: cam_intrinsics (torch.Tensor): Intrinsic camera p
vision_reasoner/models/vggt/utils/geometry.py:251
↓ 1 callers
Function
img_from_cam
Applies intrinsic parameters and optional distortion to the given 3D points. Args: intrinsics (torch.Tensor): Intrinsic camera param
vision_reasoner/models/vggt/dependency/projection.py:140
↓ 1 callers
Function
img_from_cam_np
Apply intrinsics (and optional radial distortion) to camera-space points. Args ---- intrinsics : (B,3,3) camera matrix K. point
vision_reasoner/models/vggt/dependency/projection.py:12
↓ 1 callers
Method
init_weights
(self)
vision_reasoner/models/vggt/layers/vision_transformer.py:173
↓ 1 callers
Method
initialize_weights
(self)
vision_reasoner/models/vggt/heads/track_modules/blocks.py:80
↓ 1 callers
Method
initialize_weights
(self)
vision_reasoner/models/vggt/dependency/track_modules/blocks.py:210
↓ 1 callers
Method
interpolate_pos_encoding
(self, x, w, h)
vision_reasoner/models/vggt/layers/vision_transformer.py:180
↓ 1 callers
Function
main
()
vision_reasoner/inference.py:14
↓ 1 callers
Function
main
()
evaluation/evaluation_math.py:33
↓ 1 callers
Function
main
()
evaluation/evaluation_gui.py:64
↓ 1 callers
Function
main
()
evaluation/evaluation_count.py:30
↓ 1 callers
Function
main
()
evaluation/evaluation_coco.py:65
↓ 1 callers
Function
main
()
evaluation/evaluation_anomaly.py:64
↓ 1 callers
Function
main
()
evaluation/evaluation_segmentation.py:64
↓ 1 callers
Function
mat_to_quat
Convert rotations given as rotation matrices to quaternions. Args: matrix: Rotation matrices as tensor of shape (..., 3, 3). Re
vision_reasoner/models/vggt/utils/rotation.py:47
↓ 1 callers
Function
merge_bboxes
合并所有bboxes,返回最左上和最右下的坐标
evaluation/evaluation_segmentation.py:119
↓ 1 callers
Function
modulate
Modulate the input tensor using scaling and shifting parameters.
vision_reasoner/models/vggt/heads/camera_head.py:144
↓ 1 callers
Function
named_apply
(fn: Callable, module: nn.Module, name="", depth_first=True, include_root=False)
vision_reasoner/models/vggt/layers/vision_transformer.py:24
↓ 1 callers
Function
parse_args
()
evaluation/calculate_counting.py:7
↓ 1 callers
Function
parse_args
()
evaluation/calculate_acc_auc.py:8
↓ 1 callers
Function
parse_args
()
evaluation/calculate_math_acc.py:9
↓ 1 callers
Function
parse_args
()
evaluation/calculate_iou.py:7
↓ 1 callers
Function
parse_args
()
evaluation/evaluation_math.py:18
↓ 1 callers
Function
parse_args
()
evaluation/evaluation_gui.py:19
↓ 1 callers
Function
parse_args
()
evaluation/calculate_iou_with_bbox.py:7
↓ 1 callers
Function
parse_args
()
evaluation/calculate_coco_ap.py:10
↓ 1 callers
Function
parse_args
()
evaluation/calculate_gui_acc.py:7
↓ 1 callers
Function
parse_args
()
evaluation/evaluation_count.py:15
↓ 1 callers
Function
parse_args
()
evaluation/evaluation_coco.py:18
↓ 1 callers
Function
parse_args
()
evaluation/evaluation_anomaly.py:19
↓ 1 callers
Function
parse_args
()
evaluation/evaluation_segmentation.py:19
↓ 1 callers
Function
parse_args
()
evaluation/calculate_iou_with_bbox_nonobj.py:7
↓ 1 callers
Method
pose_estimation
Pose estimation in an image based on a query Args: image: Input image query: Text query describing w
vision_reasoner/models/vision_reasoner_model.py:972
↓ 1 callers
Function
position_grid_to_embed
Convert 2D position grid (HxWx2) to sinusoidal embeddings (HxWxC) Args: pos_grid: Tensor of shape (H, W, 2) containing 2D coordinate
vision_reasoner/models/vggt/heads/utils.py:11
↓ 1 callers
Function
predict_tracks_in_chunks
Process a list of query points to avoid memory issues. Args: track_predictor (object): The track predictor object used for predictin
vision_reasoner/models/vggt/dependency/vggsfm_utils.py:255
↓ 1 callers
Function
process_batch
Process a batch of images and questions
evaluation/evaluation_math.py:81
↓ 1 callers
Function
process_batch
Process a batch of images and questions
evaluation/evaluation_gui.py:114
↓ 1 callers
Function
process_batch
Process a batch of images and questions
evaluation/evaluation_count.py:75
↓ 1 callers
Function
process_batch
Process a batch of images and questions
evaluation/evaluation_coco.py:114
↓ 1 callers
Function
process_batch
Process a batch of images and questions
evaluation/evaluation_anomaly.py:116
↓ 1 callers
Function
process_batch
Process a batch of images and questions
evaluation/evaluation_segmentation.py:157
← previous
next →
101–200 of 358, ranked by callers