MCPcopy Create free account

hub / github.com/cvlab-kaist/VideoMaMa / functions

Functions168 in github.com/cvlab-kaist/VideoMaMa

Method__init__
( self, sample_size: Optional[int] = None, in_channels: int = 8, out_channels:
src/unet_spatio_temporal_condition.py:576
Method__init__
Initialize SAM2 video tracker Args: checkpoint_path: Path to SAM2 checkpoint config_file: Path to SA
demo/sam2_wrapper.py:22
Method__init__
Initialize SAM2 video tracker Args: checkpoint_path: Path to SAM2 checkpoint config_file: Path to SA
demo/sam2_wrapper_hf.py:36
Method__init__
Initialize SAM controller Args: SAM_checkpoint: Path to SAM2 checkpoint model_type: SAM2 model confi
demo/tools/interact_tools.py:26
Method__init__
Initialize SAM2 segmenter Args: SAM_checkpoint: Path to SAM2 checkpoint model_type: SAM2 model confi
demo/tools/base_segmenter.py:15
Method__len__
Returns the number of videos to generate in one epoch.
dataloader/synthetic_on_the_fly.py:157
Method__len__
(self)
dataloader/vos.py:61
Method__len__
(self)
dataloader/synthetic.py:111
Method_compute_padding
(kernel_size)
pipeline_svd_mask.py:991
Method_encode_image_vae
(self, image: torch.Tensor, device: Union[str, torch.device])
pipeline_svd_mask.py:711
Method_encode_vae_image
( self, image: torch.Tensor, device: Union[str, torch.device],
pipeline_svd_mask.py:137
Method_encode_vae_image
( self, image: torch.Tensor, device: Union[str, torch.device],
pipeline_svd_mask.py:458
Method_filter2d
(input_tensor, kernel)
pipeline_svd_mask.py:1002
Method_gaussian
(window_size, sigma)
pipeline_svd_mask.py:1015
Method_gaussian_blur2d
(input_tensor, kernel_size, sigma)
pipeline_svd_mask.py:1025
Method_set_gradient_checkpointing
(self, module, value=False)
src/unet_spatio_temporal_condition.py:325
Method_set_gradient_checkpointing
(self, module, value=False)
src/unet_spatio_temporal_condition.py:703
Functionall_mask
(mask)
inference_onestep_folder.py:214
Functionall_mask
(mask)
dataloader/augmentations.py:267
Methodattn_processors
r""" Returns: `dict` of attention processors: A dictionary containing all attention processors used in the model with
src/unet_spatio_temporal_condition.py:251
Methodattn_processors
(self)
src/unet_spatio_temporal_condition.py:672
Functionaugment_to_polygon_preserve_all_parts
Converts all parts of a mask to simplified polygons, preserving all disconnected components. The level of simplification is controlled by
dataloader/augmentations.py:154
Functionclear_clicks
Clear all clicks and reset to original first frame
demo/app.py:243
Functiondilate_mask
(mask)
inference_onestep_folder.py:223
Functiondilate_mask
(mask)
dataloader/augmentations.py:276
Methodenable_forward_chunking
Sets the attention processor to use [feed forward chunking](https://huggingface.co/blog/reformer#2-chunked-feed-forward-layers).
src/unet_spatio_temporal_condition.py:330
Methodenable_forward_chunking
(self, chunk_size: Optional[int] = None, dim: int = 0)
src/unet_spatio_temporal_condition.py:706
Functionerode_mask
(mask)
inference_onestep_folder.py:217
Functionerode_mask
(mask)
dataloader/augmentations.py:270
Functionexport_to_gif
Export a list of frames to a GIF. Args: - frames (list): List of frames (as numpy arrays or PIL Image objects). - output_gif_path (s
train.py:245
Methodfirst_frame_click
Generate mask from clicks on first frame Args: image: np.ndarray, (H, W, 3), RGB image points: np.nd
demo/tools/interact_tools.py:38
Methodfn_recursive_add_processors
( name: str, module: torch.nn.Module, processors: Dict[str, AttentionProce
src/unet_spatio_temporal_condition.py:260
Methodfn_recursive_add_processors
(name: str, module: torch.nn.Module, processors: Dict[str, AttentionProcessor])
src/unet_spatio_temporal_condition.py:674
Methodfn_recursive_attn_processor
(name: str, module: torch.nn.Module, processor)
src/unet_spatio_temporal_condition.py:299
Methodfn_recursive_attn_processor
(name: str, module: torch.nn.Module, processor)
src/unet_spatio_temporal_condition.py:687
Methodfn_recursive_feed_forward
(module: torch.nn.Module, chunk_size: int, dim: int)
src/unet_spatio_temporal_condition.py:349
Methodfn_recursive_feed_forward
(module: torch.nn.Module, chunk_size: int, dim: int)
src/unet_spatio_temporal_condition.py:710
Methodforward
(self, x)
train.py:111
Methodforward
(self, input, target, weight=None)
src/matting_loss.py:83
Methodforward
(self, logit, label, mask=None)
src/matting_loss.py:158
Methodforward
r""" The [`UNetSpatioTemporalConditionModel`] forward method. Args: sample (`torch.Tensor`): The noisy in
src/unet_spatio_temporal_condition.py:359
Methodforward
( self, sample: torch.Tensor, timestep: Union[torch.Tensor, float, int], encod
src/unet_spatio_temporal_condition.py:718
Functiongenerate_video
Generates a video by layering foregrounds over a background.
data_pipeline/generate_synthetic.py:31
Methodget_first_frame_mask
Get mask for first frame only (for preview) Args: frame: np.ndarray, (H, W, 3), uint8 RGB frame poin
demo/sam2_wrapper_hf.py:119
Functionget_prompt
Convert click input to prompt format Args: click_state: [[points], [labels]] click_input: JSON string "[[x, y, label]]"
demo/app.py:106
Methodhook_fn
(self, module, input, output)
train.py:91
Functionlatent_to_tensor
(latents, vae, num_frames, decode_chunk_size=8)
train.py:278
Functionload_model_hook
(models, input_dir)
train.py:934
Functionload_sam2_tracker
Load SAM2 video tracker with pretrained weights Args: checkpoint_path: Path to SAM2 checkpoint (if None, uses default location)
demo/sam2_wrapper_hf.py:169
Functionload_video
Load video and extract first frame for mask generation
demo/app.py:131
Functionload_videomama_pipeline
Load VideoMaMa pipeline with pretrained weights Args: base_model_path: Path to SVD base model (if None, uses default) un
demo/videomama_wrapper_hf.py:65
Functionnone_mask
(mask)
inference_onestep_folder.py:211
Functionnone_mask
(mask)
dataloader/augmentations.py:264
Functionocclude_mask
(mask)
inference_onestep_folder.py:188
Functionocclude_mask
(mask)
dataloader/augmentations.py:241
Methodprepare_latents
( self, batch_size: int, num_frames: int, height: int,
pipeline_svd_mask.py:512
Functionpropagate_masks
Propagate first frame mask through entire video using SAM2
demo/app.py:255
Functionrand_log_normal
Draws samples from an lognormal distribution.
train.py:118
Methodreset_image
Reset the current image
demo/tools/base_segmenter.py:41
Functionrestart
Reset all states
demo/app.py:410
Functionrun_videomama_with_sam2
Run SAM2 propagation and VideoMaMa inference together
demo/app.py:282
Functionsam_refine
Add click and update mask on first frame Args: video_state: Dictionary with video data point_prompt: "Positive" or "Nega
demo/app.py:167
Functionsave_model_hook
(models, weights, output_dir)
train.py:917
Methodset_default_attn_processor
Disables custom attention processors and sets the default attention implementation.
src/unet_spatio_temporal_condition.py:312
Methodset_default_attn_processor
(self)
src/unet_spatio_temporal_condition.py:697
Methodset_image
Set the current image for segmentation
demo/tools/base_segmenter.py:37
Methodtrack_video
Track object through video using SAM2 Args: frames: List of numpy arrays, [(H,W,3)]*n, uint8 RGB frames
demo/sam2_wrapper_hf.py:53
Functionvideomama
Run VideoMaMa inference on video frames with mask conditioning Args: pipeline: VideoInferencePipeline instance frames_np
demo/videomama_wrapper_hf.py:22
← previous101–168 of 168, ranked by callers