MCPcopy Create free account

hub / github.com/andrewsonga/generative_view_stitching / functions

Functions993 in github.com/andrewsonga/generative_view_stitching

↓ 132 callersMethodcat
Concatenates a list of DiagonalGaussianDistributions along the batch dimension.
algorithms/vae/common/distribution.py:58
↓ 37 callersFunctioncyan
(x: str)
utils/print_utils.py:9
↓ 33 callersMethoditems
(self)
algorithms/common/metrics/video/video_metric.py:226
↓ 25 callersMethodpad
(self, *inputs)
algorithms/common/metrics/video/models/amt/utils.py:44
↓ 22 callersMethodjoin
(self)
utils/lightning_utils.py:350
↓ 20 callersMethodfrom_vectors
Creates a CameraPose object from the raw camera poses. Args: raw_camera_poses (torch.Tensor): The raw camera poses. Shape
utils/geometry_utils.py:106
↓ 19 callersFunctionextract
(a, t, x_shape)
algorithms/dfot/diffusion/discrete_diffusion.py:23
↓ 18 callersMethodlog
Log the history guidance visualization to wandb if logger is provided, or save the visualization as a gif otherwise.
algorithms/dfot/history_guidance.py:669
↓ 18 callersFunctionresolve_str_to_module
(name: Module, is_causal: bool)
algorithms/vae/common/modules/utils.py:34
↓ 17 callersFunctionNormalize
(in_channels, num_groups=32)
algorithms/vae/common/modules/normalize.py:4
↓ 17 callersMethodupdate
( self, preds: Float[Tensor, "B C H W"], target: Float[Tensor, "B C H W"] )
algorithms/common/metrics/video/met3r.py:66
↓ 16 callersMethodadd_shape_channels
(self, x)
algorithms/dfot/diffusion/discrete_diffusion.py:160
↓ 16 callersFunctionresize
(x, scale_factor)
algorithms/common/metrics/video/models/amt/raft.py:6
↓ 15 callersMethodkeys
(self)
algorithms/common/metrics/video/video_metric.py:223
↓ 15 callersMethodvideo_length
Return the length of the video at idx
datasets/video/base_video.py:200
↓ 14 callersMethodextrinsics
Returns the extrinsics matrix [R | T] for the camera poses. Args: flatten (bool): Whether to flatten the extrinsics matri
utils/geometry_utils.py:224
↓ 11 callersMethod__init__
( self, num_channels: int, flip_sin_to_cos: bool = True, downscale_freq_shift:
algorithms/dfot/backbones/modules/embeddings.py:13
↓ 11 callersMethod_generate_scheduling_matrix
( self, horizon: int, padding: int = 0, timestep_max: int = None, time
algorithms/dfot/dfot_video.py:1034
↓ 10 callersMethod_extend_x_dim
Extend the tensor by adding dimensions at the end to match x_stacked_shape.
algorithms/dfot/dfot_video.py:1290
↓ 9 callersMethodload_state_dict
(self, state_dict)
utils/lightning_utils.py:378
↓ 8 callersMethod__init__
(self, channels: int, emb_dim: int, dropout: float = 0.0)
algorithms/dfot/backbones/u_vit/u_vit_blocks.py:62
↓ 8 callersMethod__init__
(self, dim: int)
algorithms/dfot/backbones/u_net/u_net_blocks.py:80
↓ 8 callersMethod_filtered_items
( self, metric_types: Set[VideoMetricType], not_in: bool = False )
algorithms/common/metrics/video/video_metric.py:232
↓ 8 callersFunctionnonlinearity
(x)
algorithms/vae/common/modules/ops.py:20
↓ 8 callersMethodsubsample
Subsample the dataset with the given filter function
datasets/video/base_video.py:121
↓ 7 callersMethod_process_conditions
Post-process the conditions before feeding them to the model. For example, conditions that should be computed relatively (e.g. relati
algorithms/dfot/dfot_video.py:898
↓ 7 callersFunctionlog_video
take in video tensors in range [-1, 1] and log into wandb :param observation_gt: ground-truth observation tensor of shape (batch, frame, cha
utils/logging_utils.py:32
↓ 7 callersFunctionrandom_bool
Return True with probability p
datasets/video/utils/random.py:4
↓ 7 callersMethodvideo_metadata_to_latent_path
Convert video_path to latent_path
datasets/video/base_video.py:213
↓ 6 callersMethod__init__
(self, hidden_dim=128, input_dim=192 + 128)
algorithms/common/metrics/video/models/raft/update.py:18
↓ 6 callersMethod_compute_frustum_corners
Compute the 4 corners of the camera frustum at the given distance using actual camera intrinsics. Args: poses: C
utils/retrieval_utils.py:392
↓ 6 callersMethod_run_level
Run the blocks (except up/downsampling blocks) for a given level, accompanied by reshaping operations before and after.
algorithms/dfot/backbones/u_vit/u_vit3d.py:276
↓ 6 callersMethodall_parameters
(self)
utils/lightning_utils.py:252
↓ 6 callersMethodfrom_config
Initialize the history guidance from a configuration. config.name specifies the name of the history guidance scheme, and the
algorithms/dfot/history_guidance.py:688
↓ 6 callersMethodget_clip_location
(self, idx: int)
datasets/video/base_video.py:474
↓ 6 callersMethodload_latent
( self, video_metadata: Dict[str, Any], start_frame: int, end_frame: int )
datasets/video/base_video.py:485
↓ 6 callersMethodmodel_predictions
(self, x, k, external_cond=None, external_cond_mask=None)
algorithms/dfot/diffusion/discrete_diffusion.py:163
↓ 6 callersMethodprepare
Modify the input before passing it to the sampling process. Args ---- x: torch.Tensor, Shape (batch_size, seq_len, .
algorithms/dfot/history_guidance.py:447
↓ 6 callersMethodq_sample
(self, x_start, k, noise=None, generator=None)
algorithms/dfot/diffusion/discrete_diffusion.py:232
↓ 6 callersMethodsample
(self)
algorithms/vae/common/distribution.py:19
↓ 6 callersMethodswap_model_weights
(self, trainer: Trainer, saving_ema_model: bool = False)
utils/lightning_utils.py:121
↓ 6 callersMethodupdate
(self)
utils/lightning_utils.py:290
↓ 6 callersMethodvalues
(self)
algorithms/common/metrics/video/video_metric.py:229
↓ 6 callersFunctionwarp
(img, flow)
algorithms/common/metrics/video/models/amt/utils.py:6
↓ 5 callersMethod__init__
(self, in_channels, out_channels, with_conv=True)
algorithms/vae/common/modules/updownsample.py:11
↓ 5 callersMethod__init__
(self, stride=8)
algorithms/common/metrics/video/models/pips2.py:476
↓ 5 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:409
↓ 5 callersFunctioncast_tuple
(t, length=1)
algorithms/vae/common/modules/ops.py:24
↓ 5 callersFunctionconvrelu
( in_channels, out_channels, kernel_size=3, stride=1, padding=1, dilation=1, group
algorithms/common/metrics/video/models/amt/ifrnet.py:13
↓ 5 callersMethodget_latent_paths
Return list of latent paths for the given split
datasets/video/base_video.py:221
↓ 5 callersFunctionis_hf_path
(path: str)
utils/ckpt_utils.py:128
↓ 5 callersMethodload_video_and_cond
Load video and conditions from video_idx with given start_frame and end_frame (exclusive)
datasets/video/realestate10k.py:503
↓ 5 callersFunctionread_video
Adapted from torchvision.io.video.read_video Simplified to only read video frames (not audio and additional info) Args: filename
datasets/video/utils/io.py:36
↓ 5 callersFunctionrearrange_contiguous_many
( tensors: Tuple[torch.Tensor, ...], *args, **kwargs )
algorithms/dfot/backbones/dit/dit_base.py:27
↓ 5 callersFunctionzero_module
Zero out the parameters of a module and return it.
algorithms/dfot/backbones/modules/zero_module.py:5
↓ 4 callersMethod__init__
( self, frustum_length: float = 2.0, num_samples: int = 500, resolution: int =
utils/retrieval_utils.py:377
↓ 4 callersMethod__init__
(self, output_dim=128, norm_fn="batch", dropout=0.0)
algorithms/common/metrics/video/models/amt/feat_enc.py:122
↓ 4 callersMethod__init__
Args: hidden_size: Number of features in the hidden layer. num_heads: Number of attention heads. mlp_rati
algorithms/dfot/backbones/dit/dit_blocks.py:153
↓ 4 callersMethod_compute_mask
Compute mask indicating if distances are above threshold
utils/retrieval_utils.py:62
↓ 4 callersMethod_dataloader
(self, split: str)
experiments/data_modules/base_data_module.py:32
↓ 4 callersMethod_make_layer
(self, dim, stride=1)
algorithms/common/metrics/video/models/pips2.py:266
↓ 4 callersMethod_make_layer
(self, dim, stride=1)
algorithms/common/metrics/video/models/amt/feat_enc.py:313
↓ 4 callersMethod_n_frames_to_n_tokens
Converts the number of frames to the number of tokens. - Chunk-wise VideoVAE: 1st frame -> 1st token, then every self.temporal_downsa
algorithms/dfot/dfot_video.py:217
↓ 4 callersMethod_should_include_in_checkpoint
(self, key: str)
algorithms/dfot/dfot_video.py:1653
↓ 4 callersMethod_should_validate_ema_weights
(self, trainer: Trainer)
utils/lightning_utils.py:113
↓ 4 callersFunction_yaml_to_cli
Convert a yaml file to a list of command line arguments.
utils/hydra_utils.py:21
↓ 4 callersFunctionadopt_weight
(weight, global_step, threshold=0, value=0.0)
algorithms/vae/common/losses/perceptual_loss.py:13
↓ 4 callersMethodcompose
Compose the scores from different history segments using the weights.
algorithms/dfot/history_guidance.py:546
↓ 4 callersFunctiondownload_from_hf
Download a file from DFoT Hugging Face model hub. https://huggingface.co/kiwhansong/DFoT
utils/huggingface_utils.py:4
↓ 4 callersMethodfull
A history segment that contains the full history.
algorithms/dfot/history_guidance.py:153
↓ 4 callersMethodgather_data
Gather tensors or collections of tensors from all devices, and stack them along the batch dimension. Args: data:
algorithms/common/base_pytorch_algo.py:252
↓ 4 callersMethodget_last_layer
(self)
algorithms/vae/image_vae/trainer.py:277
↓ 4 callersFunctionget_maze_grid
(env_id)
utils/logging_utils.py:530
↓ 4 callersMethodintrinsics
Returns the intrinsics matrix for the camera poses. Args: flatten (bool): Whether to flatten the intrinsics matrix.
utils/geometry_utils.py:255
↓ 4 callersMethodload_cond
( self, video_metadata: Dict[str, Any], start_frame: int, end_frame: int )
datasets/video/realestate10k.py:316
↓ 4 callersFunctionmake_attn
(in_channels, attn_type="vanilla")
algorithms/vae/common/modules/attention.py:86
↓ 4 callersMethodmode
(self)
algorithms/vae/common/distribution.py:54
↓ 4 callersMethodreduce_distances
Return a query that is the target of the retrieval
utils/retrieval_utils.py:49
↓ 4 callersMethodsample
(self, coords)
algorithms/common/metrics/video/models/pips2.py:431
↓ 4 callersMethodsample_step_windows_history_guidance
( self, x: torch.Tensor, curr_noise_level: torch.Tensor, next_noise_level: tor
algorithms/dfot/diffusion/discrete_diffusion.py:547
↓ 3 callersMethod__init__
(self, cfg: DictConfig, split: SPLIT = "training")
datasets/video/realestate10k.py:252
↓ 3 callersMethod__init__
(self, in_channels)
algorithms/vae/common/modules/attention.py:40
↓ 3 callersMethod__init__
(self, use_dropout=True)
algorithms/vae/common/losses/lpips.py:12
↓ 3 callersMethod__init__
(self, channels, large=False)
algorithms/common/metrics/video/models/amt/ifrnet.py:99
↓ 3 callersMethod__init__
(self, output_dim=128, norm_fn="batch", dropout=0.0)
algorithms/common/metrics/video/models/raft/extractor.py:122
↓ 3 callersMethod_build_algo
Build the lightning module :return: a pytorch-lightning module to be launched
experiments/base_exp.py:61
↓ 3 callersMethod_build_common_callbacks
(self)
experiments/base_exp.py:116
↓ 3 callersMethod_build_idx_remap
Deterministically build idx_remap for the dataset, which maps the indices of the current dataset to the absolute indices of the full dataset
datasets/video/base_video.py:383
↓ 3 callersMethod_compute_overlap
Compute frustum overlap using Monte Carlo sampling. Samples points inside each frustum and checks how many are contained in the other
utils/retrieval_utils.py:476
↓ 3 callersMethod_corr_scale_lookup
(self, corr_fn, coord, flow0, flow1, embt, downsample=1)
algorithms/common/metrics/video/models/amt/amt_s.py:67
↓ 3 callersMethod_extend
Extend the tensor a by adding dimensions at the end to match the shape of x.
algorithms/dfot/history_guidance.py:443
↓ 3 callersMethod_get_updateblock
(self, cdim, scale_factor=None)
algorithms/common/metrics/video/models/amt/amt_s.py:55
↓ 3 callersMethod_make_layer
(self, dim, stride=1)
algorithms/common/metrics/video/models/amt/feat_enc.py:161
↓ 3 callersMethod_make_layer
(self, dim, stride=1)
algorithms/common/metrics/video/models/amt/feat_enc.py:236
↓ 3 callersMethod_make_layer
(self, dim, stride=1)
algorithms/common/metrics/video/models/raft/extractor.py:162
↓ 3 callersMethod_make_layer
(self, dim, stride=1)
algorithms/common/metrics/video/models/raft/extractor.py:237
↓ 3 callersMethod_normalize_by
Normalizes so that the camera given by R_ref and T_ref becomes the world coordinates. Args: R_ref (torch.Tensor): The rot
utils/geometry_utils.py:120
↓ 3 callersMethod_pad_to_max_tokens
Given a tensor y of shape (B, T, ...), pad it at the end across the time dimension to have a length of self.max_tokens.
algorithms/dfot/dfot_video.py:591
↓ 3 callersMethod_process_external_cond
Post-processes external condition. Args: external_cond: (T, *) tensor, T = self.n_frames Returns: pro
datasets/video/base_video.py:578
↓ 3 callersMethod_unnormalize_x
(self, xs)
algorithms/dfot/dfot_video.py:1621
next →1–100 of 993, ranked by callers