MCPcopy Create free account

hub / github.com/andrewsonga/generative_view_stitching / functions

Functions993 in github.com/andrewsonga/generative_view_stitching

↓ 1 callersMethod__init__
( self, *, in_channels, out_channels=None, conv_shortcut=False,
algorithms/vae/common/modules/resnet.py:9
↓ 1 callersMethod__init__
( self, disc_start, logvar_init=0.0, kl_weight=1.0, pixelloss_weight=1
algorithms/vae/common/losses/perceptual_loss.py:43
↓ 1 callersMethod__init__
(self, cfg: DictConfig)
algorithms/dfot/diffusion/continuous_diffusion.py:53
↓ 1 callersMethod__init__
Args: num_patches: Number of patches in the image, None for 1D inputs. max_temporal_length: Maximum length of the tem
algorithms/dfot/backbones/dit/dit_base.py:38
↓ 1 callersMethod__len__
(self)
datasets/video/base_video.py:511
↓ 1 callersMethod_add_segment
( self, hist_segment_idx: int, gen_segment_idx: int, noise_levels_start: Tuple
algorithms/dfot/history_guidance.py:237
↓ 1 callersMethod_augment
( self, video: torch.Tensor, cond: torch.Tensor, latent: Optional[torch.Tensor
datasets/video/realestate10k.py:324
↓ 1 callersMethod_augment
( self, video: torch.Tensor, cond: torch.Tensor, latent: Optional[torch.Tensor
datasets/video/realestate10k.py:929
↓ 1 callersMethod_augment_dataset
Augment the dataset (corresponds to metadata) with the given augment function Args: metadata: list of video metadata - s
datasets/video/base_video.py:151
↓ 1 callersMethod_build_buffer
(self)
algorithms/dfot/diffusion/discrete_diffusion.py:84
↓ 1 callersMethod_build_data_augmentation
Build a data augmentation (composed of augment_fn and augment_msg) that will be applied to the dataset if None, no data augmentation
datasets/video/base_video.py:178
↓ 1 callersMethod_build_dataset
(self, split: str)
experiments/data_modules/base_data_module.py:16
↓ 1 callersMethod_build_download_plan
Builds a download plan for the specified split. Returns a dictionary with the following structure: { yout
datasets/video/realestate10k.py:147
↓ 1 callersMethod_build_external_cond_embedding
(self)
algorithms/dfot/backbones/base_backbone.py:36
↓ 1 callersMethod_build_model
Create all pytorch nn.Modules here.
algorithms/common/base_pytorch_algo.py:31
↓ 1 callersMethod_build_model
(self)
algorithms/dfot/diffusion/discrete_diffusion.py:62
↓ 1 callersMethod_calc_acceleration
(velocity: Tensor)
algorithms/common/metrics/video/models/motion_extractor.py:76
↓ 1 callersMethod_calc_velocity
(trajectories: Tensor)
algorithms/common/metrics/video/models/motion_extractor.py:66
↓ 1 callersMethod_center_crop
( cls, images: torch.Tensor, # (*batch, c, h, w), shape: tuple[int, int], )
datasets/video/utils/transform.py:40
↓ 1 callersMethod_check_args
(num_patches: Optional[int], variant: Variant, pos_emb_type: PosEmb)
algorithms/dfot/backbones/dit/dit_base.py:175
↓ 1 callersMethod_check_attributes
Check if the attributes are valid.
algorithms/dfot/history_guidance.py:624
↓ 1 callersMethod_check_cfg
Check if the config is valid
algorithms/dfot/dfot_video_pose.py:24
↓ 1 callersMethod_check_input
(fake: Tensor, real: Tensor)
algorithms/common/metrics/video/base_fid.py:75
↓ 1 callersMethod_checkpointed_forward
( module: nn.Module, *args, use_checkpointing: bool = False )
algorithms/dfot/backbones/u_vit/u_vit3d.py:241
↓ 1 callersMethod_compile_checkpoint
Converts the state_dict to the format expected by the compiled model.
algorithms/dfot/dfot_video.py:1645
↓ 1 callersMethod_compute_masked_average_depth
Compute the average depth within the masked region.
algorithms/common/metrics/video/depth_collision.py:176
↓ 1 callersMethod_compute_warmup
(self)
algorithms/vae/video_vae/trainer.py:263
↓ 1 callersMethod_create_center_crop_mask
Create binary mask for center crop of the full frame. Args: H: Frame height W: Frame width Returns:
algorithms/common/metrics/video/depth_collision.py:151
↓ 1 callersMethod_decode
(self, z: torch.Tensor)
algorithms/vae/video_vae/model.py:449
↓ 1 callersFunction_dict_to_str
Convert a dictionary to a string without quotes.
utils/hydra_utils.py:6
↓ 1 callersMethod_download_videos
(self, split: SPLIT)
datasets/video/kinetics_600.py:104
↓ 1 callersMethod_download_videos
NOTE: The RealEstate10k dataset is a collection of YouTube videos, and downloading them should be done with caution to ensure that the datase
datasets/video/realestate10k.py:91
↓ 1 callersMethod_ema_initialized
(self, trainer: Trainer)
utils/lightning_utils.py:116
↓ 1 callersMethod_encode
(self, x: torch.Tensor)
algorithms/vae/video_vae/model.py:408
↓ 1 callersMethod_encode
(self, x: Tensor, shape: str = "b t c h w")
algorithms/dfot/dfot_video.py:1597
↓ 1 callersMethod_encode_videos
(self, video: torch.Tensor)
algorithms/vae/image_vae/preprocessor.py:95
↓ 1 callersMethod_extend
(self, a: torch.Tensor, x: torch.Tensor)
algorithms/dfot/history_guidance.py:1019
↓ 1 callersMethod_extend
(self, a: torch.Tensor, x: torch.Tensor)
algorithms/dfot/history_guidance.py:1143
↓ 1 callersMethod_from_pretrained_custom
(cls, path: str)
algorithms/vae/image_vae/trainer.py:307
↓ 1 callersMethod_from_pretrained_diffuser
(cls, path: str, **kwargs)
algorithms/vae/image_vae/trainer.py:332
↓ 1 callersMethod_generate_pyramid_scheduling_matrix
( self, horizon: int, uncertainty_scale: float = None, repeat_factor: int = 1,
algorithms/dfot/dfot_video.py:1095
↓ 1 callersMethod_generate_trapezoid_scheduling_matrix
( self, horizon: int, uncertainty_scale: float = None, repeat_factor: int = 1,
algorithms/dfot/dfot_video.py:1125
↓ 1 callersMethod_get_angle
Given a video metadata for a RealEstate10K scene, compute the maximum angle (degrees) of rotation of the camera within the video.
datasets/video/realestate10k_ood.py:29
↓ 1 callersMethod_get_coords
(self)
algorithms/common/metrics/video/models/motion_extractor.py:37
↓ 1 callersMethod_get_flow
Computes the optical flow between the corresponding frames of two video batches.
algorithms/common/metrics/video/vbench/dynamic_degree.py:29
↓ 1 callersMethod_get_num_workers
(num_workers: int)
experiments/data_modules/base_data_module.py:29
↓ 1 callersMethod_get_score
Computes a static score given the optical flow. Args: flow: Optical flow of shape (B, 2, H, W). Returns:
algorithms/common/metrics/video/vbench/dynamic_degree.py:41
↓ 1 callersMethod_get_shuffle
(dataset: torch.utils.data.Dataset, default: bool)
experiments/data_modules/base_data_module.py:25
↓ 1 callersMethod_get_training_noise_levels
Generate random noise levels for training.
algorithms/dfot/dfot_video.py:929
↓ 1 callersMethod_get_velocities_and_accelerations
( self, video: Tensor )
algorithms/common/metrics/video/models/motion_extractor.py:89
↓ 1 callersMethod_init_depth_model
Initialize Video Depth Anything model.
algorithms/common/metrics/video/depth_collision.py:94
↓ 1 callersMethod_init_weights
(self, init_method)
algorithms/vae/common/modules/conv.py:71
↓ 1 callersMethod_interpolate
Interpolate the corresponding frames of videos1 and videos2.
algorithms/common/metrics/video/vbench/motion_smoothness.py:26
↓ 1 callersMethod_interpolate_videos
A general method for frame interpolation. Given a video of any length > 2, when the left and right key frames are known, it (iteratively, if
algorithms/dfot/dfot_video.py:609
↓ 1 callersMethod_load_ema_weights_to_state_dict
Load EMA weights to state dict.
algorithms/common/base_pytorch_algo.py:104
↓ 1 callersMethod_log_miscellany
Log miscallany during validation/test step.
algorithms/dfot/dfot_video.py:844
↓ 1 callersMethod_log_videos
Log videos during validation/test step.
algorithms/dfot/dfot_video.py:794
↓ 1 callersMethod_n_tokens_to_n_frames
Converts the number of tokens to the number of frames.
algorithms/dfot/dfot_video.py:225
↓ 1 callersMethod_norm
Apply the RMSNorm normalization to the input tensor. Args: x (torch.Tensor): The input tensor. Returns:
algorithms/dfot/backbones/modules/normalization.py:28
↓ 1 callersMethod_normalize_x
(self, xs)
algorithms/dfot/dfot_video.py:1615
↓ 1 callersMethod_predict_sequence
Predict a sequence given context tokens at the beginning, using sliding window if necessary. Args ---- context: torch
algorithms/dfot/dfot_video.py:1164
↓ 1 callersMethod_preprocess_videos
Preprocesses videos to {self.resolution}x{self.resolution} resolution
datasets/video/kinetics_600.py:187
↓ 1 callersMethod_preprocess_videos
(self, split: SPLIT, plan: DownloadPlan)
datasets/video/realestate10k.py:119
↓ 1 callersMethod_process_external_cond
Converts the raw camera poses to concat-flattened intrinsics and extrinsics. Args: external_cond (torch.Tensor): Raw came
datasets/video/realestate10k.py:996
↓ 1 callersMethod_randomly_crop_video
Randomly crop the video to a random temporal length, if not provided. Same length across all GPUs.
algorithms/vae/video_vae/trainer.py:284
↓ 1 callersFunction_read_frame
(video_path: Path, timestamp: str)
datasets/video/realestate10k.py:1058
↓ 1 callersMethod_read_txt_file
Reads a txt file containing a video path, a list of timestamps, and a tensor of camera poses.
datasets/video/realestate10k.py:176
↓ 1 callersMethod_read_video_tensor
Convert video tensor to list of numpy frames. Args: video_tensor: Tensor of shape (T, C, H, W) or (B, T, C, H, W), range
algorithms/common/metrics/video/depth_collision.py:183
↓ 1 callersMethod_rearrange_and_add_pos_emb_if_transformer
Rearrange input tensor to be compatible with transformer blocks, if necessary. Args: x: Input tensor of shape (B * T, C,
algorithms/dfot/backbones/u_vit/u_vit3d.py:202
↓ 1 callersMethod_rearrange_and_normalize
(self, videos: torch.Tensor)
algorithms/vae/image_vae/preprocessor.py:104
↓ 1 callersMethod_rearrange_and_normalize
(self, x: torch.Tensor)
algorithms/vae/video_vae/trainer.py:276
↓ 1 callersMethod_rearrange_and_unnormalize
( self, batch: torch.Tensor, batch_size: int )
algorithms/vae/image_vae/trainer.py:255
↓ 1 callersMethod_register_if_not_exists
(self, model_type: VideoMetricModelType)
algorithms/common/metrics/video/shared_registry.py:105
↓ 1 callersMethod_rescale
( cls, image: torch.Tensor, # (c, h, w), shape: tuple[int, int], )
datasets/video/utils/transform.py:25
↓ 1 callersFunction_rescale_and_crop
(image: torch.Tensor)
datasets/video/utils/transform.py:109
↓ 1 callersMethod_rescale_and_crop
Rescale and crop the images to the specified shape. Args: images (torch.Tensor): images tensor of shape (*batch, c, h, w)
datasets/video/utils/transform.py:58
↓ 1 callersMethod_reweight_loss
(self, loss, weight=None)
algorithms/dfot/dfot_video.py:1019
↓ 1 callersMethod_run_level_blocks
Run the blocks (except up/downsampling blocks) for a given level. Gradient checkpointing is used optionally, with self.checkpoints[i_
algorithms/dfot/backbones/u_vit/u_vit3d.py:248
↓ 1 callersMethod_sample_all_videos
( self, batch, batch_idx, namespace="validation" )
algorithms/dfot/dfot_video.py:503
↓ 1 callersMethod_sample_sequence
The unified sampling method, with length up to maximum token size. context of length can be provided along with a mask to achieve con
algorithms/dfot/dfot_rag_video_pose.py:337
↓ 1 callersMethod_should_download
Check if the dataset should be downloaded
datasets/video/base_video.py:66
↓ 1 callersMethod_should_update_at_step
(self)
utils/lightning_utils.py:286
↓ 1 callersFunction_timestamp_to_str
(timestamp: int)
datasets/video/realestate10k.py:1020
↓ 1 callersMethod_track_keypoints
(self, video_segment: Tensor)
algorithms/common/metrics/video/models/motion_extractor.py:53
↓ 1 callersMethod_uncompile_checkpoint
Converts the state_dict if self.diffusion_model is compiled, to uncompiled.
algorithms/dfot/dfot_video.py:1637
↓ 1 callersMethod_unrearrange_if_transformer
Rearrange input tensor back to its original shape, if necessary. Args: x: Input tensor of shape (B, T * H * W, C).
algorithms/dfot/backbones/u_vit/u_vit3d.py:224
↓ 1 callersMethod_update
Note: FVD, IS, REAL_IS: (B, C) (I3D features) FVMD: (B, T, C, H, W), [0, 1] FID, LPIPS, MSE, SSIM, PSNR:
algorithms/common/metrics/video/video_metric.py:302
↓ 1 callersMethod_update
Update metric states with new predictions and conditions. Args: preds: Predicted frames of shape (B, T, C, H, W)
algorithms/common/metrics/video/loop_consistency.py:103
↓ 1 callersMethod_update
Update metric states with new predictions and conditions. Args: preds: Predicted frames of shape (B, T, C, H, W)
algorithms/common/metrics/video/temporal_consistency.py:70
↓ 1 callersMethod_update_backbone_cfg
Update backbone config with camera pose conditioning
algorithms/dfot/dfot_video_pose.py:47
↓ 1 callersMethod_update_metrics
Update all metrics during validation/test step.
algorithms/dfot/dfot_video.py:770
↓ 1 callersMethodadd_segment
( self, hist_segment_idx: int, noise_levels_start: Tuple[float], noise_levels_
algorithms/dfot/history_guidance.py:219
↓ 1 callersMethodare_poses_close
( self, extrinsics1: Float[Tensor, "... t i j"], extrinsics2: Float[Tensor, "... t i j
datasets/video/realestate10k.py:680
↓ 1 callersMethodaugment_dataset
Augment the dataset
datasets/video/base_video.py:142
↓ 1 callersFunctionbilinear_sampler
Wrapper for grid_sample, uses pixel coordinates
algorithms/common/metrics/video/models/pips2.py:393
↓ 1 callersFunctionbilinear_sampler
Wrapper for grid_sample, uses pixel coordinates
algorithms/common/metrics/video/models/raft/utils.py:69
↓ 1 callersFunctionbroadcast_from_zero
Broadcasts the result of func() from rank 0 to all other processes. If distributed is not initialized, returns the result of func() directly.
utils/distributed_utils.py:20
↓ 1 callersFunctionbuild_experiment
Build an experiment instance based on registry :param cfg: configuration file :param logger: optional logger for the experiment :para
experiments/__init__.py:18
↓ 1 callersMethodbuild_metadata
Build metadata for the dataset and save it in metadata_dir This may vary depending on the dataset. Default: ```
datasets/video/base_video.py:79
↓ 1 callersMethodbuild_transform
Build a transform that will be applied to each video frame. (e.g. resize, center crop)
datasets/video/base_video.py:206
← previousnext →201–300 of 993, ranked by callers