MCPcopy Create free account

hub / github.com/andrewsonga/generative_view_stitching / functions

Functions993 in github.com/andrewsonga/generative_view_stitching

↓ 1 callersFunctioncalc_hist
Calculate the histogram for the whole video sequence Args: vectors (np.ndarray): (B, S, H, W, 2) cell_size (int): the height
algorithms/common/metrics/video/models/motion_extractor.py:213
↓ 1 callersMethodcalculate_adaptive_weight
(self, nll_loss, g_loss, last_layer=None)
algorithms/vae/common/losses/perceptual_loss.py:77
↓ 1 callersMethodcalculate_adaptive_weight
(self, nll_loss, g_adversarial_loss, last_layer)
algorithms/vae/common/losses/perceptual_loss.py:227
↓ 1 callersMethodcheck_video_vae_compatibility
Check if the configuration is compatible with VideoVAE. Currently, it is not compatible with many functionalities, due to complicated
algorithms/dfot/dfot_video.py:1748
↓ 1 callersFunctioncleanup_project
cleanup the project by applying TTL policy to the model artifacts
utils/wandb_utils.py:210
↓ 1 callersFunctioncleanup_run
cleanup the models that are not best or latest and have expired Returns: size of the deleted artifacts (in GB)
utils/wandb_utils.py:243
↓ 1 callersMethodcompute_loss_weights
( self, k: torch.Tensor, strategy: Literal["min_snr", "fused_min_snr", "uniform", "sig
algorithms/dfot/diffusion/discrete_diffusion.py:254
↓ 1 callersFunctioncoords_grid
(batch, ht, wd, device)
algorithms/common/metrics/video/models/amt/raft.py:29
↓ 1 callersMethodcorr
(fmap1, fmap2)
algorithms/common/metrics/video/models/amt/raft.py:233
↓ 1 callersMethodcorr
(fmap1, fmap2)
algorithms/common/metrics/video/models/raft/corr.py:47
↓ 1 callersFunctioncount_subcube_hist
Count the histogram for the subcube Args: vector_cell (np.ndarray): (S, H, W, 2) angle_bins (int): the number of angle bins
algorithms/common/metrics/video/models/motion_extractor.py:177
↓ 1 callersFunctioncreate_camera_path_video
Returns a video of shape [T, 3, H, W] showing the camera path being revealed over time. Each frame shows all cameras up to the current time s
utils/logging_utils.py:354
↓ 1 callersFunctioncreate_panorama_trajectory
Create a panorama rotation-only trajectory (camera rotating in place)
utils/retrieval_utils.py:1052
↓ 1 callersFunctioncut_subcube
Cut the whole video sequence into subcubes Args: vectors (np.ndarray): (B, S, H, W, 2) cell_size (int): the height and width
algorithms/common/metrics/video/models/motion_extractor.py:152
↓ 1 callersMethodddim_idx_to_noise_level
( self, indices: torch.Tensor, timestep_max: int = None, timestep_min: int = N
algorithms/dfot/diffusion/discrete_diffusion.py:364
↓ 1 callersMethodddim_sample_step
( self, x: torch.Tensor, curr_noise_level: torch.Tensor, next_noise_level: tor
algorithms/dfot/diffusion/discrete_diffusion.py:456
↓ 1 callersMethodddim_sample_step_windows_history_guidance
( self, x: torch.Tensor, curr_noise_level: torch.Tensor, next_noise_level: tor
algorithms/dfot/diffusion/discrete_diffusion.py:586
↓ 1 callersMethodddpm_sample_step
( self, x: torch.Tensor, curr_noise_level: torch.Tensor, external_cond: Option
algorithms/dfot/diffusion/discrete_diffusion.py:425
↓ 1 callersMethoddecode
(self, z)
algorithms/vae/image_vae/trainer.py:80
↓ 1 callersMethoddecode
( self, z: torch.Tensor, desired_length: Optional[int] = None )
algorithms/vae/video_vae/model.py:455
↓ 1 callersFunctiondiffuser_to_custom
Modify DiffuserImageVAE to be compatible with VAE abstract class
algorithms/vae/image_vae/trainer.py:348
↓ 1 callersFunctiondist_and_angle_between_cams
Compute the distance and angle between two sets of cameras, represented by their extrinsics.
utils/retrieval_utils.py:980
↓ 1 callersMethoddownload_dataset
Download dataset from the internet and build it in save_dir
datasets/video/base_video.py:73
↓ 1 callersFunctiondownload_model_from_url
r"""Download a file containing a pre-trained model from a URL. Supports automatic caching at torch.hub's cache directory. Adapted from `torch.hub.
algorithms/common/metrics/video/models/utils.py:9
↓ 1 callersFunctiondownload_vae_checkpoints
( cfg: DictConfig, )
utils/ckpt_utils.py:132
↓ 1 callersFunctiondraw_star
(center, radius, num_points=5, color="black")
utils/logging_utils.py:596
↓ 1 callersMethodencode
(self, x)
algorithms/vae/image_vae/trainer.py:74
↓ 1 callersMethodencode
Encode a batch of videos to a batch of DiagonalGaussianDistributions.
algorithms/vae/video_vae/model.py:414
↓ 1 callersFunctionenforce_zero_terminal_snr
enforce zero terminal SNR following https://arxiv.org/abs/2305.08891 returns betas
algorithms/dfot/diffusion/noise_schedule.py:142
↓ 1 callersFunctionestimate_latent_stats
( latent_dir: str, batch_size: int = 128, repeat: int = 5, channel_wise: bool = False, is_
algorithms/vae/estimate_latent_stats.py:9
↓ 1 callersMethodexclude_failed_videos
Exclude videos that failed to preprocess
datasets/video/kinetics_600.py:216
↓ 1 callersMethodexclude_short_videos
( self, metadata: List[Dict[str, Any]], min_frames: int )
datasets/video/realestate10k.py:400
↓ 1 callersMethodexclude_short_videos
Exclude videos that are shorter than n_frames
datasets/video/base_video.py:450
↓ 1 callersMethodexclude_videos_with_latents
( self, metadata: List[Dict[str, Any]] )
datasets/video/base_video.py:263
↓ 1 callersMethodexclude_videos_without_latents
( self, metadata: List[Dict[str, Any]] )
datasets/video/base_video.py:463
↓ 1 callersMethodexclude_videos_without_loops
( self, metadata: List[Dict[str, Any]] )
datasets/video/realestate10k.py:594
↓ 1 callersMethodexec_task
Executing a certain task specified by string. Each task should be a stage of experiment. In most computer vision / nlp applications,
experiments/base_exp.py:75
↓ 1 callersMethodextract_features
(self, x: Tensor)
algorithms/common/metrics/video/base_fid.py:71
↓ 1 callersMethodextract_features
Extract image features from the videos. Args: videos: Videos of shape (B, T, C, H, W), uint8, range [0, 255]. Ret
algorithms/common/metrics/video/vbench/cosine_similarity_dimension.py:9
↓ 1 callersMethodforward
(self, x)
algorithms/dfot/backbones/u_net/u_net_blocks.py:84
↓ 1 callersMethodfrom_config
(cls, cfg: DictConfig)
algorithms/dfot/diffusion/continuous_diffusion.py:21
↓ 1 callersMethodfrom_pretrained
Load pretrained model from path, with additional kwargs.
algorithms/vae/common/base_vae.py:45
↓ 1 callersMethodfrom_pretrained
(cls)
algorithms/common/metrics/video/models/pips2.py:612
↓ 1 callersFunctiongenerate_points_in_sphere
(n_points, radius)
utils/geometry_utils.py:332
↓ 1 callersFunctiongenerate_run_id
Generate a random 8-character alphanumeric string.
utils/ckpt_utils.py:23
↓ 1 callersFunctiongenerate_unexisting_run_id
Generate a random 8-character alphanumeric string that does not exist in the project.
utils/ckpt_utils.py:29
↓ 1 callersFunctionget_1d_sincos_pos_embed_from_grid
Args: embed_dim: Embedding dimension. pos: Position tensor of shape (...). Returns: Positional embeddings with shape
algorithms/dfot/backbones/dit/dit_base.py:375
↓ 1 callersFunctionget_ckpt_path
(name, root, check=False)
algorithms/vae/common/losses/utils.py:30
↓ 1 callersFunctionget_corners
Get the corners of the image in normalized coordinates. Returns: np.ndarray: [4, 2] - [top_left, top_right, bottom_left,
utils/geometry_utils.py:522
↓ 1 callersMethodget_freqs
(self, dim: int, seq_len: int, interpolate_factor: float = 1.0)
algorithms/dfot/backbones/modules/embeddings.py:200
↓ 1 callersFunctionget_frustums
Args: K: [B, T, 3, 3]; [fx, fy, cx, cy] R_rc: [B, T, 3, 3] T_rc: [B, T, 3] Returns: frustum: [B, T, 8, 3]
utils/logging_utils.py:334
↓ 1 callersMethodget_last_layer
(self)
algorithms/vae/video_vae/model.py:494
↓ 1 callersFunctionget_nd_sincos_pos_embed
Get n-dimensional sinusoidal positional embeddings. Args: embed_dim: Embedding dimension. shape: Shape of the input tensor.
algorithms/dfot/backbones/dit/dit_base.py:351
↓ 1 callersFunctionget_rays_from_cameras
K: [..., 3, 3] or [..., 4] Camera intrinsic matrix. uv: [..., 2] Pixel coordinates. R_wc: [..., 3, 3] Rotation mat
utils/geometry_utils.py:549
↓ 1 callersFunctionget_timestep_embedding
This matches the implementation in Denoising Diffusion Probabilistic Models: Create sinusoidal timestep embeddings. :param timesteps: a 1-D
algorithms/dfot/backbones/modules/embeddings.py:112
↓ 1 callersFunctionget_validation_metrics_for_videos
:param observation_hat: predicted observation tensor of shape (frame, batch, channel, height, width) :param observation_gt: ground-truth obse
utils/logging_utils.py:469
↓ 1 callersFunctionhas_checkpoint
Check if a run has a committed model checkpoint.
utils/ckpt_utils.py:70
↓ 1 callersMethodinit_from_ckpt
(self, path, ignore_keys=list())
algorithms/vae/image_vae/trainer.py:56
↓ 1 callersMethodinitialize_flow
Flow is represented as difference between two coordinate grids flow = coords1 - coords0
algorithms/common/metrics/video/models/raft/raft.py:58
↓ 1 callersMethodinitialize_weights
(self)
algorithms/dfot/backbones/dit/dit3d.py:77
↓ 1 callersMethodinitialize_weights
(self)
algorithms/dfot/backbones/dit/dit_blocks.py:100
↓ 1 callersMethodinitialize_weights
(self)
algorithms/dfot/backbones/dit/dit_blocks.py:130
↓ 1 callersMethodinitialize_weights
(self)
algorithms/dfot/backbones/dit/dit_blocks.py:184
↓ 1 callersMethodinitialize_weights
(self)
algorithms/dfot/backbones/dit/dit_blocks.py:227
↓ 1 callersFunctioninvert_extrinsics
Convert camera-world (cw) to world-camera (wc) coordinates. Args: R: [..., 3, 3] Rotation matrix from camera to world frame
utils/geometry_utils.py:594
↓ 1 callersFunctionis_existing_run
Check if a run exists.
utils/ckpt_utils.py:59
↓ 1 callersFunctionis_inside_fov
( points_world_frame_chunk_to_denoise: Float[ torch.Tensor, "b chunks_to_denoise chunks_candidate_
utils/geometry_utils.py:354
↓ 1 callersFunctionlabel_video_frames_float
frames: float32/float64 ndarray with shape (T, C, H, W) and values in [0, 1] returns: same shape & dtype, still in [0, 1], with frame
utils/logging_utils.py:184
↓ 1 callersMethodload_bev
( self, video_metadata: Dict[str, Any], start_frame: int, end_frame: Optional[
datasets/video/realestate10k.py:470
↓ 1 callersMethodload_from_pretrained
(self, name="vgg_lpips")
algorithms/vae/common/losses/lpips.py:26
↓ 1 callersMethodload_metadata
Load metadata from metadata_dir
datasets/video/base_video.py:188
↓ 1 callersFunctionload_pretrained_i3d
()
algorithms/common/metrics/video/models/i3d.py:7
↓ 1 callersFunctionlog_spatial_neighbors
( spatial_neighbors: Float[torch.Tensor, "num_frame_pairs 2"], xs_pred: Float[torch.Tensor, "T C H W"]
utils/logging_utils.py:173
↓ 1 callersFunctionmake_beta_schedule
( schedule: Literal["cosine", "sigmoid", "sd", "linear", "alphas_cumprod_linear"], shift: float = 1.0,
algorithms/dfot/diffusion/noise_schedule.py:6
↓ 1 callersFunctionmulti_flow_combine
A parallel implementation of multiple flow field warping comb_block: An nn.Seqential object. img shape: [b, c, h, w] flow shape: [b,
algorithms/common/metrics/video/models/amt/multi_flow.py:11
↓ 1 callersFunctionmultiply_extrinsics
( R1: Tensor, T1: Tensor, R2: Tensor, T2: Tensor )
utils/geometry_utils.py:617
↓ 1 callersMethodnormalize_by_mean
Normalizes the camera poses by the mean of all cameras, i.e. computes the relative poses w.r.t. the mean frame. The mean camera becom
utils/geometry_utils.py:146
↓ 1 callersMethodnormalize_score
Normalize the score (shape: (,)) with the min and max values.
algorithms/common/metrics/video/vbench/vbench.py:39
↓ 1 callersMethodnum_loop_closures
( self, video_metadata: Dict[str, Any] )
datasets/video/realestate10k.py:603
↓ 1 callersMethodon_before_prepare_clips
(self)
datasets/video/realestate10k.py:313
↓ 1 callersMethodon_before_prepare_clips
Additional setup before preparing clips (e.g. excluding invalid videos)
datasets/video/base_video.py:363
↓ 1 callersMethodon_validation_epoch_end
(self, namespace: str = "validation")
algorithms/vae/video_vae/trainer.py:161
↓ 1 callersMethodon_validation_epoch_end
(self, namespace="validation")
algorithms/dfot/dfot_video.py:418
↓ 1 callersMethodon_validation_epoch_start
(self)
algorithms/vae/video_vae/trainer.py:158
↓ 1 callersMethodon_validation_epoch_start
(self)
algorithms/dfot/dfot_video.py:409
↓ 1 callersFunctionoverride_backbone
Override the backbone with the specified name.
utils/hydra_utils.py:90
↓ 1 callersMethodp_mean_variance
(self, x, k, external_cond=None, external_cond_mask=None)
algorithms/dfot/diffusion/discrete_diffusion.py:247
↓ 1 callersFunctionpairwise_squared_distances_batchwise
Compute pairwise squared distances for a batch of point sets. Args: points: (B, N, D) tensor of B point sets each with N points of d
utils/geometry_utils.py:684
↓ 1 callersFunctionparse_requirements
(filename)
setup.py:4
↓ 1 callersFunctionposemb_sincos_2d_xy
( xy, C, temperature=10000, dtype=torch.float32, cat_coords=False )
algorithms/common/metrics/video/models/pips2.py:724
↓ 1 callersMethodpredict_v
(self, x_start, k, noise)
algorithms/dfot/diffusion/discrete_diffusion.py:197
↓ 1 callersMethodprepare_clips
Compute cumulative sizes for the dataset and update self.cumulative_sizes Shuffle the dataset with a fixed seed
datasets/video/base_video.py:369
↓ 1 callersFunctionproject
( v0: torch.Tensor, # [B, C, H, W] v1: torch.Tensor, # [B, C, H, W] )
utils/guidance_utils.py:12
↓ 1 callersMethodq_posterior
(self, x_start, x_k, k)
algorithms/dfot/diffusion/discrete_diffusion.py:221
↓ 1 callersMethodrays
Returns the rays for the camera poses. Args: resolution (int): The resolution of the image. Returns:
utils/geometry_utils.py:278
↓ 1 callersFunctionreduce_masked_mean
(x, mask, dim=None, keepdim=False)
algorithms/common/metrics/video/models/pips2.py:703
↓ 1 callersMethodregister_data_mean_std
Register mean and std of data as tensor buffer. Args: mean: the mean of data. std: the std of data.
algorithms/common/base_pytorch_algo.py:283
↓ 1 callersMethodregister_for_metric
(self, metric_type: VideoMetricType)
algorithms/common/metrics/video/shared_registry.py:109
↓ 1 callersMethodreplace_with_interpolation
For each sequence in the batch, replaces the invalid camera poses (mask == True) by interpolating between the nearest valid c
utils/geometry_utils.py:180
↓ 1 callersMethodreset
( self, seq_len: int, hist_indices: List[int], gen_indices: List[int],
algorithms/dfot/history_guidance.py:191
← previousnext →301–400 of 993, ranked by callers