MCPcopy Create free account

hub / github.com/andrewsonga/generative_view_stitching / functions

Functions993 in github.com/andrewsonga/generative_view_stitching

↓ 3 callersFunctionbilinear_sample2d
(im, x, y, return_inbounds=False)
algorithms/common/metrics/video/models/pips2.py:624
↓ 3 callersMethodcam2world_4x4
Returns the 4x4 camera-to-world matrix for the camera poses.
utils/geometry_utils.py:237
↓ 3 callersMethodcompute
Compute final MET3R score.
algorithms/common/metrics/video/met3r.py:118
↓ 3 callersMethodcorr
(self, targets)
algorithms/common/metrics/video/models/pips2.py:462
↓ 3 callersMethoddecode
Decode latent tensor z into original space.
algorithms/vae/common/base_vae.py:21
↓ 3 callersFunctiondownload_checkpoint
( run_path: str, download_dir: Path, option: Literal["latest", "best"] = "latest" )
utils/ckpt_utils.py:84
↓ 3 callersFunctiondownload_pretrained
Download a pretrained model from the DFoT Hugging Face model hub. Set is_full to True to download the full model (including optimizer sta
utils/ckpt_utils.py:110
↓ 3 callersFunctiondownload_with_client
(client: Optional[str] = None)
datasets/video/realestate10k.py:1040
↓ 3 callersFunctionfreeze_model
Freeze the torch model
utils/torch_utils.py:14
↓ 3 callersFunctionimpute_support_frames
( video: Float[Tensor, "batch sequence_length channels height width"], cond: Float[Tensor, "batch sequ
utils/retrieval_utils.py:867
↓ 3 callersFunctionis_grid_env
(env_id)
utils/logging_utils.py:526
↓ 3 callersFunctionis_run_id
Check if a string is a run ID.
utils/ckpt_utils.py:18
↓ 3 callersFunctionis_wandb_run_path
(run_path: str)
utils/ckpt_utils.py:123
↓ 3 callersMethodload_cond
( self, video_metadata: Dict[str, Any], start_frame: int, end_frame: int )
datasets/video/base_video.py:492
↓ 3 callersMethodload_video
( self, video_metadata: Dict[str, Any], start_frame: int, end_frame: Optional[
datasets/video/realestate10k.py:211
↓ 3 callersMethodload_video
Load video from video_idx with given start_frame and end_frame (exclusive) if end_frame is None, load until the end of the video
datasets/video/base_video.py:227
↓ 3 callersMethodload_video_and_cond_and_bev
Load video and conditions and bev from video_idx with given start_frame and end_frame (exclusive)
datasets/video/realestate10k.py:518
↓ 3 callersFunctionplot_maze_layout
(ax, maze_grid)
utils/logging_utils.py:558
↓ 3 callersFunctionplot_start_goal
(ax, start_goal: None)
utils/logging_utils.py:595
↓ 3 callersMethodpredict_start_from_noise
(self, x_k, k, noise)
algorithms/dfot/diffusion/discrete_diffusion.py:183
↓ 3 callersMethodreset
(self)
algorithms/common/metrics/video/video_metric.py:424
↓ 3 callersMethodrun
Run the algorithm.
algorithms/common/base_algo.py:18
↓ 3 callersMethodsetup
(self)
datasets/video/realestate10k.py:203
↓ 3 callersMethodstate_dict
(self)
utils/lightning_utils.py:357
↓ 3 callersMethodstep
(self, closure=None, grad_scaler=None, **kwargs)
utils/lightning_utils.py:255
↓ 3 callersMethodswitch_main_parameter_weights
(self, saving_ema_model: bool = False)
utils/lightning_utils.py:321
↓ 3 callersFunctionwandb_to_local_path
(run_path: str)
utils/ckpt_utils.py:158
↓ 3 callersFunctionwarmup
Warmup optimizer learning rate.
algorithms/vae/common/losses/warmup.py:4
↓ 2 callersFunctionNormalizeWithBias
(num_channels: int)
algorithms/dfot/backbones/u_vit/u_vit_blocks.py:53
↓ 2 callersMethod__init__
( self, name: Optional[str] = None, save_dir: _PATH = ".", version: Optional[s
utils/wandb_utils.py:159
↓ 2 callersMethod__init__
( self, cfg: DictConfig, split: SPLIT = "training", )
datasets/video/base_video.py:36
↓ 2 callersMethod__init__
( self, num_features, logdet=False, affine=True, allow_reverse_init=False )
algorithms/vae/common/losses/discriminator.py:7
↓ 2 callersMethod__init__
( self, z_channels: int, hidden_size: int, hidden_size_mult: Tuple[int] = (1,
algorithms/vae/video_vae/model.py:27
↓ 2 callersMethod__init__
(self, fmap1, fmap2, num_levels=4, radius=4)
algorithms/common/metrics/video/models/amt/raft.py:171
↓ 2 callersMethod_augment
( self, video: torch.Tensor, cond: torch.Tensor, bev: Optional[torch.Tensor] =
datasets/video/realestate10k.py:548
↓ 2 callersMethod_compute_image_centers
Compute image centers by extending along optical axis Args: poses: Camera poses Returns: centers: I
utils/retrieval_utils.py:199
↓ 2 callersMethod_decode
(self, latents: Tensor, shape: str = "b t c h w")
algorithms/dfot/dfot_video.py:1602
↓ 2 callersMethod_eval_denoising
Evaluate the denoising performance during training.
algorithms/dfot/dfot_video.py:449
↓ 2 callersMethod_extract_i3d_features
Extract I3D features. Requires a batch of videos of shape (B, T, C, H, W) and range [0, 1].
algorithms/common/metrics/video/video_metric.py:239
↓ 2 callersMethod_load_vae
Load the pretrained VAE model.
algorithms/dfot/dfot_video.py:186
↓ 2 callersMethod_log_losses
( self, namespace: str, loss: torch.Tensor, loss_dict: Dict[str, torch.Tensor]
algorithms/vae/video_vae/trainer.py:220
↓ 2 callersMethod_metrics
( self, task: Literal[ "prediction", "interpolation", ], )
algorithms/dfot/dfot_video.py:200
↓ 2 callersMethod_nerf_pos_encoding
(x: torch.Tensor, freq: int)
utils/geometry_utils.py:53
↓ 2 callersMethod_optimizer_step
( self, optimizer: torch.optim.Optimizer, loss: torch.Tensor, warmup_info: Tup
algorithms/vae/video_vae/trainer.py:248
↓ 2 callersMethod_patch_embedder_init
(embedder: PatchEmbed)
algorithms/dfot/backbones/dit/dit3d.py:71
↓ 2 callersMethod_process_freq_ranges
Process the frequency ranges, replacing ALL with (0.0, 1.0), and following rules #1, #2, #3.
algorithms/dfot/history_guidance.py:72
↓ 2 callersMethod_rearrange_and_unnormalize
( self, videos: torch.Tensor, batch_size: int )
algorithms/vae/image_vae/preprocessor.py:109
↓ 2 callersMethod_rearrange_and_unnormalize
(self, x: torch.Tensor)
algorithms/vae/video_vae/trainer.py:280
↓ 2 callersMethod_register
(self, model_type: VideoMetricModelType)
algorithms/common/metrics/video/shared_registry.py:73
↓ 2 callersMethod_run_vae
Helper function to run the VAE, either for encoding or decoding. - Requires shape to be a permutation of b, t, c, h, w. - Res
algorithms/dfot/dfot_video.py:1566
↓ 2 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_video.py:1294
↓ 2 callersMethod_unpad
(self, x)
algorithms/common/metrics/video/models/amt/utils.py:56
↓ 2 callersMethod_update
(self, x: Tensor, real: bool)
algorithms/common/metrics/video/base_fid.py:78
↓ 2 callersFunction_youtube_url_to_id
(youtube_url: str)
datasets/video/realestate10k.py:1030
↓ 2 callersFunctionbernoulli_tensor
Generate a tensor of the given size, where each element is sampled from a Bernoulli distribution with probability `p`.
utils/torch_utils.py:21
↓ 2 callersFunctionbilinear_sampler
Wrapper for grid_sample, uses pixel coordinates
algorithms/common/metrics/video/models/amt/raft.py:12
↓ 2 callersMethodcheckpoint
(self, module: nn.Module, *args)
algorithms/dfot/backbones/dit/dit_base.py:198
↓ 2 callersMethodconditional
History guidance scheme equivalent to: typical conditional sampling, i.e. sampling with only a conditional score (on the enti
algorithms/dfot/history_guidance.py:704
↓ 2 callersFunctioncoords_grid
(batch, ht, wd, device)
algorithms/common/metrics/video/models/raft/utils.py:86
↓ 2 callersMethoddecode
(self, z: torch.Tensor)
algorithms/vae/image_vae/trainer.py:342
↓ 2 callersFunctiondownload
(url, local_path, chunk_size=1024)
algorithms/vae/common/losses/utils.py:12
↓ 2 callersFunctionema_update
(ema_model_tuple, current_model_tuple, decay)
utils/lightning_utils.py:170
↓ 2 callersMethodencode
(self, x: torch.Tensor)
algorithms/vae/image_vae/trainer.py:336
↓ 2 callersMethodencode
Encode input tensor x into latent distribution.
algorithms/vae/common/base_vae.py:14
↓ 2 callersMethodforward
(self, t: torch.Tensor)
algorithms/dfot/diffusion/continuous_diffusion.py:75
↓ 2 callersMethodforward
(self, timesteps)
algorithms/dfot/backbones/modules/embeddings.py:24
↓ 2 callersMethodfrom_pretrained
(cls, path: str, **kwargs)
algorithms/vae/image_vae/trainer.py:299
↓ 2 callersFunctiongenerate_trajectory_orbit
Create a cam2world trajectory depicting an orbital motion - camera moves in a circular path in the xz plane while always looking at the cente
utils/geometry_utils.py:626
↓ 2 callersFunctionget_einops_wrapped_module
(module, from_shape: str, to_shape: str)
algorithms/dfot/backbones/u_net/u_net_blocks.py:312
↓ 2 callersMethodinitialize
(self, input)
algorithms/vae/common/losses/discriminator.py:19
↓ 2 callersMethodkl
(self, other=None)
algorithms/vae/common/distribution.py:25
↓ 2 callersMethodload_video_and_cond
Load video and conditions from video_idx with given start_frame and end_frame (exclusive)
datasets/video/base_video.py:497
↓ 2 callersMethodlog
(self, prefix: str)
algorithms/common/metrics/video/video_metric.py:394
↓ 2 callersFunctionmae_score
Compute the mean absolute error (MAE) between videos1 and videos2. `score = (255 - MAE) / 255`. Args: videos1: Videos of shape (
algorithms/common/metrics/video/vbench/utils.py:4
↓ 2 callersFunctionmd5_hash
(path)
algorithms/vae/common/losses/utils.py:24
↓ 2 callersFunctionmodulate
(x: torch.Tensor, shift: torch.Tensor, scale: torch.Tensor)
algorithms/dfot/backbones/dit/dit_blocks.py:14
↓ 2 callersMethodnormalize_by_first
Normalizes the camera poses by the first camera, i.e. computes the relative poses w.r.t. the first camera. After normalization, the f
utils/geometry_utils.py:131
↓ 2 callersFunctionnormalize_tensor
(x, eps=1e-10)
algorithms/vae/common/losses/lpips.py:127
↓ 2 callersFunctionparse_load
Parse load into run_id and download option. (for load=xxxxxxxx in configurations) - If load_id is a run_id, return the run_id and None.
utils/ckpt_utils.py:40
↓ 2 callersMethodpartial_constant
A history segment that contains a constant frequency range for all tokens.
algorithms/dfot/history_guidance.py:158
↓ 2 callersMethodpredict_noise_from_start
(self, x_k, k, x0)
algorithms/dfot/diffusion/discrete_diffusion.py:189
↓ 2 callersMethodpredict_noise_from_v
(self, x_k, k, v)
algorithms/dfot/diffusion/discrete_diffusion.py:209
↓ 2 callersMethodpredict_start_from_v
(self, x_k, k, v)
algorithms/dfot/diffusion/discrete_diffusion.py:203
↓ 2 callersFunctionprune_history
(plan_history, trajectory, goal, open_loop_horizon)
utils/logging_utils.py:731
↓ 2 callersFunctionrescale_and_crop
Rescale and crop the video to the specified resolution. Used for preprocessing. Args: video (torch.Tensor): video tensor of shape (t,
datasets/video/utils/transform.py:90
↓ 2 callersFunctionresize
(x, scale_factor)
algorithms/common/metrics/video/models/amt/ifrnet.py:7
↓ 2 callersFunctionsafe_torch_save
Safely save a torch object to disk. If the path does not exist, create folders as needed.
utils/storage_utils.py:12
↓ 2 callersMethodsample_step
( self, x: torch.Tensor, curr_noise_level: torch.Tensor, next_noise_level: tor
algorithms/dfot/diffusion/discrete_diffusion.py:386
↓ 2 callersMethodscale_within_bounds
Scales the camera locations, so that they are within the boundary box [-bounds, bounds]^3. Each scene is scaled independently, while
utils/geometry_utils.py:163
↓ 2 callersMethodsetup
(self)
datasets/video/kinetics_600.py:176
↓ 2 callersMethodto_tensor
Returns the rays represented as a tensor. Args: use_plucker (bool): Whether to use Plücker coordinates or not. Re
utils/geometry_utils.py:36
↓ 2 callersMethodunpatchify
Args: x: patchified tensor of shape (B, num_patches, patch_size**2 * C) Returns: unpatchified tensor of shape
algorithms/dfot/backbones/dit/dit3d.py:103
↓ 2 callersFunctionvalid_img
check that input is a valid image to the network.
algorithms/common/metrics/video/met3r.py:11
↓ 2 callersMethodvideo_path_to_preprocessed_path
(self, video_path: Path)
datasets/video/kinetics_600.py:239
↓ 1 callersMethod__init__
Constructor Args: cfg: configuration file that contains everything about the experiment logger: a pytorch-li
experiments/base_exp.py:39
↓ 1 callersMethod__init__
(self, cfg: DictConfig, split: SPLIT = "training")
datasets/video/kinetics_600.py:280
↓ 1 callersMethod__init__
(self, cfg: DictConfig, split: str = "training")
datasets/video/minecraft.py:76
↓ 1 callersMethod__init__
( self, cfg: DictConfig, )
algorithms/vae/image_vae/trainer.py:287
↓ 1 callersMethod__init__
( self, *, ch, out_ch, ch_mult=(1, 2, 4, 8), num_res_blocks,
algorithms/vae/image_vae/model.py:19
↓ 1 callersMethod__init__
( self, in_channels: int, out_channels: int, kernel_size: Union[int, Tuple[int
algorithms/vae/common/modules/conv.py:8
← previousnext →101–200 of 993, ranked by callers