MCPcopy Create free account

hub / github.com/GZWSAMA/OnePoseviaGen / functions

Functions3,004 in github.com/GZWSAMA/OnePoseviaGen

↓ 4 callersFunctionscatter_min
Scatter the minimum value along the given dimension of `input` into `src` at the indices specified in `index`.
oneposeviagen/SpaTrackerV2/models/SpaTrackV2/models/tracker3D/spatrack_modules/alignment.py:21
↓ 4 callersFunctionset_logging_format
(level=logging.INFO)
oneposeviagen/fpose/fpose/Utils.py:94
↓ 4 callersFunctionsparse_scaled_dot_product_attention
Apply scaled dot product attention to a sparse tensor. Args: qkv (SparseTensor): A [N, *, 3, H, C] sparse tensor containing Qs, Ks,
oneposeviagen/Amodal3R/amodal3r/modules/sparse/attention/full_attn.py:20
↓ 4 callersFunctionsphere_hammersley_sequence
(n, num_samples, offset=(0, 0), remap=False)
oneposeviagen/trellis/trellis/utils/random_utils.py:22
↓ 4 callersMethodtransform_coords
Expects a torch tensor with length 2 in the last dimension. The coordinates can be in absolute image or normalized coordinates, If th
oneposeviagen/SAM2-in-video/sam2/utils/transforms.py:46
↓ 4 callersMethodupdate
(self, name='default')
oneposeviagen/locate/models/utils.py:74
↓ 4 callersFunctionwrap_module_with_gradient_checkpointing
(module: nn.Module)
oneposeviagen/SpaTrackerV2/models/moge/model/utils.py:7
↓ 4 callersFunctionyaw_pitch_r_fov_to_extrinsics_intrinsics
(yaws, pitchs, rs, fovs, device='cuda')
oneposeviagen/trellis/trellis/utils/render_utils.py:12
↓ 4 callersFunctionzero_module
Zero out the parameters of a module and return it.
oneposeviagen/Amodal3R/amodal3r/modules/utils.py:35
↓ 3 callersMethod__cal_layout
(self, coords, batch_size)
oneposeviagen/trellis/trellis/modules/sparse/basic.py:123
↓ 3 callersMethod__cal_layout
(self, coords, batch_size)
oneposeviagen/Amodal3R/amodal3r/modules/sparse/basic.py:123
↓ 3 callersMethod__cal_shape
(self, feats, coords)
oneposeviagen/trellis/trellis/modules/sparse/basic.py:117
↓ 3 callersMethod__cal_shape
(self, feats, coords)
oneposeviagen/Amodal3R/amodal3r/modules/sparse/basic.py:117
↓ 3 callersMethod__init__
(self, cfg, h5_file, mode='train', max_num_key=None, cache_data=None)
oneposeviagen/fpose/fpose/learning/datasets/h5_dataset.py:21
↓ 3 callersMethod__init__
(self, channels: int, mlp_ratio: float = 4.0)
oneposeviagen/trellis/trellis/modules/transformer/blocks.py:50
↓ 3 callersMethod__init__
(self, start_index=1)
oneposeviagen/SpaTrackerV2/models/monoD/zoeDepth/midas_c/midas/backbones/utils.py:7
↓ 3 callersMethod__init__
Projector MLP Args: in_features (int): input channels out_features (int): output channels mlp_dim (int, o
oneposeviagen/SpaTrackerV2/models/monoD/zoeDepth/models/layers/localbins_layers.py:100
↓ 3 callersMethod__init__
( self, in_features, hidden_features=None, out_features=None, act_laye
oneposeviagen/SpaTrackerV2/models/SpaTrackV2/models/vggt4track/heads/track_modules/modules.py:114
↓ 3 callersMethod__init__
(self, dim, heads = 8, dim_head = 64)
oneposeviagen/SpaTrackerV2/models/SpaTrackV2/models/tracker3D/spatrack_modules/simple_vit_1d.py:36
↓ 3 callersMethod__init__
(self, layer, num_layers, dim=None, input_projection=False)
oneposeviagen/SAM2-in-video/sam2/modeling/memory_encoder.py:121
↓ 3 callersMethod__init__
( self, embedding_dim: int, num_heads: int, downsample_rate: int = 1,
oneposeviagen/SAM2-in-video/sam2/modeling/sam/transformer.py:221
↓ 3 callersMethod__init__
(self, dim: int, heads: int)
oneposeviagen/Amodal3R/amodal3r/modules/attention/modules.py:10
↓ 3 callersMethod__init__
(self, channels: int, mlp_ratio: float = 4.0)
oneposeviagen/Amodal3R/amodal3r/modules/transformer/blocks.py:50
↓ 3 callersMethod_apply_non_overlapping_constraints
Apply non-overlapping constraints to the object scores in pred_masks. Here we keep only the highest scoring object at each spatial lo
oneposeviagen/SAM2-in-video/sam2/modeling/sam2_base.py:811
↓ 3 callersMethod_consolidate_temp_output_across_obj
Consolidate the per-object temporary outputs in `temp_output_dict_per_obj` on a frame into a single output for all objects, including
oneposeviagen/SAM2-in-video/sam2/sam2_video_predictor.py:360
↓ 3 callersMethod_forward_impl
Implementation of the forward pass through the DPT head. This method processes a specific chunk of frames from the sequence.
oneposeviagen/trellis/trellis/models/heads/dpt_head.py:185
↓ 3 callersMethod_forward_impl
Implementation of the forward pass through the DPT head. This method processes a specific chunk of frames from the sequence.
oneposeviagen/SpaTrackerV2/models/SpaTrackV2/models/vggt4track/heads/dpt_head.py:185
↓ 3 callersMethod_get_model_prediction
(self, model, x_t, t, cond=None, **kwargs)
oneposeviagen/trellis/trellis/pipelines/samplers/flow_euler.py:56
↓ 3 callersMethod_get_obj_num
Get the total number of unique object ids received so far in this session.
oneposeviagen/SAM2-in-video/sam2/sam2_video_predictor.py:144
↓ 3 callersMethod_get_orig_video_res_output
Resize the object scores to the original video resolution (video_res_masks) and apply non-overlapping constraints for final output.
oneposeviagen/SAM2-in-video/sam2/sam2_video_predictor.py:338
↓ 3 callersMethod_infer_with_pad_aug
Inference interface for the model with padding augmentation Padding augmentation fixes the boundary artifacts in the output depth map
oneposeviagen/SpaTrackerV2/models/monoD/zoeDepth/models/depth_model.py:57
↓ 3 callersMethod_linear_interp
Computes the location of zero-crossings on 'edges_x' using linear interpolation with 'edges_weight'.
oneposeviagen/trellis/trellis/representations/mesh/flexicube.py:195
↓ 3 callersMethod_linear_interp
Computes the location of zero-crossings on 'edges_x' using linear interpolation with 'edges_weight'.
oneposeviagen/Amodal3R/amodal3r/representations/mesh/flexicube.py:192
↓ 3 callersMethod_linear_projection
(self, x, head_size, proj_layer)
oneposeviagen/SpaTrackerV2/models/SpaTrackV2/models/tracker3D/delta_utils/blocks.py:611
↓ 3 callersMethod_linear_projection
(self, x, head_size, proj_layer)
oneposeviagen/SpaTrackerV2/models/SpaTrackV2/models/tracker3D/delta_utils/upsample_transformer.py:120
↓ 3 callersFunction_make_beit_backbone
( model, features=[96, 192, 384, 768], size=[384, 384], hooks=[0, 4, 8, 11],
oneposeviagen/SpaTrackerV2/models/monoD/zoeDepth/midas_c/midas/backbones/beit.py:130
↓ 3 callersFunction_make_encoder
(backbone, features, use_pretrained, groups=1, expand=False, exportable=True, hooks=None, us
oneposeviagen/SpaTrackerV2/models/monoD/zoeDepth/midas_c/midas/blocks.py:32
↓ 3 callersFunction_pad_cumsum
(cumsum: torch.Tensor)
oneposeviagen/SpaTrackerV2/models/moge/utils/alignment.py:44
↓ 3 callersFunction_pad_cumsum
(cumsum: torch.Tensor)
oneposeviagen/SpaTrackerV2/models/SpaTrackV2/models/tracker3D/spatrack_modules/alignment.py:52
↓ 3 callersFunction_pad_inf
(x_: torch.Tensor)
oneposeviagen/SpaTrackerV2/models/moge/utils/alignment.py:40
↓ 3 callersFunction_pad_inf
(x_: torch.Tensor)
oneposeviagen/SpaTrackerV2/models/SpaTrackV2/models/tracker3D/spatrack_modules/alignment.py:48
↓ 3 callersMethod_prepare_backbone_features
Prepare and flatten visual features.
oneposeviagen/SAM2-in-video/sam2/modeling/sam2_base.py:477
↓ 3 callersFunction_run
(command)
oneposeviagen/SpaTrackerV2/models/moge/model/dinov2/utils/utils.py:49
↓ 3 callersFunction_run
(command)
oneposeviagen/Amodal3R/dit/utils.py:429
↓ 3 callersMethod_run_single_frame_inference
Run tracking on a single frame based on current inputs and previous memory.
oneposeviagen/SAM2-in-video/sam2/sam2_video_predictor.py:761
↓ 3 callersMethodadd_new_points
Add new points to a frame.
oneposeviagen/SAM2-in-video/sam2/sam2_video_predictor.py:149
↓ 3 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/moge/utils/alignment.py:305
↓ 3 callersMethodall_reduce
(self)
oneposeviagen/SpaTrackerV2/models/SpaTrackV2/models/utils.py:55
↓ 3 callersFunctionbase_pose_act
Apply basic activation function to pose parameters. Args: pose_enc: Tensor containing encoded pose parameters act_type: Acti
oneposeviagen/trellis/trellis/models/heads/head_act.py:39
↓ 3 callersFunctionbase_pose_act
Apply basic activation function to pose parameters. Args: pose_enc: Tensor containing encoded pose parameters act_type: Acti
oneposeviagen/SpaTrackerV2/models/SpaTrackV2/models/vggt4track/heads/head_act.py:38
↓ 3 callersFunctionbilinear_sampler
r"""Sample a tensor using bilinear interpolation `bilinear_sampler(input, coords)` samples a tensor :attr:`input` at coordinates :attr:`coord
oneposeviagen/SpaTrackerV2/models/SpaTrackV2/utils/model_utils.py:292
↓ 3 callersFunctionboundary_f1
(pred: torch.Tensor, gt: torch.Tensor, mask: torch.Tensor, radius: int = 1)
oneposeviagen/SpaTrackerV2/models/moge/test/metrics.py:64
↓ 3 callersFunctionbuild_sam2_video_predictor
( config_file, ckpt_path=None, device="cuda", mode="eval", hydra_overrides_extra=[], a
oneposeviagen/SAM2-in-video/sam2/build_sam.py:43
↓ 3 callersFunctioncheck_choices
(name, value, choices)
oneposeviagen/SpaTrackerV2/models/monoD/zoeDepth/utils/config.py:344
↓ 3 callersMethodconvert_to_fp16
Convert the torso of the model to float16.
oneposeviagen/Amodal3R/amodal3r/models/structured_latent_vae/base.py:89
↓ 3 callersFunctionconvert_video_to_mp4
Convert video to MP4 format using ffmpeg.
app.py:772
↓ 3 callersFunctioncreate_backbone_model
Create and load a backbone model given a config. Args: ---- preset: A backbone preset to load pre-defind configs. Returns: -
oneposeviagen/SpaTrackerV2/models/monoD/depth_pro/depth_pro.py:49
↓ 3 callersFunctioncreate_window
(window_size, channel)
oneposeviagen/trellis/trellis/utils/postprocessing_utils.py:217
↓ 3 callersMethoddecode_slat
Decode the structured latent. Args: slat (sp.SparseTensor): The structured latent. formats (List[str]): The
oneposeviagen/trellis/trellis/pipelines/trellis_image_to_3d.py:457
↓ 3 callersFunctiondelta1_point
(pred: torch.Tensor, gt: torch.Tensor, eps: float = 1e-6)
oneposeviagen/SpaTrackerV2/models/moge/test/metrics.py:43
↓ 3 callersMethoddevice
(self)
oneposeviagen/SAM2-in-video/sam2/modeling/sam2_base.py:192
↓ 3 callersFunctiondraw_line3d_xyz
(start, end, img, depth, line_color)
oneposeviagen/fpose/fpose/Utils.py:742
↓ 3 callersFunctiondraw_posed_3d_box
Revised from 6pack dataset/inference_dataset_nocs.py::projection @bbox: (2,3) min/max @line_color: RGB
oneposeviagen/fpose/fpose/Utils.py:788
↓ 3 callersFunctiondraw_xyz_axis
@color: BGR
oneposeviagen/fpose/fpose/Utils.py:675
↓ 3 callersMethodforward
(self, input: SparseTensor)
oneposeviagen/trellis/trellis/modules/sparse/norm.py:18
↓ 3 callersMethodforward
(self, input: SparseTensor)
oneposeviagen/Amodal3R/amodal3r/modules/sparse/norm.py:18
↓ 3 callersMethodforward_features
(self, x, masks=None)
oneposeviagen/SpaTrackerV2/models/SpaTrackV2/models/vggt4track/layers/vision_transformer.py:262
↓ 3 callersMethodforward_image
Get the image feature on the input batch.
oneposeviagen/SAM2-in-video/sam2/modeling/sam2_base.py:463
↓ 3 callersMethodfrom_pretrained
Load a pretrained model. Args: path (str): The path to the model. Can be either local path or a Hugging Face repository.
oneposeviagen/trellis/trellis/pipelines/trellis_image_to_3d.py:187
↓ 3 callersMethodfrom_pretrained
Load a SAM model from Hugging Face Hub. Args: model_name: Model name from HF_MODELS or direct HF model path
oneposeviagen/SpaTrackerV2/app_3rd/sam_utils/hf_sam_predictor.py:48
↓ 3 callersFunctionget_cluster_type
(cluster_type: Optional[ClusterType] = None)
oneposeviagen/SpaTrackerV2/models/moge/model/dinov2/utils/cluster.py:31
↓ 3 callersMethodget_color
(self,i)
oneposeviagen/fpose/fpose/datareader.py:237
↓ 3 callersMethodget_cond
Get the conditioning information for the model. Args: image (Union[torch.Tensor, list[Image.Image]]): The image prompts.
oneposeviagen/trellis/trellis/pipelines/trellis_image_to_3d.py:397
↓ 3 callersFunctionget_connected_components
Get the connected components (8-connectivity) of binary masks of shape (N, 1, H, W). Inputs: - mask: A binary mask tensor of shape (N, 1
oneposeviagen/SAM2-in-video/sam2/utils/misc.py:47
↓ 3 callersFunctionget_dense_attrs
(coords : torch.Tensor, feats : torch.Tensor, res : int, sdf_init=True)
oneposeviagen/trellis/trellis/representations/mesh/utils_cube.py:50
↓ 3 callersMethodget_gt_mesh_file
(self, ob_id)
oneposeviagen/fpose/fpose/datareader.py:233
↓ 3 callersMethodget_matrices
(self,ids)
oneposeviagen/fpose/fpose/bundlesdf/nerf_helpers.py:54
↓ 3 callersFunctionget_optimized_poses_in_real_world
@poses_normalized: np array, cam_in_ob (opengl convention), normalized to [-1,1] and centered @pose_array: PoseArray, delta poses Return:
oneposeviagen/fpose/fpose/bundlesdf/nerf_helpers.py:224
↓ 3 callersFunctionget_scale
(mesh, depth_file, raw_img, mask_file, out_dir, intrinsic_file, sample_flag=0, input_pose=np.eye(4))
oneposeviagen/locate/fit_object_scale.py:458
↓ 3 callersMethodget_size
(self, width, height)
oneposeviagen/SpaTrackerV2/models/monoD/depth_anything/util/transform.py:111
↓ 3 callersMethodguess_translation
(self, depth, mask, K)
oneposeviagen/fpose/fpose/estimater.py:137
↓ 3 callersFunctionhilbert_encode
(grid_coord: torch.Tensor, depth: int = 16)
oneposeviagen/Amodal3R/extensions/vox2seq/vox2seq/pytorch/default.py:54
↓ 3 callersMethodinterpolate_time_embed
(self, x, t)
oneposeviagen/SpaTrackerV2/models/SpaTrackV2/models/tracker3D/co_tracker/cotracker_base.py:174
↓ 3 callersFunctioninverse_log_transform
Apply inverse log transform: sign(y) * (exp(|y|) - 1) Args: y: Input tensor Returns: Transformed tensor
oneposeviagen/trellis/trellis/models/heads/head_act.py:116
↓ 3 callersFunctioninverse_log_transform
Apply inverse log transform: sign(y) * (exp(|y|) - 1) Args: y: Input tensor Returns: Transformed tensor
oneposeviagen/SpaTrackerV2/models/SpaTrackV2/models/vggt4track/heads/head_act.py:115
↓ 3 callersFunctioninvert_depth
Inverts a depth map with numerical stability. Args: ---- depth (np.ndarray): Depth map to be inverted. eps (float): Minimum v
oneposeviagen/SpaTrackerV2/models/monoD/depth_pro/eval/boundary_metrics.py:245
↓ 3 callersFunctionis_dist_avail_and_initialized
()
oneposeviagen/Amodal3R/dit/utils.py:448
↓ 3 callersFunctionmake_crop_data_batch
(render_size, ob_in_cams, mesh, rgb, depth, K, crop_ratio, xyz_map, normal_map=None, mesh_diameter=None, cfg=N
oneposeviagen/fpose/fpose/learning/training/predict_pose_refine.py:26
↓ 3 callersFunctionmask_aware_nearest_resize
Resize 2D map by nearest interpolation. Return the nearest neighbor index and mask of the resized map. ### Parameters - `inputs`: a sing
oneposeviagen/SpaTrackerV2/models/moge/utils/geometry_torch.py:173
↓ 3 callersFunctionmask_aware_nearest_resize_numpy
Resize 2D map by nearest interpolation. Return the nearest neighbor index and mask of the resized map. ### Parameters - `inputs`: a sing
oneposeviagen/SpaTrackerV2/models/moge/utils/geometry_numpy.py:141
↓ 3 callersFunctionmatrix_to_quaternion
Convert rotations given as rotation matrices to quaternions. Args: matrix: Rotation matrices as tensor of shape (..., 3, 3). Re
oneposeviagen/SpaTrackerV2/models/SpaTrackV2/models/utils.py:1019
↓ 3 callersFunctionmax_pool
(x)
oneposeviagen/locate/models/superpoint.py:52
↓ 3 callersFunctionnms_horizontal
Apply Non-Maximum Suppression (NMS) horizontally on the given ratio matrix. Args: ---- ratio (np.ndarray): Input ratio matrix.
oneposeviagen/SpaTrackerV2/models/monoD/depth_pro/eval/boundary_metrics.py:29
↓ 3 callersFunctionnormalized_view_plane_uv
UV with left-top corner as (-width / diagonal, -height / diagonal) and right-bottom corner as (width / diagonal, height / diagonal)
oneposeviagen/SpaTrackerV2/models/SpaTrackV2/models/tracker3D/spatrack_modules/geometry_torch.py:40
↓ 3 callersFunctionnvdiffrast_render
Just plain rendering, not support any gradient @K: (3,3) np array @ob_in_cams: (N,4,4) torch tensor, openCV camera @projection_mat: np array (4,
oneposeviagen/fpose/fpose/Utils.py:133
↓ 3 callersFunctionpatchify
Patchify a tensor. Args: x (torch.Tensor): (N, C, *spatial) tensor patch_size (int): Patch size
oneposeviagen/trellis/trellis/modules/spatial.py:16
↓ 3 callersFunctionpose_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,
oneposeviagen/SpaTrackerV2/models/SpaTrackV2/models/vggt4track/utils/pose_enc.py:65
↓ 3 callersMethodpredict
@rgb: np array (H,W,3)
oneposeviagen/fpose/fpose/learning/training/predict_score.py:160
↓ 3 callersFunctionprocess_resize
(w, h, resize)
oneposeviagen/locate/models/utils.py:240
↓ 3 callersMethodpropagate_in_video
Propagate the input points across frames to track in the entire video.
oneposeviagen/SAM2-in-video/sam2/sam2_video_predictor.py:585
← previousnext →201–300 of 3,004, ranked by callers