MCPcopy Create free account

hub / github.com/GZWSAMA/OnePoseviaGen / functions

Functions3,004 in github.com/GZWSAMA/OnePoseviaGen

↓ 2 callersFunctionnms_vertical
Apply Non-Maximum Suppression (NMS) vertically on the given ratio matrix. Args: ---- ratio (np.ndarray): Input ratio matrix.
oneposeviagen/SpaTrackerV2/models/monoD/depth_pro/eval/boundary_metrics.py:53
↓ 2 callersFunctionnorm_cdf
(x)
oneposeviagen/Amodal3R/dit/utils.py:543
↓ 2 callersFunctionnormalize_keypoints
Normalize keypoints locations based on image image_shape
oneposeviagen/locate/models/superglue.py:65
↓ 2 callersFunctionnormalize_prediction_robust
(target, mask, Bs)
oneposeviagen/SpaTrackerV2/models/SpaTrackV2/models/utils.py:512
↓ 2 callersFunctionnormalize_video_robust
(target, mask, Bs)
oneposeviagen/SpaTrackerV2/models/SpaTrackV2/models/utils.py:536
↓ 2 callersFunctionnormalized_view_plane_uv_numpy
UV with left-top corner as (-width / diagonal, -height / diagonal) and right-bottom corner as (width / diagonal, height / diagonal)
oneposeviagen/SpaTrackerV2/models/moge/utils/geometry_numpy.py:30
↓ 2 callersFunctionnormalized_view_plane_uv_numpy
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_numpy.py:30
↓ 2 callersMethodp_losses
(self, x_0, cond, t, noise)
oneposeviagen/trellis/trellis/pipelines/base.py:92
↓ 2 callersMethodp_losses
Training loss calculation
oneposeviagen/Amodal3R/dit/diffusion_ss.py:114
↓ 2 callersFunctionparse_lr_lambda
(s: str)
oneposeviagen/SpaTrackerV2/models/moge/train/utils.py:31
↓ 2 callersFunctionpatchify
Patchify a tensor. Args: x (torch.Tensor): (N, C, *spatial) tensor patch_size (int): Patch size
oneposeviagen/Amodal3R/amodal3r/modules/spatial.py:16
↓ 2 callersFunctionplot_image_with_points
(image, points, save_dir)
oneposeviagen/locate/fit_object_scale.py:265
↓ 2 callersFunctionplot_keypoints
(kpts0, kpts1, color='w', ps=2)
oneposeviagen/locate/models/utils.py:426
↓ 2 callersFunctionpose_enc2mat
This function convert the pose encoding into `intrinsic` and `extrinsic` Args: poses_pred: B T 8 Return: Intrinsic B T
oneposeviagen/SpaTrackerV2/models/SpaTrackV2/models/utils.py:966
↓ 2 callersFunctionposemb_sincos_1d
(patches, temperature = 10000, dtype = torch.float32)
oneposeviagen/SpaTrackerV2/models/SpaTrackV2/models/tracker3D/spatrack_modules/simple_vit_1d.py:9
↓ 2 callersFunctionprocess_tensor
(video_path, fps)
app.py:176
↓ 2 callersMethodq_sample_linear
x_t = (1 - t) * x0 + t * noise
oneposeviagen/Amodal3R/dit/diffusion_slat.py:101
↓ 2 callersMethodraw2outputs
Transforms model's predictions to semantically meaningful values. Args: raw: [num_rays, num_samples along ray, 4]. Prediction from model.
oneposeviagen/fpose/fpose/bundlesdf/nerf_runner.py:848
↓ 2 callersMethodray_trace
Octree is in normalized [-1,1] world coordinate frame 'rays_o': ray origin in normalized world coordinate system 'rays_d': (N,3) unit length r
oneposeviagen/fpose/fpose/Utils.py:1104
↓ 2 callersFunctionread_depth
Read a depth image, return float32 depth array of shape (H, W).
oneposeviagen/SpaTrackerV2/models/moge/utils/io.py:89
↓ 2 callersFunctionread_image
(image, device, resize, rotation, resize_float)
oneposeviagen/locate/models/utils.py:263
↓ 2 callersFunctionread_image
Read a image, return uint8 RGB array of shape (H, W, 3).
oneposeviagen/SpaTrackerV2/models/moge/utils/io.py:66
↓ 2 callersFunctionread_meta
(path: Union[str, os.PathLike, IO])
oneposeviagen/SpaTrackerV2/models/moge/utils/io.py:232
↓ 2 callersFunctionrecover_scale
(mesh_file, depth_file, raw_img, mask_file, intrinsic_file, topic, out_dir)
oneposeviagen/fpose/fpose/recover_scale.py:117
↓ 2 callersFunctionremove_small_regions
Removes small disconnected regions and holes in a mask. Returns the mask and an indicator of if the mask has been modified.
oneposeviagen/SAM2-in-video/sam2/utils/amg.py:269
↓ 2 callersMethodrender
(self,mesh=None,ob_in_cvcam=None, get_normal=False)
oneposeviagen/fpose/fpose/offscreen_renderer.py:69
↓ 2 callersMethodrender
Render rays Args: H: int. Height of image in pixels. W: int. Width of image in pixels. K: float. Focal length of pinhole camera.
oneposeviagen/fpose/fpose/bundlesdf/nerf_runner.py:888
↓ 2 callersMethodrender
Render the octree. Args: octree (Octree): octree extrinsics (torch.Tensor): (4, 4) camera extrinsics
oneposeviagen/trellis/trellis/renderers/octree_renderer.py:201
↓ 2 callersFunctionrender_image
(mesh, camera_poses, width=640, height=480, fov=1, device='cpu')
oneposeviagen/locate/fit_object_scale.py:151
↓ 2 callersFunctionrender_multiview
(sample, resolution=512, nviews=30, bg_color=(0, 0, 0))
oneposeviagen/Amodal3R/amodal3r/utils/render_utils.py:99
↓ 2 callersMethodreset
(self)
oneposeviagen/locate/models/utils.py:67
↓ 2 callersFunctionright_shift
Right shift an array of binary values. Parameters: ----------- binary: An ndarray of binary values. k: The number of bits to shift
oneposeviagen/Amodal3R/extensions/vox2seq/vox2seq/pytorch/hilbert.py:12
↓ 2 callersFunctionrle_to_mask
Compute a binary mask from an uncompressed RLE.
oneposeviagen/SAM2-in-video/sam2/utils/amg.py:140
↓ 2 callersMethodrun
Generate sparse structure from an input image. Args: image (Image.Image): Input image num_samples (int): Num
oneposeviagen/trellis/trellis/pipelines/trellis_image_to_ss.py:119
↓ 2 callersFunctionrun_inference
Run inference with either original SAM or HF SAM predictor Args: predictor: SamPredictor or HFSamPredictor instance input_x: Input
oneposeviagen/SpaTrackerV2/app_3rd/sam_utils/inference.py:38
↓ 2 callersMethodrun_multi_image
Run the pipeline with multiple images as condition Args: images (List[Image.Image]): The multi-view images of the assets
oneposeviagen/Amodal3R/amodal3r/pipelines/image_to_3d.py:372
↓ 2 callersFunctionrun_one_ob
(base_dir, cfg, use_refined_mask=False)
oneposeviagen/fpose/fpose/bundlesdf/run_nerf.py:49
↓ 2 callersMethodsample
Generate samples from the model using Euler method. Args: model: The model to sample from. noise: Th
oneposeviagen/trellis/trellis/pipelines/samplers/flow_euler.py:204
↓ 2 callersMethodsample
Sample from a model.
oneposeviagen/Amodal3R/amodal3r/pipelines/samplers/base.py:11
↓ 2 callersMethodsample
Generate samples from the model using Euler method. Args: model: The model to sample from. noise: Th
oneposeviagen/Amodal3R/amodal3r/pipelines/samplers/flow_euler.py:78
↓ 2 callersFunctionsample_features4d
r"""Sample spatial features `sample_features4d(input, coords)` samples the spatial features :attr:`input` represented by a 4D tensor :math:`(
oneposeviagen/SpaTrackerV2/models/SpaTrackV2/models/vggt4track/heads/track_modules/utils.py:196
↓ 2 callersMethodsample_rays_uniform_occupied_voxels
We first connect the discontinuous boxes for each ray and treat it as uniform sample, then we disconnect into correct boxes @rays_d: (N_ray,3)
oneposeviagen/fpose/fpose/bundlesdf/nerf_runner.py:696
↓ 2 callersMethodsample_slat
Sample structured latent with the given conditioning. Args: cond (dict): The conditioning information.
oneposeviagen/trellis/trellis/pipelines/trellis_image_to_3d.py:482
↓ 2 callersMethodsample_slat
Sample structured latent with the given conditioning. Args: cond (dict): The conditioning information.
oneposeviagen/Amodal3R/amodal3r/pipelines/image_to_3d.py:249
↓ 2 callersMethodsample_sparse_structure
Sample sparse structures with the given conditioning. Args: cond (dict): The conditioning information.
oneposeviagen/Amodal3R/amodal3r/pipelines/image_to_3d.py:196
↓ 2 callersFunctionsave_ann_png
Save a mask as a PNG file with the given palette.
oneposeviagen/SAM2-in-video/tools/vos_inference.py:28
↓ 2 callersMethodsave_video
(self, video, filename, writer=None, step=0)
oneposeviagen/SpaTrackerV2/models/SpaTrackV2/utils/visualizer.py:124
↓ 2 callersFunctionscene_bbox
Returns the bounding box of the scene. Taken from Shap-E rendering script (https://github.com/openai/shap-e/blob/main/shap_e/rendering/blende
oneposeviagen/Amodal3R/dataset_toolkits/blender_script/render.py:342
↓ 2 callersFunctionsdp_kernel_context
Get the context for the attention scaled dot-product kernel. We use Flash Attention by default, but fall back to all available kernels if Fla
oneposeviagen/SAM2-in-video/sam2/modeling/sam/transformer.py:28
↓ 2 callersMethodseek
(self, offset: int, whence: int = 0)
oneposeviagen/SpaTrackerV2/models/moge/utils/webfile.py:38
↓ 2 callersMethodset_image
Calculates the image embeddings for the provided image, allowing masks to be predicted with the 'predict' method. Arguments:
oneposeviagen/SAM2-in-video/sam2/sam2_image_predictor.py:66
↓ 2 callersFunctionslice_expand_and_flatten
Processes specialized tokens with shape (1, 2, X, C) for multi-frame processing: 1) Uses the first position (index=0) for the first frame onl
oneposeviagen/SpaTrackerV2/models/SpaTrackV2/models/vggt4track/models/aggregator.py:315
↓ 2 callersFunctionsolve_optimal_focal_shift
Solve `min |focal * xy / (z + shift) - uv|` with respect to shift and focal
oneposeviagen/SpaTrackerV2/models/moge/utils/geometry_numpy.py:79
↓ 2 callersFunctionsolve_optimal_focal_shift
Solve `min |focal * xy / (z + shift) - uv|` with respect to shift and focal
oneposeviagen/SpaTrackerV2/models/SpaTrackV2/models/tracker3D/spatrack_modules/geometry_numpy.py:79
↓ 2 callersFunctionsolve_optimal_shift
Solve `min |focal * xy / (z + shift) - uv|` with respect to shift
oneposeviagen/SpaTrackerV2/models/moge/utils/geometry_numpy.py:99
↓ 2 callersFunctionsolve_optimal_shift
Solve `min |focal * xy / (z + shift) - uv|` with respect to shift
oneposeviagen/SpaTrackerV2/models/SpaTrackV2/models/tracker3D/spatrack_modules/geometry_numpy.py:99
↓ 2 callersFunctionsparse_batch_broadcast
Broadcast a 1D tensor to a sparse tensor along the batch dimension then perform an operation. Args: input (torch.Tensor): 1D ten
oneposeviagen/trellis/trellis/modules/sparse/basic.py:392
↓ 2 callersFunctionsparse_batch_broadcast
Broadcast a 1D tensor to a sparse tensor along the batch dimension then perform an operation. Args: input (torch.Tensor): 1D ten
oneposeviagen/Amodal3R/amodal3r/modules/sparse/basic.py:392
↓ 2 callersFunctionsparse_cube2verts
(coords, feats, training=True)
oneposeviagen/trellis/trellis/representations/mesh/utils_cube.py:40
↓ 2 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/trellis/trellis/modules/sparse/attention/full_attn.py:20
↓ 2 callersFunctionsparse_serialized_scaled_dot_product_self_attention
Apply serialized scaled dot product self attention to a sparse tensor. Args: qkv (SparseTensor): [N, *, 3, H, C] sparse tensor conta
oneposeviagen/Amodal3R/amodal3r/modules/sparse/attention/serialized_attn.py:120
↓ 2 callersFunctionsparse_windowed_scaled_dot_product_self_attention
Apply windowed scaled dot product self attention to a sparse tensor. Args: qkv (SparseTensor): [N, *, 3, H, C] sparse tensor contain
oneposeviagen/Amodal3R/amodal3r/modules/sparse/attention/windowed_attn.py:63
↓ 2 callersFunctionsphere_hammersley_sequence
(n, num_samples, offset=(0, 0))
oneposeviagen/Amodal3R/dataset_toolkits/utils.py:36
↓ 2 callersFunctionsplit_batch_fwd
(fn: Callable, chunk_size: int, *args, **kwargs)
oneposeviagen/SpaTrackerV2/models/moge/utils/alignment.py:23
↓ 2 callersFunctionsplit_batch_fwd
(fn: Callable, chunk_size: int, *args, **kwargs)
oneposeviagen/SpaTrackerV2/models/SpaTrackV2/models/tracker3D/spatrack_modules/alignment.py:31
↓ 2 callersMethodtime
(self)
oneposeviagen/SpaTrackerV2/models/SpaTrackV2/models/tracker3D/spatrack_modules/tools.py:184
↓ 2 callersMethodto_device
(self, s='cuda:0')
oneposeviagen/fpose/fpose/estimater.py:88
↓ 2 callersFunctionto_homogeneous
(points)
oneposeviagen/locate/models/utils.py:348
↓ 2 callersMethodto_trimesh
Convert the mesh to a trimesh.Trimesh object. Args: transform_pose (bool): If True, transform the vertices to change coor
oneposeviagen/trellis/trellis/representations/mesh/cube2mesh.py:74
↓ 2 callersMethodtrack_one
(self, rgb, depth, K, iteration, extra={})
oneposeviagen/fpose/fpose/estimater.py:250
↓ 2 callersMethodtrack_step
( self, frame_idx, is_init_cond_frame, current_vision_feats, current_v
oneposeviagen/SAM2-in-video/sam2/modeling/sam2_base.py:704
↓ 2 callersMethodtrain
(self)
oneposeviagen/fpose/fpose/bundlesdf/nerf_runner.py:683
↓ 2 callersMethodtransform_batch
Transform the batch before feeding to the network !NOTE the H_ori, W_ori could be different at test time from the training data, and needs to be s
oneposeviagen/fpose/fpose/learning/datasets/h5_dataset.py:118
↓ 2 callersMethodtransform_depth_to_xyzmap
(self, batch:BatchPoseData, H_ori, W_ori, bound=1)
oneposeviagen/fpose/fpose/learning/datasets/h5_dataset.py:79
↓ 2 callersFunctionuncrop_boxes_xyxy
(boxes: torch.Tensor, crop_box: List[int])
oneposeviagen/SAM2-in-video/sam2/utils/amg.py:239
↓ 2 callersFunctionunpatchify
Unpatchify a tensor. Args: x (torch.Tensor): (N, C, *spatial) tensor patch_size (int): Patch size
oneposeviagen/Amodal3R/amodal3r/modules/spatial.py:34
↓ 2 callersMethodupdate
(self, value, n=1)
oneposeviagen/Amodal3R/dit/utils.py:263
↓ 2 callersFunctionvis_pcd
args: rgbs: [S C H W] R: [S 3 3] T: [S 3] xy_depth: [S H W 3] focal_length: [S] pick_idx: list of
oneposeviagen/SpaTrackerV2/models/SpaTrackV2/models/utils.py:816
↓ 2 callersMethodvis_results
(self, output, batch, prex)
oneposeviagen/Amodal3R/lightning/system.py:61
↓ 2 callersMethodweighted_scaled_dot_product_attention
(self, q, k, v, mask_weight, eps=1e-6)
oneposeviagen/Amodal3R/amodal3r/modules/attention/modules.py:245
↓ 2 callersFunctionz_order_decode
(code: torch.Tensor, depth)
oneposeviagen/Amodal3R/extensions/vox2seq/vox2seq/pytorch/default.py:48
↓ 1 callersFunctionDINOv2
(model_name)
oneposeviagen/SpaTrackerV2/models/monoD/depth_anything_v2/dinov2.py:421
↓ 1 callersMethodProcVid
split the video into several overlapped windows. args: x: the input video frames. [B, T, C, H, W] outp
oneposeviagen/SpaTrackerV2/models/SpaTrackV2/models/SpaTrack.py:98
↓ 1 callersMethod__build_patch_embed__
Build the patch embed layer. If 'conv', we use a simple PatchEmbed conv layer. Otherwise, we use a vision transformer.
oneposeviagen/SpaTrackerV2/models/SpaTrackV2/models/vggt4track/models/aggregator.py:147
↓ 1 callersMethod__enter__
(self)
oneposeviagen/SpaTrackerV2/models/SpaTrackV2/models/tracker3D/spatrack_modules/tools.py:179
↓ 1 callersMethod__exit__
(self, exc_type, exc_val, exc_tb)
oneposeviagen/SpaTrackerV2/models/moge/utils/tools.py:198
↓ 1 callersMethod__exit__
(self, exc_type, exc_val, exc_tb)
oneposeviagen/SpaTrackerV2/models/SpaTrackV2/models/tracker3D/spatrack_modules/tools.py:198
↓ 1 callersFunction__from_env
()
oneposeviagen/trellis/trellis/modules/attention/__init__.py:8
↓ 1 callersFunction__from_env
()
oneposeviagen/trellis/trellis/modules/sparse/__init__.py:7
↓ 1 callersFunction__from_env
()
oneposeviagen/trellis/trellis/modules/sparse/conv/__init__.py:6
↓ 1 callersFunction__from_env
()
oneposeviagen/Amodal3R/amodal3r/modules/attention/__init__.py:6
↓ 1 callersFunction__from_env
()
oneposeviagen/Amodal3R/amodal3r/modules/sparse/__init__.py:7
↓ 1 callersFunction__from_env
()
oneposeviagen/Amodal3R/amodal3r/modules/sparse/conv/__init__.py:6
↓ 1 callersFunction__getattr__
(name)
oneposeviagen/trellis/trellis/models/__init__.py:17
↓ 1 callersFunction__getattr__
(name)
oneposeviagen/Amodal3R/amodal3r/models/__init__.py:20
↓ 1 callersMethod__init__
(self, num_groups, num_channels, eps=1e-5, affine=True)
oneposeviagen/trellis/trellis/modules/sparse/norm.py:15
↓ 1 callersMethod__init__
(self, dim: int, heads: int)
oneposeviagen/trellis/trellis/modules/sparse/attention/modules.py:13
↓ 1 callersMethod__init__
(self, in_channels, out_channels, kernel_size, stride=1, dilation=1, bias=True, indice_key=None)
oneposeviagen/trellis/trellis/modules/sparse/conv/conv_torchsparse.py:7
↓ 1 callersMethod__init__
(self, in_channels, out_channels, kernel_size, stride=1, dilation=1, padding=None, bias=True, indice_key=None)
oneposeviagen/trellis/trellis/modules/sparse/conv/conv_spconv.py:8
↓ 1 callersMethod__init__
( self, channels: int, num_heads: int, mlp_ratio: float = 4.0, attn_mo
oneposeviagen/trellis/trellis/modules/sparse/transformer/modulated.py:14
← previousnext →501–600 of 3,004, ranked by callers