MCPcopy Create free account

hub / github.com/Little-Podi/AdaWorld / functions

Functions471 in github.com/Little-Podi/AdaWorld

↓ 31 callersFunctioninstantiate_from_config
(config)
worldmodel/vwm/util.py:60
↓ 12 callersFunctiondefault
(val, d)
worldmodel/vwm/util.py:46
↓ 9 callersMethoddevice
(self)
worldmodel/external/lam/modules/embeddings.py:135
↓ 9 callersFunctionlinear
Create a linear module.
worldmodel/vwm/modules/diffusionmodules/util.py:145
↓ 8 callersMethod__init__
(self, num_actions: int = 4, action_dim: int = 32)
worldmodel/vwm/modules/encoders/modules.py:340
↓ 8 callersFunctionappend_dims
Appends dimensions to the end of a tensor until it has target_dims dimensions.
worldmodel/vwm/util.py:86
↓ 8 callersFunctionconv_nd
Create a 1D, 2D, or 3D convolution module.
worldmodel/vwm/modules/diffusionmodules/util.py:130
↓ 8 callersFunctionexists
(val)
lam/lam/modules/embeddings.py:13
↓ 8 callersFunctionexists
(val)
worldmodel/external/lam/modules/embeddings.py:13
↓ 7 callersMethod__init__
(self, model_dim: int, num_heads: int, dropout: float = 0.0)
lam/lam/modules/blocks.py:94
↓ 6 callersFunctionNormalize
(in_channels, num_groups=32)
worldmodel/vwm/modules/diffusionmodules/model.py:46
↓ 6 callersMethod__init__
( self, *, ch, out_channels, ch_mult=(1, 2, 4, 8),
worldmodel/vwm/modules/diffusionmodules/model.py:255
↓ 6 callersFunctionperform_save_locally
(save_path, samples, mode, n_rows: int = 5)
worldmodel/sample_utils.py:51
↓ 5 callersMethod__init__
(self, model_dim: int, num_heads: int, dropout: float = 0.0)
worldmodel/external/lam/modules/blocks.py:92
↓ 5 callersMethod__init__
(self, dim_in, dim_out)
worldmodel/vwm/modules/attention.py:71
↓ 5 callersFunctiondefault
(val, d)
worldmodel/vwm/modules/attention.py:63
↓ 5 callersFunctionexists
(val)
worldmodel/vwm/modules/attention.py:59
↓ 5 callersFunctionnonlinearity
(x)
worldmodel/vwm/modules/diffusionmodules/model.py:41
↓ 4 callersMethod__init__
(self, **kwargs)
worldmodel/vwm/models/autoencoder.py:200
↓ 4 callersFunctionapply_rotary_emb
(freqs, t, start_index=0, scale=1.0, seq_dim=-2)
lam/lam/modules/embeddings.py:34
↓ 4 callersFunctionapply_rotary_emb
(freqs, t, start_index=0, scale=1.0, seq_dim=-2)
worldmodel/external/lam/modules/embeddings.py:34
↓ 4 callersFunctiondefault
(var, val)
lam/lam/dataset.py:21
↓ 4 callersFunctionexists
(var)
lam/lam/dataset.py:17
↓ 4 callersFunctionextract_sample
(tfds_builder, obs_key: str, dataset_name: str, save_dir: str, split: str, extra: str = None)
process_rtx.py:33
↓ 4 callersMethodforward
(self, t: Tensor, freqs: Tensor, seq_len=None, offset=0)
lam/lam/modules/embeddings.py:226
↓ 4 callersMethodforward
(self, t: Tensor, freqs: Tensor, seq_len=None, offset=0)
worldmodel/external/lam/modules/embeddings.py:226
↓ 4 callersFunctionget_fvd_logits
(videos, i3d, device, batch_size=None)
worldmodel/fvd_utils/fvd_utils.py:35
↓ 4 callersFunctionget_obj_from_str
(string, reload=False, invalidate_cache=True)
worldmodel/vwm/util.py:72
↓ 4 callersMethodlog_images
(self, batch: Dict, outputs: Dict, split: str)
worldmodel/external/lam/model.py:135
↓ 4 callersMethodlog_img
(self, pl_module, batch, batch_idx, split="train")
worldmodel/train.py:353
↓ 4 callersMethodlog_img
(self, pl_module, batch, batch_idx, split="train")
worldmodel/train_adapt.py:353
↓ 4 callersMethodsample
( self, cond: Dict, x_ori: torch.Tensor, uc: Union[Dict, None]
worldmodel/vwm/models/diffusion.py:217
↓ 3 callersMethod__init__
( self, split_path: str, padding: str = "repeat", randomize: b
lam/lam/dataset.py:125
↓ 3 callersMethod__init__
( self, channels: int, use_conv: bool, dims: int = 2,
worldmodel/vwm/modules/diffusionmodules/openaimodel.py:62
↓ 3 callersMethod__init__
( self, split_path: str, padding: str = "repeat", randomize: b
worldmodel/vwm/data/dataset.py:17
↓ 3 callersFunctioncheckpoint
Evaluate a function without caching intermediate activations, allowing for reduced memory at the expense of extra compute in the backward pas
worldmodel/vwm/modules/diffusionmodules/util.py:17
↓ 3 callersMethodcompute_pad
(self, dim, s)
worldmodel/fvd_utils/pytorch_i3d.py:7
↓ 3 callersMethodcompute_pad
(self, dim, s)
worldmodel/fvd_utils/pytorch_i3d.py:70
↓ 3 callersMethoddecode_first_stage
(self, z)
worldmodel/vwm/models/diffusion.py:89
↓ 3 callersFunctiondefault
(val, d)
lam/lam/modules/embeddings.py:17
↓ 3 callersFunctiondefault
(val, d)
worldmodel/external/lam/modules/embeddings.py:17
↓ 3 callersMethodencode
( self, x: torch.Tensor, return_reg_log: bool = False, unregul
worldmodel/vwm/models/autoencoder.py:112
↓ 3 callersMethodencode_first_stage
(self, x)
worldmodel/vwm/models/diffusion.py:105
↓ 3 callersFunctionnormalization
Make a standard normalization layer.
worldmodel/vwm/modules/diffusionmodules/util.py:117
↓ 3 callersFunctionpatchify
(videos: Tensor, size: int)
worldmodel/external/lam/modules/blocks.py:10
↓ 3 callersMethodscaled_dot_product_attention
( self, query: Tensor, key: Tensor, value: Tensor,
worldmodel/external/lam/modules/blocks.py:58
↓ 3 callersFunctiontimestep_embedding
Create sinusoidal timestep embeddings. :param timesteps: A 1-D Tensor of N indices, one per batch element. These may be fractional. :par
worldmodel/vwm/modules/diffusionmodules/util.py:71
↓ 3 callersMethodupdate_usage
(self, min_enc)
lam/lam/modules/blocks.py:255
↓ 2 callersMethod__init__
Initializes Unit3D module.
worldmodel/fvd_utils/pytorch_i3d.py:32
↓ 2 callersMethod__init__
(self, in_channels, out_channels, video_kernel_size=3, *args, **kwargs)
worldmodel/vwm/modules/autoencoding/temporal_ae.py:73
↓ 2 callersFunction_symmetric_matrix_square_root
(mat, eps=1e-10)
worldmodel/fvd_utils/fvd_utils.py:49
↓ 2 callersMethodcopy_to
(self, model)
worldmodel/vwm/modules/ema.py:52
↓ 2 callersFunctioncov
Estimate a covariance matrix given data. Covariance indicates the level to which two variables vary together. If we examine N-dimensiona
worldmodel/fvd_utils/fvd_utils.py:63
↓ 2 callersMethoddecode
(self, z: torch.Tensor, **kwargs)
worldmodel/vwm/models/autoencoder.py:128
↓ 2 callersFunctiondefault_trainer_args
()
worldmodel/train.py:29
↓ 2 callersFunctiondefault_trainer_args
()
worldmodel/train_adapt.py:29
↓ 2 callersFunctiondenoiser
(input, sigma, c)
worldmodel/sample_utils.py:172
↓ 2 callersMethodema_scope
(self, context=None)
worldmodel/vwm/models/diffusion.py:161
↓ 2 callersFunctionexpand_dims_like
(x, y)
worldmodel/vwm/util.py:40
↓ 2 callersMethodfind_in_interval
(self, n)
worldmodel/vwm/lr_scheduler.py:54
↓ 2 callersMethodforward
(self, input, timesteps, skip_video=False)
worldmodel/vwm/modules/autoencoding/temporal_ae.py:87
↓ 2 callersFunctionfrechet_distance
(x1, x2)
worldmodel/fvd_utils/fvd_utils.py:97
↓ 2 callersFunctiongenerate_sample
(env_name: str, timeout: int, root: str, split: str, bias: int)
sample_retro.py:24
↓ 2 callersFunctiongenerate_sample
(env_name: str, start_level: int, timeout: int, root: str, split: str)
sample_procgen.py:24
↓ 2 callersFunctiongenerate_sample
(env_name: str, timeout: int, root: str, split: str, bias: int)
sample_stableretro.py:24
↓ 2 callersFunctionget_checkpoint_files
(checkpoint_dir, glob_pattern)
worldmodel/zero_to_fp32.py:76
↓ 2 callersFunctionget_checkpoint_name
(logdir)
worldmodel/train.py:197
↓ 2 callersFunctionget_checkpoint_name
(logdir)
worldmodel/train_adapt.py:197
↓ 2 callersFunctionget_fp32_state_dict_from_zero_checkpoint
Convert ZeRO 2 or 3 checkpoint into a single fp32 consolidated state_dict that can be loaded with ``load_state_dict()`` and used for training
worldmodel/zero_to_fp32.py:454
↓ 2 callersMethodget_input
(self, batch)
worldmodel/vwm/models/diffusion.py:80
↓ 2 callersMethodget_seq_pos
(self, seq_len, device, dtype, offset=0)
lam/lam/modules/embeddings.py:138
↓ 2 callersMethodget_seq_pos
(self, seq_len, device, dtype, offset=0)
worldmodel/external/lam/modules/embeddings.py:138
↓ 2 callersMethodget_unconditional_conditioning
( self, batch_c: Dict, batch_uc: Optional[Dict] = None, force_
worldmodel/vwm/modules/encoders/modules.py:151
↓ 2 callersFunctionload_fvd_model
(device)
worldmodel/fvd_utils/fvd_utils.py:41
↓ 2 callersFunctionload_video
(video_path)
worldmodel/eval.py:15
↓ 2 callersFunctionload_video_slices
(video_path, start_id: int = 0, frame_skip: int = 1)
worldmodel/sample.py:39
↓ 2 callersMethodlog_images
(self, batch: Dict, outputs: Dict, split: str)
lam/lam/model.py:139
↓ 2 callersFunctionmake_attn
(in_channels, attn_type="vanilla", attn_kwargs=None)
worldmodel/vwm/modules/diffusionmodules/model.py:224
↓ 2 callersFunctionpartialclass
(cls, *args, **kwargs)
worldmodel/vwm/util.py:33
↓ 2 callersMethodreinit_ema
(self)
worldmodel/vwm/models/diffusion.py:68
↓ 2 callersFunctionrepeat_img_seq
(x, num_frames)
worldmodel/vwm/util.py:9
↓ 2 callersMethodreplace_cond
(self, x, x_ori)
worldmodel/vwm/modules/diffusionmodules/sampling.py:93
↓ 2 callersMethodrestore
Restore the parameters stored with the 'store' method. Useful to validate the model with EMA parameters without affecting the
worldmodel/vwm/modules/ema.py:71
↓ 2 callersMethodrotate_queries_or_keys
(self, t, freqs, seq_dim=None, offset=0, scale=None)
lam/lam/modules/embeddings.py:141
↓ 2 callersMethodrotate_queries_or_keys
(self, t, freqs, seq_dim=None, offset=0, scale=None)
worldmodel/external/lam/modules/embeddings.py:141
↓ 2 callersMethodshared_step
(self, batch: Dict)
lam/lam/model.py:54
↓ 2 callersMethodshared_step
(self, batch: Dict)
worldmodel/external/lam/model.py:67
↓ 2 callersMethodstore
Save the current parameters for restoring later. Args: parameters: Iterable of 'torch.nn.Parameter'; the parameters to be te
worldmodel/vwm/modules/ema.py:61
↓ 2 callersFunctionzero2_align
(x)
worldmodel/zero_to_fp32.py:300
↓ 2 callersFunctionzero3_partitioned_param_info
(unpartitioned_numel, world_size)
worldmodel/zero_to_fp32.py:338
↓ 2 callersFunctionzero_module
Zero out the parameters of a module and return it.
worldmodel/vwm/modules/attention.py:115
↓ 2 callersFunctionzero_module
Zero out the parameters of a module and return it.
worldmodel/vwm/modules/diffusionmodules/util.py:97
↓ 1 callersFunctionNormalize
(in_channels)
worldmodel/vwm/modules/attention.py:125
↓ 1 callersMethod__init__
( self, batch_frequency, clamp=True, increase_log_steps=True,
worldmodel/train.py:291
↓ 1 callersMethod__init__
( self, batch_frequency, clamp=True, increase_log_steps=True,
worldmodel/train_adapt.py:291
↓ 1 callersMethod__init__
( self, dim, n_heads, d_head, dropout=0.0,
worldmodel/vwm/modules/video_attention.py:20
↓ 1 callersMethod__init__
( self, in_channels: int, model_channels: int, out_channels: i
worldmodel/vwm/modules/diffusionmodules/video_model.py:79
↓ 1 callersMethod__init__
(self)
worldmodel/vwm/modules/autoencoding/regularizer.py:11
↓ 1 callersMethod_forward
(self, x, context=None, timesteps=None)
worldmodel/vwm/modules/video_attention.py:104
↓ 1 callersMethod_forward
(self, x, context=None, additional_tokens=None)
worldmodel/vwm/modules/attention.py:367
next →1–100 of 471, ranked by callers