MCPcopy Create free account

hub / github.com/GZWSAMA/OnePoseviaGen / functions

Functions3,004 in github.com/GZWSAMA/OnePoseviaGen

↓ 1 callersFunctionalign_depth_affine
Align `depth_src` to `depth_tgt` with given constant weights. ### Parameters: - `depth_src: torch.Tensor` of shape (..., N) - `depth
oneposeviagen/SpaTrackerV2/models/moge/utils/alignment.py:163
↓ 1 callersFunctionalign_depth_scale
Align `depth_src` to `depth_tgt` with given constant weights. ### Parameters: - `depth_src: torch.Tensor` of shape (..., N) - `dept
oneposeviagen/SpaTrackerV2/models/moge/utils/alignment.py:149
↓ 1 callersFunctionalign_points_scale
### Parameters: - `points_src: torch.Tensor` of shape (..., N, 3) - `points_tgt: torch.Tensor` of shape (..., N, 3) - `weight: torch.
oneposeviagen/SpaTrackerV2/models/moge/utils/alignment.py:233
↓ 1 callersFunctionalign_points_scale_xyz_shift
Align `points_src` to `points_tgt` with respect to a shared xyz scale and z shift. It is similar to `align_affine` but scale and shift are a
oneposeviagen/SpaTrackerV2/models/SpaTrackV2/models/tracker3D/spatrack_modules/alignment.py:313
↓ 1 callersFunctionalign_points_scale_z_shift
Align `points_src` to `points_tgt` with respect to a shared xyz scale and z shift. It is similar to `align_affine` but scale and shift are a
oneposeviagen/SpaTrackerV2/models/moge/utils/alignment.py:251
↓ 1 callersFunctionalign_points_scale_z_shift
Align `points_src` to `points_tgt` with respect to a shared xyz scale and z shift. It is similar to `align_affine` but scale and shift are a
oneposeviagen/SpaTrackerV2/models/SpaTrackV2/models/tracker3D/spatrack_modules/alignment.py:259
↓ 1 callersFunctionalign_points_xyz_shift
Align `points_src` to `points_tgt` with respect to a Z-axis shift. ### Parameters: - `points_src: torch.Tensor` of shape (..., N, 3)
oneposeviagen/SpaTrackerV2/models/moge/utils/alignment.py:379
↓ 1 callersFunctionangle_error_mat
(R1, R2)
oneposeviagen/locate/models/utils.py:374
↓ 1 callersFunctionangle_error_vec
(v1, v2)
oneposeviagen/locate/models/utils.py:380
↓ 1 callersFunctionapply_rotary_enc
( xq: torch.Tensor, xk: torch.Tensor, freqs_cis: torch.Tensor, repeat_freqs_k: bool = False, )
oneposeviagen/SAM2-in-video/sam2/modeling/position_encoding.py:194
↓ 1 callersFunctionapply_scaling_rules_to_cfg
(cfg)
oneposeviagen/SpaTrackerV2/models/moge/model/dinov2/utils/config.py:21
↓ 1 callersFunctionarea_from_rle
(rle: Dict[str, Any])
oneposeviagen/SAM2-in-video/sam2/utils/amg.py:154
↓ 1 callersMethodattach_hooks
(self, midas)
oneposeviagen/SpaTrackerV2/models/monoD/zoeDepth/models/base_models/midas.py:297
↓ 1 callersMethodattend_with_rpe
(self, Q, K)
oneposeviagen/SpaTrackerV2/models/SpaTrackV2/models/tracker3D/delta_utils/blocks.py:707
↓ 1 callersFunctionattention
(query: torch.Tensor, key: torch.Tensor, value: torch.Tensor)
oneposeviagen/locate/models/superglue.py:87
↓ 1 callersFunctionba_pycolmap
world_tracks: 1 1 K 3 this is the coarse 3d tracks in world coordinate (coarse 3d tracks) intrs: B T 3 3 this is the intrinsic matrix
oneposeviagen/SpaTrackerV2/models/SpaTrackV2/models/tracker3D/spatrack_modules/ba.py:469
↓ 1 callersFunctionbake_texture
Bake texture to a mesh from multiple observations. Args: vertices (np.array): Vertices of the mesh. Shape (V, 3). faces (np.
oneposeviagen/trellis/trellis/utils/postprocessing_utils.py:328
↓ 1 callersFunctionbake_texture
Bake texture to a mesh from multiple observations. Args: vertices (np.array): Vertices of the mesh. Shape (V, 3). faces (np.
oneposeviagen/Amodal3R/amodal3r/utils/postprocessing_utils.py:276
↓ 1 callersFunctionbatch_matrix_to_pycolmap
Convert Batched Pytorch Tensors to PyCOLMAP Check https://github.com/colmap/pycolmap for more details about its format
oneposeviagen/SpaTrackerV2/models/SpaTrackV2/models/tracker3D/spatrack_modules/ba.py:251
↓ 1 callersMethodbatchify_rays
Render rays in smaller minibatches to avoid OOM.
oneposeviagen/fpose/fpose/bundlesdf/nerf_runner.py:917
↓ 1 callersFunctionbinary2gray
Convert an array of binary values into Gray codes. This uses the classic X ^ (X >> 1) trick to compute the Gray code. Parameters: ------
oneposeviagen/Amodal3R/extensions/vox2seq/vox2seq/pytorch/hilbert.py:46
↓ 1 callersFunctionblender_world_normal_2_camera
Transform normal from world space to camera space. :param normal: The normal in world space. :param c2w: The camera to world matrix.
oneposeviagen/trellis/dataset.py:134
↓ 1 callersFunctionblock_attn_config
Return the attention configuration of the model.
oneposeviagen/trellis/trellis/models/structured_latent_vae/base.py:10
↓ 1 callersFunctionblock_attn_config
Return the attention configuration of the model.
oneposeviagen/Amodal3R/amodal3r/models/structured_latent_vae/base.py:10
↓ 1 callersFunctionboundary_f1
Calculate Boundary F1 score. Args: ---- pr (np.ndarray): Predicted depth matrix. gt (np.ndarray): Ground truth depth matrix.
oneposeviagen/SpaTrackerV2/models/monoD/depth_pro/eval/boundary_metrics.py:178
↓ 1 callersFunctionbuild
Build the model from the config NOTE: the config should contain the following - encoder: the encoder type of the model
oneposeviagen/SpaTrackerV2/models/monoD/depth_anything/build.py:16
↓ 1 callersMethodbuild
(midas_model_type="DPT_BEiT_L_384", train_midas=False, use_pretrained_midas=True, fetch_features=False, freeze
oneposeviagen/SpaTrackerV2/models/monoD/zoeDepth/models/base_models/midas.py:333
↓ 1 callersMethodbuild
(midas_model_type="DPT_BEiT_L_384", pretrained_resource=None, use_pretrained_midas=False, train_midas=False, f
oneposeviagen/SpaTrackerV2/models/monoD/zoeDepth/models/zoedepth/zoedepth_v1.py:245
↓ 1 callersMethodbuild
(midas_model_type="DPT_BEiT_L_384", pretrained_resource=None, use_pretrained_midas=False, train_midas=False, f
oneposeviagen/SpaTrackerV2/models/monoD/zoeDepth/models/zoedepth_nk/zoedepth_nk_v1.py:329
↓ 1 callersFunctionbuild_all_layer_point_grids
Generates point grids for all crop layers.
oneposeviagen/SAM2-in-video/sam2/utils/amg.py:191
↓ 1 callersMethodbuild_from_config
(config)
oneposeviagen/SpaTrackerV2/models/monoD/zoeDepth/models/base_models/midas.py:355
↓ 1 callersMethodbuild_metas
(self, scene)
oneposeviagen/Amodal3R/dataLoader/amodal3r.py:53
↓ 1 callersFunctionbuild_model
(args, only_teacher=False, img_size=224)
oneposeviagen/SpaTrackerV2/models/moge/model/dinov2/models/__init__.py:14
↓ 1 callersMethodbuild_octree
(self)
oneposeviagen/fpose/fpose/bundlesdf/nerf_runner.py:320
↓ 1 callersFunctionbuild_point_grid
Generates a 2D grid of points evenly spaced in [0,1]x[0,1].
oneposeviagen/SAM2-in-video/sam2/utils/amg.py:181
↓ 1 callersFunctionbuild_rotation
(r)
oneposeviagen/trellis/trellis/representations/gaussian/general_utils.py:78
↓ 1 callersFunctionbuild_rotation
(r)
oneposeviagen/Amodal3R/amodal3r/representations/gaussian/general_utils.py:78
↓ 1 callersFunctionbuild_scaling_rotation
(s, r)
oneposeviagen/trellis/trellis/representations/gaussian/general_utils.py:101
↓ 1 callersFunctionbuild_scaling_rotation
(s, r)
oneposeviagen/Amodal3R/amodal3r/representations/gaussian/general_utils.py:101
↓ 1 callersFunctioncalc_serialization
Calculate serialization and partitioning for a set of coordinates. Args: tensor (SparseTensor): The input tensor. window_siz
oneposeviagen/trellis/trellis/modules/sparse/attention/serialized_attn.py:36
↓ 1 callersFunctioncalc_serialization
Calculate serialization and partitioning for a set of coordinates. Args: tensor (SparseTensor): The input tensor. window_siz
oneposeviagen/Amodal3R/amodal3r/modules/sparse/attention/serialized_attn.py:36
↓ 1 callersFunctioncalc_window_partition
Calculate serialization and partitioning for a set of coordinates. Args: tensor (SparseTensor): The input tensor. window_siz
oneposeviagen/trellis/trellis/modules/sparse/attention/windowed_attn.py:20
↓ 1 callersFunctioncalc_window_partition
Calculate serialization and partitioning for a set of coordinates. Args: tensor (SparseTensor): The input tensor. window_siz
oneposeviagen/Amodal3R/amodal3r/modules/sparse/attention/windowed_attn.py:20
↓ 1 callersFunctioncalculate_bbox_from_mask
从二值化掩码中计算边界框 :param binary_mask: 二维numpy数组,表示二值化掩码 :return: 边界框 (xmin, ymin, width, height)
oneposeviagen/locate/fit_object_scale.py:59
↓ 1 callersFunctionclosed_form_inverse_OpenCV
Computes the inverse of each 4x4 SE3 matrix in the batch. Args: - se3 (Tensor): Nx4x4 tensor of SE3 matrices. Returns: - Tensor
oneposeviagen/SpaTrackerV2/models/SpaTrackV2/models/utils.py:149
↓ 1 callersFunctionclosed_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
oneposeviagen/SpaTrackerV2/models/SpaTrackV2/models/vggt4track/utils/geometry.py:117
↓ 1 callersFunctioncoco_encode_rle
(uncompressed_rle: Dict[str, Any])
oneposeviagen/SAM2-in-video/sam2/utils/amg.py:296
↓ 1 callersFunctioncolor_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
oneposeviagen/SpaTrackerV2/models/SpaTrackV2/models/vggt4track/utils/visual_track.py:13
↓ 1 callersFunctioncompress_and_write
(filename, header, blob)
app.py:348
↓ 1 callersFunctioncompress_and_write
(filename, header, blob)
oneposeviagen/SpaTrackerV2/tapip3d_viz.py:25
↓ 1 callersFunctioncompress_and_write
(filename, header, blob)
oneposeviagen/SpaTrackerV2/app.py:255
↓ 1 callersMethodcomput_face_normals
(self, verts, faces)
oneposeviagen/Amodal3R/amodal3r/representations/mesh/cube2mesh.py:34
↓ 1 callersFunctioncompute_anchor_sampling_weight
( points: torch.Tensor, mask: torch.Tensor, radius_2d: torch.Tensor, radius_3d: torch.Tenso
oneposeviagen/SpaTrackerV2/models/moge/train/losses.py:76
↓ 1 callersFunctioncompute_ap
Computes average precision for given ranked indexes. Arguments --------- ranks : zerro-based ranks of positive images nres : num
oneposeviagen/Amodal3R/dit/utils.py:757
↓ 1 callersFunctioncompute_corr_level
(fmap1, fmap2s, C)
oneposeviagen/SpaTrackerV2/models/SpaTrackV2/models/vggt4track/heads/track_modules/blocks.py:241
↓ 1 callersFunctioncompute_errors
Compute metrics for 'pred' compared to 'gt' Args: gt (numpy.ndarray): Ground truth values pred (numpy.ndarray): Predicted values
oneposeviagen/SpaTrackerV2/models/monoD/zoeDepth/utils/misc.py:159
↓ 1 callersFunctioncompute_fov
根据相机内参矩阵 K 和图像尺寸计算 FoV 参数: K (np.ndarray): 3x3 相机内参矩阵 width (int): 图像宽度(像素) height (int): 图像高度(像素) degrees (bool): 是否返回角
oneposeviagen/scripts/render_normals.py:25
↓ 1 callersFunctioncompute_mesh_diameter
(model_pts=None, mesh=None, n_sample=1000)
oneposeviagen/fpose/fpose/Utils.py:559
↓ 1 callersFunctioncompute_near_far_and_filter_rays
@cam_in_world: (4,4) in normalized space @rays: (...,D) in camera Return: (-1,D+2) with near far
oneposeviagen/fpose/fpose/bundlesdf/nerf_runner.py:42
↓ 1 callersFunctioncompute_optical_axis_intersection
(cameras)
oneposeviagen/SpaTrackerV2/models/SpaTrackV2/models/camera_transform.py:123
↓ 1 callersFunctioncompute_optical_transform
adapted from https://github.com/amyxlase/relpose-plus-plus
oneposeviagen/SpaTrackerV2/models/SpaTrackV2/models/camera_transform.py:96
↓ 1 callersFunctioncompute_scale_and_shift
(prediction, target, mask)
oneposeviagen/SpaTrackerV2/models/SpaTrackV2/models/utils.py:488
↓ 1 callersFunctioncompute_scene_bounds
(color_files,glcam_in_worlds,K,use_mask=True,base_dir=None,rgbs=None,depths=None,masks=None,cluster=True, tran
oneposeviagen/fpose/fpose/bundlesdf/tool.py:65
↓ 1 callersFunctioncompute_tf_batch
(left, right, top, bottom)
oneposeviagen/fpose/fpose/Utils.py:584
↓ 1 callersFunctioncompute_translation_scales
(pts,max_dim=2,cluster=True, eps=0.06, min_samples=1)
oneposeviagen/fpose/fpose/bundlesdf/tool.py:27
↓ 1 callersFunctioncompute_weighted_std
Compute the weighted standard deviation of 2D tracks across time. Args: track2d (Tensor): shape (B, T, N, 2), 2D tracked points.
oneposeviagen/SpaTrackerV2/models/SpaTrackV2/models/tracker3D/spatrack_modules/pointmap_updator.py:48
↓ 1 callersFunctionconcat_points
Add new points and labels to previous point inputs (add at the end).
oneposeviagen/SAM2-in-video/sam2/utils/misc.py:244
↓ 1 callersFunctionconnected_component
Find connected components in the given row and column indices. Args: ---- r (np.ndarray): Row indices. c (np.ndarray): Column
oneposeviagen/SpaTrackerV2/models/monoD/depth_pro/eval/boundary_metrics.py:6
↓ 1 callersFunctionconstruct_dense_grid
construct a dense grid based on resolution
oneposeviagen/Amodal3R/amodal3r/representations/mesh/utils_cube.py:8
↓ 1 callersMethodconstruct_list_of_attributes
(self)
oneposeviagen/trellis/trellis/representations/gaussian/gaussian_model.py:133
↓ 1 callersMethodconstruct_list_of_attributes
(self)
oneposeviagen/Amodal3R/amodal3r/representations/gaussian/gaussian_model.py:113
↓ 1 callersFunctionconstruct_voxel_grid
(coords)
oneposeviagen/trellis/trellis/representations/mesh/utils_cube.py:19
↓ 1 callersFunctionconstruct_voxel_grid
(coords)
oneposeviagen/Amodal3R/amodal3r/representations/mesh/utils_cube.py:19
↓ 1 callersFunctionconvert_depth_images_to_video
将给定路径列表中的单通道深度图归一化到 0~255 并转为三通道,组成视频保存 :param file_paths: 包含所有深度图文件路径的列表 :param output_video_path: 输出视频文件的路径 :param fps: 输出视频的帧
app.py:859
↓ 1 callersMethodconvert_to_bf16
Convert the torso of the model to bfloat16.
oneposeviagen/trellis/trellis/models/sparse_structure_flow.py:156
↓ 1 callersMethodconvert_to_bf16
Convert the torso of the model to float16.
oneposeviagen/trellis/trellis/models/sparse_structure_vae.py:237
↓ 1 callersMethodconvert_to_bf16
Convert the torso of the model to bfloat16.
oneposeviagen/trellis/trellis/models/sparse_structure_vae.py:364
↓ 1 callersMethodconvert_to_bf16
Convert the torso of the model to bfloat16.
oneposeviagen/trellis/trellis/models/structured_latent_flow.py:259
↓ 1 callersMethodconvert_to_bf16
Convert the torso of the model to bfloat16.
oneposeviagen/trellis/trellis/models/structured_latent_vae/decoder_mesh.py:155
↓ 1 callersMethodconvert_to_fp16
Convert the torso of the model to float16.
oneposeviagen/trellis/trellis/models/sparse_structure_flow.py:147
↓ 1 callersMethodconvert_to_fp16
Convert the torso of the model to float16.
oneposeviagen/trellis/trellis/models/sparse_structure_vae.py:228
↓ 1 callersMethodconvert_to_fp16
Convert the torso of the model to float16.
oneposeviagen/trellis/trellis/models/sparse_structure_vae.py:355
↓ 1 callersMethodconvert_to_fp16
Convert the torso of the model to float16.
oneposeviagen/trellis/trellis/models/structured_latent_flow.py:248
↓ 1 callersMethodconvert_to_fp16
Convert the torso of the model to float16.
oneposeviagen/trellis/trellis/models/structured_latent_vae/decoder_mesh.py:145
↓ 1 callersMethodconvert_to_fp16
Convert the torso of the model to float16.
oneposeviagen/Amodal3R/amodal3r/models/structured_latent_flow_doubleattn_weighted.py:193
↓ 1 callersMethodconvert_to_fp16
Convert the torso of the model to float16.
oneposeviagen/Amodal3R/amodal3r/models/sparse_structure_flow.py:138
↓ 1 callersMethodconvert_to_fp16
Convert the torso of the model to float16.
oneposeviagen/Amodal3R/amodal3r/models/sparse_structure_flow_doubleattn_weighted.py:139
↓ 1 callersMethodconvert_to_fp16
Convert the torso of the model to float16.
oneposeviagen/Amodal3R/amodal3r/models/sparse_structure_vae.py:168
↓ 1 callersMethodconvert_to_fp16
Convert the torso of the model to float16.
oneposeviagen/Amodal3R/amodal3r/models/sparse_structure_vae.py:277
↓ 1 callersMethodconvert_to_fp16
Convert the torso of the model to float16.
oneposeviagen/Amodal3R/amodal3r/models/structured_latent_flow.py:192
↓ 1 callersMethodconvert_to_fp16
Convert the torso of the model to float16.
oneposeviagen/Amodal3R/amodal3r/models/structured_latent_vae/decoder_mesh.py:131
↓ 1 callersMethodconvert_to_fp32
Convert the torso of the model to float32.
oneposeviagen/trellis/trellis/models/structured_latent_flow.py:270
↓ 1 callersFunctionconvert_to_meshes
Converts all objects in the scene to meshes. Returns: None
oneposeviagen/Amodal3R/dataset_toolkits/blender_script/render.py:312
↓ 1 callersMethodcorr_sample
Instead of storing the entire correlation pyramid, we compute each level's correlation volume, sample it immediately, then discard it
oneposeviagen/SpaTrackerV2/models/SpaTrackV2/models/vggt4track/heads/track_modules/blocks.py:186
↓ 1 callersFunctioncosine_annealing
(step, total_steps, start_lr, end_lr)
oneposeviagen/trellis/trellis/utils/postprocessing_utils.py:673
↓ 1 callersMethodcreate_embedding_fn
(self)
oneposeviagen/fpose/fpose/bundlesdf/nerf_helpers.py:160
↓ 1 callersFunctioncreate_intri_matrix
Creates a intri matrix from focal length and principal point. Args: focal_length (torch.Tensor): A Bx2 or BxSx2 tensor containing th
oneposeviagen/SpaTrackerV2/models/SpaTrackV2/models/utils.py:117
↓ 1 callersFunctioncreate_model_and_transforms
Create a DepthPro model and load weights from `config.checkpoint_uri`. Args: ---- config: The configuration for the DPT model archite
oneposeviagen/SpaTrackerV2/models/monoD/depth_pro/depth_pro.py:72
↓ 1 callersMethodcreate_nerf
Instantiate NeRF's MLP model.
oneposeviagen/fpose/fpose/bundlesdf/nerf_runner.py:205
↓ 1 callersMethodcreate_optimizer
(self)
oneposeviagen/fpose/fpose/bundlesdf/nerf_runner.py:378
← previousnext →801–900 of 3,004, ranked by callers