MCPcopy Create free account

hub / github.com/GZWSAMA/OnePoseviaGen / functions

Functions3,004 in github.com/GZWSAMA/OnePoseviaGen

↓ 2 callersMethodcomput_face_normals
(self, verts, faces)
oneposeviagen/trellis/trellis/representations/mesh/cube2mesh.py:45
↓ 2 callersMethodcomput_v_normals
(self, verts, faces)
oneposeviagen/trellis/trellis/representations/mesh/cube2mesh.py:57
↓ 2 callersMethodcompute_add_err_to_gt_pose
@poses: wrt. the centered mesh
oneposeviagen/fpose/fpose/estimater.py:243
↓ 2 callersFunctioncompute_crop_window_tf_batch
Project the points and find the cropping transform @pts: (N,3) @poses: (B,4,4) tensor @min_box: min_box/min_circle @scale: scale to apply to t
oneposeviagen/fpose/fpose/Utils.py:577
↓ 2 callersFunctioncompute_loss
Compute the loss for the FrontTracker model.
oneposeviagen/SpaTrackerV2/models/SpaTrackV2/models/vggt4track/utils/loss.py:20
↓ 2 callersFunctionconstruct_dense_grid
construct a dense grid based on resolution
oneposeviagen/trellis/trellis/representations/mesh/utils_cube.py:8
↓ 2 callersFunctionconv3x3
3x3 convolution with padding
oneposeviagen/fpose/fpose/learning/models/network_modules.py:63
↓ 2 callersMethodconvert_to_bf16
Convert the torso of the model to bfloat16.
oneposeviagen/trellis/trellis/models/structured_latent_vae/base.py:105
↓ 2 callersMethodconvert_to_fp16
Convert the torso of the model to float16.
oneposeviagen/trellis/trellis/models/structured_latent_vae/base.py:96
↓ 2 callersFunctioncosine_anealing
(optimizer, step, total_steps, start_lr, end_lr)
oneposeviagen/trellis/trellis/utils/postprocessing_utils.py:417
↓ 2 callersFunctioncosine_anealing
(optimizer, step, total_steps, start_lr, end_lr)
oneposeviagen/Amodal3R/amodal3r/utils/postprocessing_utils.py:365
↓ 2 callersFunctioncrop_len
(orig_len, n_crops, overlap)
oneposeviagen/SAM2-in-video/sam2/utils/amg.py:217
↓ 2 callersFunctioncustom_interpolate
Custom interpolate to avoid INT_MAX issues in nn.functional.interpolate.
oneposeviagen/trellis/trellis/models/heads/dpt_head.py:472
↓ 2 callersFunctioncustom_interpolate
Custom interpolate to avoid INT_MAX issues in nn.functional.interpolate.
oneposeviagen/SpaTrackerV2/models/SpaTrackV2/models/vggt4track/heads/dpt_head.py:472
↓ 2 callersFunctioncv_draw_text
(img,text,uv_top_left,color=(255, 255, 255),fontScale=0.5,thickness=1,fontFace=cv2.FONT_HERSHEY_SIMPLEX,outlin
oneposeviagen/fpose/fpose/Utils.py:630
↓ 2 callersMethoddecode_slat
Decode the structured latent. Args: slat (sp.SparseTensor): The structured latent. formats (List[str]): The
oneposeviagen/Amodal3R/amodal3r/pipelines/image_to_3d.py:227
↓ 2 callersFunctiondefault
(val, d)
oneposeviagen/SpaTrackerV2/models/SpaTrackV2/models/blocks.py:35
↓ 2 callersFunctiondefault
(val, d)
oneposeviagen/SpaTrackerV2/models/SpaTrackV2/models/tracker3D/co_tracker/utils.py:288
↓ 2 callersFunctiondefault
(val, d)
oneposeviagen/SpaTrackerV2/models/SpaTrackV2/models/tracker3D/delta_utils/blocks.py:35
↓ 2 callersFunctiondo_pool
(x: torch.Tensor, pool: nn.Module, norm: nn.Module = None)
oneposeviagen/SAM2-in-video/sam2/modeling/backbones/hieradet.py:23
↓ 2 callersFunctiondrop_add_residual_stochastic_depth
( x: Tensor, residual_func: Callable[[Tensor], Tensor], sample_drop_ratio: float = 0.0, )
oneposeviagen/SpaTrackerV2/models/monoD/depth_anything_v2/dinov2_layers/block.py:110
↓ 2 callersFunctiondrop_add_residual_stochastic_depth
( x: Tensor, residual_func: Callable[[Tensor], Tensor], sample_drop_ratio: float = 0.0, )
oneposeviagen/SpaTrackerV2/models/moge/model/dinov2/layers/block.py:116
↓ 2 callersFunctiondrop_add_residual_stochastic_depth
( x: Tensor, residual_func: Callable[[Tensor], Tensor], sample_drop_ratio: float = 0.0, pos=No
oneposeviagen/SpaTrackerV2/models/SpaTrackV2/models/vggt4track/layers/block.py:110
↓ 2 callersFunctiondrop_add_residual_stochastic_depth_list
( x_list: List[Tensor], residual_func: Callable[[Tensor, Any], Tensor], sample_drop_ratio: float =
oneposeviagen/SpaTrackerV2/models/monoD/depth_anything_v2/dinov2_layers/block.py:181
↓ 2 callersFunctiondrop_add_residual_stochastic_depth_list
( x_list: List[Tensor], residual_func: Callable[[Tensor, Any], Tensor], sample_drop_ratio: float =
oneposeviagen/SpaTrackerV2/models/moge/model/dinov2/layers/block.py:187
↓ 2 callersFunctiondrop_add_residual_stochastic_depth_list
( x_list: List[Tensor], residual_func: Callable[[Tensor, Any], Tensor], sample_drop_ratio: float =
oneposeviagen/SpaTrackerV2/models/SpaTrackV2/models/vggt4track/layers/block.py:187
↓ 2 callersMethodencode_image
Encode the image. Args: image (Union[torch.Tensor, list[Image.Image]]): The image to encode Returns:
oneposeviagen/Amodal3R/amodal3r/pipelines/image_to_3d.py:126
↓ 2 callersFunctionerode_depth
(depth, radius=2, depth_diff_thres=0.001, ratio_thres=0.8, zfar=100, device='cuda')
oneposeviagen/fpose/fpose/Utils.py:387
↓ 2 callersMethodextract_img_feat
(self, video, fmaps_chunk_size=200)
oneposeviagen/SpaTrackerV2/models/SpaTrackV2/models/tracker3D/TrackRefiner.py:266
↓ 2 callersMethodextract_mesh
(self, level=None, voxel_size=0.003, isolevel=0.0, return_sigma=False)
oneposeviagen/fpose/fpose/bundlesdf/nerf_runner.py:1063
↓ 2 callersFunctionextract_static_from_3DTracks
world_tracks: B T N 3 this is the coarse 3d tracks in world coordinate (coarse 3d tracks) dyn_prob: B T N this is the dynamic probabilit
oneposeviagen/SpaTrackerV2/models/SpaTrackV2/models/tracker3D/spatrack_modules/ba.py:12
↓ 2 callersFunctionfgbg_depth
Find foreground-background relations between neighboring pixels. Args: ---- d (np.ndarray): Depth matrix. t (float): Threshol
oneposeviagen/SpaTrackerV2/models/monoD/depth_pro/eval/boundary_metrics.py:69
↓ 2 callersFunctionflatten
(config, except_keys=('bin_conf'))
oneposeviagen/SpaTrackerV2/models/monoD/zoeDepth/utils/config.py:257
↓ 2 callersFunctionfocal_to_fov_numpy
(focal: np.ndarray)
oneposeviagen/SpaTrackerV2/models/moge/utils/geometry_numpy.py:45
↓ 2 callersFunctionfocal_to_fov_numpy
(focal: np.ndarray)
oneposeviagen/SpaTrackerV2/models/SpaTrackV2/models/tracker3D/spatrack_modules/geometry_numpy.py:45
↓ 2 callersMethodforward
Run SuperPoint (optionally) and SuperGlue SuperPoint is skipped if ['keypoints0', 'keypoints1'] exist in input Args: data:
oneposeviagen/locate/models/matching.py:56
↓ 2 callersMethodforward
(self, x: torch.Tensor)
oneposeviagen/trellis/trellis/modules/norm.py:6
↓ 2 callersMethodforward
(self, input: SparseTensor)
oneposeviagen/trellis/trellis/modules/sparse/nonlinearity.py:14
↓ 2 callersMethodforward
(self, x: torch.Tensor)
oneposeviagen/Amodal3R/amodal3r/modules/norm.py:6
↓ 2 callersMethodforward
(self, input: SparseTensor)
oneposeviagen/Amodal3R/amodal3r/modules/sparse/nonlinearity.py:14
↓ 2 callersFunctionforward_adapted_unflatten
(pretrained, x, function_name="forward_features")
oneposeviagen/SpaTrackerV2/models/monoD/zoeDepth/midas_c/midas/backbones/utils.py:83
↓ 2 callersFunctionforward_default
(pretrained, x, function_name="forward_features")
oneposeviagen/SpaTrackerV2/models/monoD/zoeDepth/midas_c/midas/backbones/utils.py:63
↓ 2 callersMethodforward_features
(self, x, masks=None)
oneposeviagen/SpaTrackerV2/models/monoD/depth_anything_v2/dinov2.py:257
↓ 2 callersMethodforward_with_coords
Positionally encode points that are not normalized to [0,1].
oneposeviagen/SAM2-in-video/sam2/modeling/position_encoding.py:151
↓ 2 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_ss.py:62
↓ 2 callersMethodfrom_trimesh
(mesh, device='cuda')
oneposeviagen/trellis/trellis/representations/mesh/cube2mesh.py:118
↓ 2 callersFunctionget_1d_sincos_pos_embed_from_grid
This function generates a 1D positional embedding from a given grid using sine and cosine functions. Args: - embed_dim: The embedding di
oneposeviagen/SpaTrackerV2/models/SpaTrackV2/models/vggt4track/heads/track_modules/utils.py:67
↓ 2 callersFunctionget_attn_bias_and_cat
this will perform the index select, cat the tensors, and provide the attn_bias from cache
oneposeviagen/SpaTrackerV2/models/monoD/depth_anything_v2/dinov2_layers/block.py:157
↓ 2 callersFunctionget_attn_bias_and_cat
this will perform the index select, cat the tensors, and provide the attn_bias from cache
oneposeviagen/SpaTrackerV2/models/moge/model/dinov2/layers/block.py:163
↓ 2 callersFunctionget_attn_bias_and_cat
this will perform the index select, cat the tensors, and provide the attn_bias from cache
oneposeviagen/SpaTrackerV2/models/SpaTrackV2/models/vggt4track/layers/block.py:163
↓ 2 callersFunctionget_camera_param_list
(num_frames=40, r=2, fov=40, inverse_direction=False, pitch=-1)
oneposeviagen/trellis/dataset.py:19
↓ 2 callersFunctionget_clones
(module, N)
oneposeviagen/SAM2-in-video/sam2/modeling/sam2_utils.py:84
↓ 2 callersMethodget_cond_w_masks
Get the conditioning information for the model. Args: image (Union[torch.Tensor, list[Image.Image]]): The image prompts.
oneposeviagen/Amodal3R/amodal3r/pipelines/image_to_3d.py:152
↓ 2 callersMethodget_conf_parameters
Returns parameters of all the ModuleDicts children that are exclusively used for the given bin configuration
oneposeviagen/SpaTrackerV2/models/monoD/zoeDepth/models/zoedepth_nk/zoedepth_nk_v1.py:292
↓ 2 callersFunctionget_defomed_verts
(v_pos : torch.Tensor, deform : torch.Tensor, res)
oneposeviagen/Amodal3R/amodal3r/representations/mesh/utils_cube.py:59
↓ 2 callersFunctionget_dense_attrs
(coords : torch.Tensor, feats : torch.Tensor, res : int, sdf_init=True)
oneposeviagen/Amodal3R/amodal3r/representations/mesh/utils_cube.py:50
↓ 2 callersMethodget_dense_pe
Returns the positional encoding used to encode point prompts, applied to a dense set of points the shape of the image encoding.
oneposeviagen/SAM2-in-video/sam2/modeling/sam/prompt_encoder.py:68
↓ 2 callersMethodget_depth
(self,i)
oneposeviagen/fpose/fpose/datareader.py:122
↓ 2 callersFunctionget_embedder
(multires, cfg, i=0, octree_m=None)
oneposeviagen/fpose/fpose/bundlesdf/nerf_helpers.py:188
↓ 2 callersMethodget_gt_pose
(self, i_frame:int, ob_id, mask=None, use_my_correction=False)
oneposeviagen/fpose/fpose/datareader.py:319
↓ 2 callersMethodget_input
Process input batch data for training. Args: batch_data (dict): Batch data containing images and targets Return
oneposeviagen/trellis/trellis/pipelines/trellis_image_to_ss.py:97
↓ 2 callersMethodget_instance_ids_in_image
(self, i_frame:int)
oneposeviagen/fpose/fpose/datareader.py:213
↓ 2 callersMethodget_intermediate_layers
( self, x: torch.Tensor, n: Union[int, Sequence] = 1, # Layers or n last layers to ta
oneposeviagen/SpaTrackerV2/models/monoD/depth_anything_v2/dinov2.py:311
↓ 2 callersMethodget_intermediate_layers
( self, x: torch.Tensor, n: Union[int, Sequence] = 1, # Layers or n last layers to ta
oneposeviagen/SpaTrackerV2/models/moge/model/dinov2/models/vision_transformer.py:298
↓ 2 callersMethodget_level_corner_quantized_points
(self,level)
oneposeviagen/fpose/fpose/Utils.py:1069
↓ 2 callersFunctionget_nth_visible_time_index
vis_gt: [B, T, N] 0/1 binary tensor n: [B, N] int tensor, the n-th visible time index to get (1-based) Returns: [B, N] tensor of time in
oneposeviagen/SpaTrackerV2/models/SpaTrackV2/models/tracker3D/spatrack_modules/utils.py:920
↓ 2 callersFunctionget_readout_oper
(vit_features, features, use_readout, start_index=1)
oneposeviagen/SpaTrackerV2/models/monoD/zoeDepth/midas_c/midas/backbones/utils.py:127
↓ 2 callersMethodget_support_points
(self, coords, r, reshape_back=True)
oneposeviagen/SpaTrackerV2/models/SpaTrackV2/models/tracker3D/co_tracker/cotracker_base.py:120
↓ 2 callersMethodget_tf_to_centered_mesh
(self)
oneposeviagen/fpose/fpose/estimater.py:82
↓ 2 callersFunctionget_thresholds_and_weights
Generate thresholds and weights for the given range. Args: ---- t_min (float): Minimum threshold. t_max (float): Maximum thre
oneposeviagen/SpaTrackerV2/models/monoD/depth_pro/eval/boundary_metrics.py:224
↓ 2 callersFunctionget_video_name
Extract video name without extension
app.py:472
↓ 2 callersFunctionget_video_name
Extract video name without extension
oneposeviagen/SpaTrackerV2/app.py:379
↓ 2 callersFunctionget_voxels
(instance)
oneposeviagen/trellis/dataset_toolkits/extract_ss_latent_dreamverse.py:23
↓ 2 callersMethodhalf
(self)
oneposeviagen/Amodal3R/amodal3r/modules/sparse/basic.py:217
↓ 2 callersFunctionhammersley_sequence
(dim, n, num_samples)
oneposeviagen/trellis/trellis/utils/random_utils.py:19
↓ 2 callersFunctionhammersley_sequence
(dim, n, num_samples)
oneposeviagen/Amodal3R/amodal3r/utils/random_utils.py:19
↓ 2 callersFunctionhilbert_decode
(code: torch.Tensor, depth: int = 16)
oneposeviagen/Amodal3R/extensions/vox2seq/vox2seq/pytorch/default.py:58
↓ 2 callersFunctionhuber_loss
Calculate element-wise Huber loss between x and y
oneposeviagen/SpaTrackerV2/models/SpaTrackV2/models/tracker3D/co_tracker/utils.py:772
↓ 2 callersMethodinfer
Infer depth and fov for a given image. If the image is not at network resolution, it is resized to 1536x1536 and the estimated depth
oneposeviagen/SpaTrackerV2/models/monoD/depth_pro/depth_pro.py:244
↓ 2 callersFunctioninfer_type
(x)
oneposeviagen/SpaTrackerV2/models/monoD/zoeDepth/utils/arg_utils.py:3
↓ 2 callersMethodinit
This method is called the the thread is started, to initialize any resources that is only held in the thread.
oneposeviagen/SpaTrackerV2/models/moge/utils/pipeline.py:147
↓ 2 callersMethodinject_sampler_multi_image
Inject a sampler with multiple images as condition. Args: sampler_name (str): The name of the sampler to inject.
oneposeviagen/Amodal3R/amodal3r/pipelines/image_to_3d.py:315
↓ 2 callersFunctionintrinsics_to_fov
Returns field of view in radians from normalized intrinsics matrix. ### Parameters: - intrinsics: torch.Tensor of shape (..., 3, 3)
oneposeviagen/SpaTrackerV2/models/moge/utils/geometry_torch.py:75
↓ 2 callersFunctionkey_fr_wprocrustes
cam_pts: (B, T, N, 3) graph_matrix: (B, 1, N) dyn_weight: (B, T, N) K: number of keyframes to select (including start and end) R
oneposeviagen/SpaTrackerV2/models/SpaTrackV2/models/tracker3D/spatrack_modules/utils.py:135
↓ 2 callersFunctionload_ann_png
Load a PNG file as a mask and its palette.
oneposeviagen/SAM2-in-video/tools/vos_inference.py:20
↓ 2 callersFunctionload_state_dict
Load state_dict into model, handling DataParallel and DistributedDataParallel. Also checks for "model" key in state_dict. DataParallel prefixes s
oneposeviagen/SpaTrackerV2/models/monoD/zoeDepth/models/model_io.py:27
↓ 2 callersFunctionload_state_from_resource
Loads weights to the model from a given resource. A resource can be of following types: 1. URL. Prefixed with "url::" e.g. url
oneposeviagen/SpaTrackerV2/models/monoD/zoeDepth/models/model_io.py:63
↓ 2 callersMethodloss
Compute the loss of 3D tracking problem
oneposeviagen/SpaTrackerV2/models/SpaTrackV2/models/tracker3D/TrackRefiner.py:1206
↓ 2 callersFunctionmake_2tuple
(x)
oneposeviagen/SpaTrackerV2/models/monoD/depth_anything_v2/dinov2_layers/patch_embed.py:17
↓ 2 callersFunctionmake_2tuple
(x)
oneposeviagen/SpaTrackerV2/models/moge/model/dinov2/layers/patch_embed.py:16
↓ 2 callersFunctionmake_2tuple
(x)
oneposeviagen/SpaTrackerV2/models/SpaTrackV2/models/vggt4track/layers/patch_embed.py:16
↓ 2 callersFunctionmake_backbone_default
( model, features=[96, 192, 384, 768], size=[384, 384], hooks=[2, 5, 8, 11],
oneposeviagen/SpaTrackerV2/models/monoD/zoeDepth/midas_c/midas/backbones/utils.py:144
↓ 2 callersMethodmake_scene_ob_ids_dict
(self)
oneposeviagen/fpose/fpose/datareader.py:183
↓ 2 callersFunctionmake_sincos_pos_embed
This function generates a 1D positional embedding from a given grid using sine and cosine functions. Args: - embed_dim: The embedding di
oneposeviagen/trellis/trellis/models/heads/utils.py:36
↓ 2 callersFunctionmake_sincos_pos_embed
This function generates a 1D positional embedding from a given grid using sine and cosine functions. Args: - embed_dim: The embedding di
oneposeviagen/SpaTrackerV2/models/SpaTrackV2/models/vggt4track/heads/utils.py:36
↓ 2 callersFunctionmake_tf
(translation_cvcam, sc_factor)
oneposeviagen/fpose/fpose/bundlesdf/tool.py:98
↓ 2 callersFunctionmake_yaml_dumpable
(D)
oneposeviagen/fpose/fpose/Utils.py:1138
↓ 2 callersFunctionmask_to_rle_pytorch
Encodes masks to an uncompressed RLE, in the format expected by pycoco tools.
oneposeviagen/SAM2-in-video/sam2/utils/amg.py:109
↓ 2 callersFunctionmesh_to_real_world
@pose_offset: optimized delta pose of the first frame. Usually it's identity
oneposeviagen/fpose/fpose/bundlesdf/nerf_helpers.py:215
↓ 2 callersMethodmse_loss
(self, pred, target)
oneposeviagen/trellis/trellis/pipelines/trellis_image_to_ss.py:223
← previousnext →401–500 of 3,004, ranked by callers