MCPcopy Create free account

hub / github.com/UVA-Computer-Vision-Lab/FrameINO / functions

Functions1,469 in github.com/UVA-Computer-Vision-Lab/FrameINO

Functionget_2d_rotary_pos_embed
RoPE for image tokens with 2d structure. Args: embed_dim: (`int`): The embedding dimension size crops_coords (`Tuple[int]`)
architecture/embeddings.py:1008
Functionget_2d_rotary_pos_embed_lumina
Get 2D RoPE from grid. Args: embed_dim: (`int`): The embedding dimension size, corresponding to hidden_size_head. grid (`np.
architecture/embeddings.py:1120
Functionget_2d_sincos_pos_embed
grid_size: int of the grid height and width return: pos_embed: [grid_size*grid_size, embed_dim] or [1+grid_size*grid_size, embed_dim] (w/
preprocess/SpaTrackV2_code/utils/embeddings.py:51
Functionget_2d_sincos_pos_embed
grid_size: int of the grid height and width return: pos_embed: [grid_size*grid_size, embed_dim] or [1+grid_size*grid_size, embed_dim] (w/
preprocess/oneformer_code/oneformer/utils/pos_embed.py:17
Functionget_3d_embedding
(xyz, C, cat_coords=True)
preprocess/SpaTrackV2_code/utils/embeddings.py:131
Functionget_3d_rotary_pos_embed_allegro
( embed_dim, crops_coords, grid_size, temporal_size, interpolation_scale: Tuple[float, flo
architecture/embeddings.py:965
Functionget_3d_sincos_pos_embed
grid_size: int of the grid height and width return: pos_embed: [grid_size*grid_size, embed_dim] or [1+grid_size*grid_size, embed_dim] (w/
preprocess/SpaTrackV2_code/utils/embeddings.py:10
Functionget_4d_embedding
(xyzw, C, cat_coords=True)
preprocess/SpaTrackV2_code/utils/embeddings.py:161
Functionget_EFP
Converting PyTorch3D cameras to extrinsics, intrinsics matrix Return extrinsics, intrinsics, focal_length, principal_point
preprocess/SpaTrackV2_code/models/utils.py:187
Methodget_bin
(frames)
preprocess/auxiliary/TransNetV2.py:301
Methodget_bin
(frames)
preprocess/auxiliary/AutoShot.py:342
Methodget_image
(self, img)
preprocess/oneformer_code/demo/visualizer.py:394
Methodget_output
Returns: output (VisImage): the image output containing the visualizations added to the image.
preprocess/oneformer_code/demo/visualizer.py:1348
Methodget_timesteps
(self, num_inference_steps, timesteps, strength, device)
pipelines/pipeline_cogvideox_i2v_motion.py:441
Methodget_timesteps
(self, num_inference_steps, timesteps, strength, device)
pipelines/pipeline_cogvideox_i2v_motion_FrameINO.py:434
Functionget_topo_mask
coords_xyz_append: [B, T, N, 3] 3d coordinates coords_2d_lift: [B*T, N] depth map replace_ratio: float, the ratio of the depth change to
preprocess/SpaTrackV2_code/models/tracker3D/spatrack_modules/utils.py:970
Functionglobal_graph_motion_average
This function will average the c2w_traj by the graph_weight
preprocess/SpaTrackV2_code/models/tracker3D/spatrack_modules/utils.py:626
Methodguidance_scale
(self)
pipelines/pipeline_wan_i2v_motion_FrameINO.py:556
Methodguidance_scale
(self)
pipelines/pipeline_wan_i2v_motion.py:512
Methodguidance_scale
(self)
pipelines/pipeline_cogvideox_i2v_motion.py:603
Methodguidance_scale
(self)
pipelines/pipeline_cogvideox_i2v_motion_FrameINO.py:587
Functionharmonic_mean
(x: torch.Tensor, w: torch.Tensor = None, dim: Union[int, torch.Size] = None, keepdim: bool = False, eps: floa
preprocess/SpaTrackV2_code/models/tracker3D/spatrack_modules/geometry_torch.py:24
Functionharmonic_mean_numpy
(x: np.ndarray, w: np.ndarray = None, axis: Union[int, Tuple[int,...]] = None, keepdims: bool = False, eps: fl
preprocess/SpaTrackV2_code/models/tracker3D/spatrack_modules/geometry_numpy.py:22
Methodhas_holes
(self)
preprocess/oneformer_code/demo/visualizer.py:124
Methodhistory
(self)
preprocess/SpaTrackV2_code/models/tracker3D/spatrack_modules/tools.py:195
Functionimport_file_as_module
(file_path: Union[str, os.PathLike], module_name: str)
preprocess/SpaTrackV2_code/models/tracker3D/spatrack_modules/tools.py:285
Functioninference
(inference_canvas, visual_canvas, text_prompt, traj_lists, main_reference_img, resized_height
app.py:522
Functioninference_on_dataset
Run model on the data_loader and evaluate the metrics with evaluator. Also benchmark the inference speed of `model.__call__` accurately.
preprocess/oneformer_code/oneformer/evaluation/evaluator.py:107
Methodinit_pointmap
(self, points_map)
preprocess/SpaTrackV2_code/models/tracker3D/spatrack_modules/pointmap_updator.py:82
Functioninit_pose_enc
Initialize the pose encoding tensor args: B: batch size S: number of frames pose_encoding_type: the type of pose enco
preprocess/SpaTrackV2_code/models/utils.py:362
Methodinit_weights
Initialize the weights in backbone. Args: pretrained (str, optional): Path to pre-trained weights. Defaults to Non
preprocess/oneformer_code/oneformer/modeling/backbone/swin.py:636
Functioninit_weights_vit_timm
ViT weight initialization, original timm impl (for reproducibility)
preprocess/SpaTrackV2_code/models/vggt4track/layers/vision_transformer.py:343
Methodinstance_inference
(self, mask_cls, mask_pred)
preprocess/oneformer_code/oneformer/oneformer_model.py:436
Functioninterpolate_pos_embed
(model, checkpoint_model, pos_embed_key)
preprocess/oneformer_code/oneformer/utils/pos_embed.py:72
Functioninterpolate_pos_embed_online
( pos_embed, orig_size: Tuple[int], new_size: Tuple[int], num_extra_tokens: int )
preprocess/oneformer_code/oneformer/utils/pos_embed.py:108
Methodinterrupt
(self)
pipelines/pipeline_wan_i2v_motion_FrameINO.py:572
Methodinterrupt
(self)
pipelines/pipeline_wan_i2v_motion.py:528
Methodinterrupt
(self)
pipelines/pipeline_cogvideox_i2v_motion.py:615
Methodinterrupt
(self)
pipelines/pipeline_cogvideox_i2v_motion_FrameINO.py:599
Functionintrinsics_to_fov
Returns field of view in radians from normalized intrinsics matrix. ### Parameters: - intrinsics: torch.Tensor of shape (..., 3, 3)
preprocess/SpaTrackV2_code/models/tracker3D/spatrack_modules/geometry_torch.py:75
Functionintrinsics_to_fov_numpy
(intrinsics: np.ndarray)
preprocess/SpaTrackV2_code/models/tracker3D/spatrack_modules/geometry_numpy.py:53
Functioninverse_sigmoid
(x, eps=1e-3)
preprocess/oneformer_code/oneformer/utils/misc.py:18
Functionkey_average
Returns a dictionary with the average value of each key in the input list of dictionaries.
preprocess/SpaTrackV2_code/models/tracker3D/spatrack_modules/tools.py:65
Functionlinear_decay
(initial_value, final_value, total_steps, current_step)
train_code/train_wan_motion_FrameINO.py:568
Functionlinear_decay
(initial_value, final_value, total_steps, current_step)
train_code/train_wan_motion.py:549
Functionload_and_preprocess_images
A quick start function to load and preprocess images for model input. This assumes the images should have the same shape for easier batching,
preprocess/SpaTrackV2_code/models/vggt4track/utils/load_fn.py:12
Functionload_model_hook
(models, input_dir)
train_code/train_wan_motion_FrameINO.py:883
Functionload_model_hook
(models, input_dir)
train_code/train_cogvideox_motion_FrameINO.py:760
Functionload_model_hook
(models, input_dir)
train_code/train_cogvideox_motion.py:731
Functionload_model_hook
(models, input_dir)
train_code/train_wan_motion.py:828
Methodloss_contrastive
(self, outputs, targets, indices, num_masks)
preprocess/oneformer_code/oneformer/modeling/criterion.py:145
Functionloss_fn
Args: poses_preds: list of predicted poses poses_gt: ground truth poses inv_depth_preds: list of predicted inverse depth
preprocess/SpaTrackV2_code/models/utils.py:667
Methodloss_labels
Classification loss (NLL) targets dicts must contain the key "labels" containing a tensor of dim [nb_target_boxes]
preprocess/oneformer_code/oneformer/modeling/criterion.py:172
Methodloss_masks
Compute the losses related to the masks: the focal loss and the dice loss. targets dicts must contain the key "masks" containing a tensor of d
preprocess/oneformer_code/oneformer/modeling/criterion.py:197
Methodmake_paras_trainable
(self, mode: str = 'fix', paras_name: List[str] = [])
preprocess/SpaTrackV2_code/models/SpaTrack.py:80
Methodmask
(self)
preprocess/oneformer_code/demo/visualizer.py:112
Functionmask_aware_area_resize_numpy
Resize 2D map by nearest interpolation. Return the nearest neighbor index and mask of the resized map. ### Parameters - `image`: Input 2
preprocess/SpaTrackV2_code/models/tracker3D/spatrack_modules/geometry_numpy.py:216
Functionmasked_mean
(data: torch.Tensor, mask: torch.Tensor, dim: List[int])
preprocess/SpaTrackV2_code/models/tracker3D/co_tracker/utils.py:854
Functionmasked_mean_var
(data: torch.Tensor, mask: torch.Tensor, dim: List[int])
preprocess/SpaTrackV2_code/models/tracker3D/co_tracker/utils.py:865
Functionmedian_loss
(prediction, target, mask, Bs)
preprocess/SpaTrackV2_code/models/utils.py:557
Functionmeshgrid2d
(B, Y, X, stack=False, norm=False, device="cuda")
preprocess/SpaTrackV2_code/utils/model_utils.py:137
Functionms_deform_attn_backward
preprocess/oneformer_code/oneformer/modeling/pixel_decoder/ops/src/ms_deform_attn.h:46
Functionms_deform_attn_cpu_backward
preprocess/oneformer_code/oneformer/modeling/pixel_decoder/ops/src/cpu/ms_deform_attn_cpu.cpp:34
Functionms_deform_attn_cpu_forward
preprocess/oneformer_code/oneformer/modeling/pixel_decoder/ops/src/cpu/ms_deform_attn_cpu.cpp:22
Functionms_deform_attn_forward
preprocess/oneformer_code/oneformer/modeling/pixel_decoder/ops/src/ms_deform_attn.h:25
Methodmultiply_adds
(self)
preprocess/auxiliary/AutoShot.py:31
Functionmultithead_execute
(inputs: List[Any], num_workers: int, pbar = None)
preprocess/SpaTrackV2_code/models/tracker3D/spatrack_modules/tools.py:224
Functionnearest_sample2d
(im, x, y, return_inbounds=False)
preprocess/SpaTrackV2_code/utils/model_utils.py:15
Functionnorm3d
Faster `np.linalg.norm(x, axis=-1)` for 3D vectors
preprocess/SpaTrackV2_code/models/tracker3D/spatrack_modules/geometry_numpy.py:286
Functionnormalize
(d)
preprocess/SpaTrackV2_code/utils/model_utils.py:126
Functionnormalize_cameras
Normalizes cameras such that (1) the optical axes point to the origin and the average distance to the origin is 1 (2) the first camera is
preprocess/SpaTrackV2_code/models/camera_transform.py:68
Methodnum_timesteps
(self)
pipelines/pipeline_wan_i2v_motion_FrameINO.py:564
Methodnum_timesteps
(self)
pipelines/pipeline_wan_i2v_motion.py:520
Methodnum_timesteps
(self)
pipelines/pipeline_cogvideox_i2v_motion.py:607
Methodnum_timesteps
(self)
pipelines/pipeline_cogvideox_i2v_motion_FrameINO.py:591
Functionon_example_click
( input_image, resized_height, resized_width, top_left_height
app.py:246
Methodoutput_shape
(self)
preprocess/oneformer_code/oneformer/modeling/backbone/swin.py:761
Methodpanoptic_inference
(self, mask_cls, mask_pred)
preprocess/oneformer_code/oneformer/oneformer_model.py:378
Methodparams
(self)
preprocess/auxiliary/AutoShot.py:36
Functionparse
(x)
preprocess/SpaTrackV2_code/models/blocks.py:22
Functionparse
(x)
preprocess/SpaTrackV2_code/models/vggt4track/heads/track_modules/modules.py:20
Functionparse
(x)
preprocess/SpaTrackV2_code/models/tracker3D/co_tracker/utils.py:276
Functionparse
(x)
preprocess/SpaTrackV2_code/models/tracker3D/delta_utils/blocks.py:23
Functionpix2cam
Args: coords: [B, T, N, 3] intr: [B, T, 3, 3]
preprocess/SpaTrackV2_code/models/tracker3D/delta_utils/blocks.py:651
Functionpoint_map_to_depth_legacy
(points: torch.Tensor)
preprocess/SpaTrackV2_code/models/tracker3D/spatrack_modules/geometry_torch.py:90
Functionpoint_map_to_depth_legacy_numpy
(points: np.ndarray)
preprocess/SpaTrackV2_code/models/tracker3D/spatrack_modules/geometry_numpy.py:59
Methodpolygons
(self)
preprocess/oneformer_code/demo/visualizer.py:118
Functionposenc
Cat x with a positional encoding of x with scales 2^[min_deg, max_deg-1]. Instead of computing [sin(x), cos(x)], we use the trig identity cos(
preprocess/SpaTrackV2_code/models/tracker3D/spatrack_modules/utils.py:229
Methodprocess
(self, inputs, outputs)
preprocess/oneformer_code/oneformer/evaluation/cityscapes_evaluation.py:64
Methodprocess
(self, inputs, outputs)
preprocess/oneformer_code/oneformer/evaluation/cityscapes_evaluation.py:146
Methodprocess
Args: inputs: the inputs to a COCO model (e.g., GeneralizedRCNN). It is a list of dict. Each dict corresponds to
preprocess/oneformer_code/oneformer/evaluation/detection_coco_evaluator.py:161
Methodprocess
Args: inputs: the inputs to a COCO model (e.g., GeneralizedRCNN). It is a list of dict. Each dict corresponds to
preprocess/oneformer_code/oneformer/evaluation/coco_evaluator.py:161
Functionprocrustes_analysis
(X0,X1,Weight)
preprocess/SpaTrackV2_code/utils/model_utils.py:272
Functionprocrustes_analysis
(X0,X1)
preprocess/SpaTrackV2_code/models/utils.py:98
Functionrandom_colors
Args: N (int): number of unique colors needed rgb (bool): whether to return RGB colors or BGR colors. maximum (int): eith
preprocess/oneformer_code/demo/colormap.py:141
Functionrandom_se3_transformation
随机生成刚体变换矩阵(SE(3) Transformation Matrix)。 Args: batch_size (int): 批大小,默认为 1。 max_rotation_angle (float): 最大旋转角度(弧度),默认 π(180°
preprocess/SpaTrackV2_code/models/tracker3D/spatrack_modules/utils.py:21
Functionread_jsonl
(file)
preprocess/SpaTrackV2_code/models/tracker3D/spatrack_modules/tools.py:116
Functionread_video_from_path
(path)
preprocess/SpaTrackV2_code/utils/visualizer.py:21
Functionrecover_focal_shift
Recover the depth map and FoV from a point map with unknown z shift and focal. Note that it assumes: - the optical center is at the cent
preprocess/SpaTrackV2_code/models/tracker3D/spatrack_modules/geometry_torch.py:115
Functionrecover_focal_shift_numpy
(points: np.ndarray, mask: np.ndarray = None, focal: float = None, downsample_size: Tuple[int, int] = (64, 64)
preprocess/SpaTrackV2_code/models/tracker3D/spatrack_modules/geometry_numpy.py:115
← previousnext →1,301–1,400 of 1,469, ranked by callers