MCPcopy Create free account

hub / github.com/CompVis/zigma / functions

Functions471 in github.com/CompVis/zigma

↓ 1 callersFunctionpreprocess
(videos, target_resolution=224)
video_metrics/fvd/videogpt/fvd.py:51
↓ 1 callersFunctionpreprocess_single
(video, resolution, sequence_length=None)
video_metrics/fvd/videogpt/fvd.py:21
↓ 1 callersFunctionpreprocess_single
(video, resolution=224, sequence_length=None)
video_metrics/fvd/styleganv/fvd.py:38
↓ 1 callersMethodprior_logp
Standard multivariate normal prior Assume z is batched
transport/transport.py:69
↓ 1 callersFunctionrandom_shift_crop
Slide along the long edge, with the short edge as crop size
datasets/video_utils.py:128
↓ 1 callersMethodreset
(self)
my_metrics.py:101
↓ 1 callersMethodreset
(self, max_seqlen, max_batch_size)
dis_mamba/mamba_ssm/utils/generation.py:29
↓ 1 callersMethodreset_parameters
(self)
dis_mamba/mamba_ssm/ops/triton/layernorm.py:490
↓ 1 callersFunctionresize_scale
(clip, target_size, interpolation_mode)
datasets/video_utils.py:68
↓ 1 callersFunctionrms_norm_fn
(x, weight, bias, residual=None, prenorm=False, residual_in_fp32=False, eps=1e-6)
dis_mamba/mamba_ssm/ops/triton/layernorm.py:477
↓ 1 callersFunctionrun
(new_input_ids, new_position_ids, seqlen)
dis_mamba/mamba_ssm/utils/generation.py:369
↓ 1 callersMethodrun
(self)
dis_mamba/setup.py:207
↓ 1 callersFunctionsample
Sample from top-k logits. Arguments: logits: Tensor of shape (batch_size, vocab_size)
dis_mamba/mamba_ssm/utils/generation.py:63
↓ 1 callersMethodsample_ode_likelihood
returns a sampling function for calculating likelihood with given ODE settings Args: - sampling_method: type of sampler used in solvin
transport/transport.py:419
↓ 1 callersMethodsample_sde
returns a sampling function with given SDE settings Args: - sampling_method: type of sampler used in solving the SDE; default to be Eu
transport/transport.py:309
↓ 1 callersFunctionsample_tokens
(logits, inference_params)
dis_mamba/mamba_ssm/utils/generation.py:164
↓ 1 callersFunctionselective_scan_ref
u: r(B D L) delta: r(B D L) A: c(D N) or r(D N) B: c(D N) or r(B N L) or r(B N 2L) or r(B G N L) or (B G N L) C: c(D N) or r(B N
dis_mamba/mamba_ssm/ops/selective_scan_interface.py:86
↓ 1 callersFunctionselective_state_update_ref
Argument: state: (batch, dim, dstate) x: (batch, dim) dt: (batch, dim) A: (dim, dstate) B: (batch, dstate
dis_mamba/mamba_ssm/ops/triton/selective_state_update.py:157
↓ 1 callersFunctionset_conv_params_bwd
dis_causal_conv1d/csrc/causal_conv1d.cpp:95
↓ 1 callersFunctionset_ssm_params_bwd
dis_mamba/csrc/selective_scan/selective_scan.cpp:143
↓ 1 callersMethodsetup
(self, *args, **kwargs)
utils/torchmetric_fdd.py:70
↓ 1 callersFunctionshould_stop
(current_token, inference_params)
dis_mamba/mamba_ssm/utils/generation.py:172
↓ 1 callersFunctiontest_bimamba_inner_fn_grad_check
(is_variable_B, is_variable_C, seqlen, itype, wtype)
dis_mamba/tests/ops/test_selective_scan.py:357
↓ 1 callersMethodtie_weights
(self)
dis_mamba/mamba_ssm/models/mixer_seq_simple.py:210
↓ 1 callersMethodtimestep_embedding
Create sinusoidal timestep embeddings. :param t: a 1-D Tensor of N indices, one per batch element. These ma
model_zigma.py:248
↓ 1 callersFunctionto_tensor
Convert tensor data type from uint8 to float, divide value by 255.0 and permute the dimensions of clip tensor Args: clip (torch.t
datasets/video_utils.py:148
↓ 1 callersMethodtoken_drop
Drops labels to enable classifier-free guidance.
model_zigma.py:204
↓ 1 callersMethodtoken_drop
Drops labels to enable classifier-free guidance.
model_zigma.py:292
↓ 1 callersFunctiontrace_sqrt_product
(sigma, sigma_v)
video_metrics/fvd/videogpt/fvd.py:74
↓ 1 callersMethodtrain
Force network to always be in evaluation mode.
utils/torchmetric_sfid.py:81
↓ 1 callersMethodtraining_losses
Loss for training the score model Args: - model: backbone model; could be score, noise, or velocity - x1: datapoint -
transport/transport.py:126
↓ 1 callersMethodunpatchify
x: (N, T, patch_size**2 * C) imgs: (N, H, W, C)
model_zigma.py:874
↓ 1 callersMethodunpatchify_video
x: (N, T, patch_size**2 * C) imgs: (N, H, W, C)
model_zigma.py:889
↓ 1 callersFunctionupdate_graph_cache
( model, cache, batch_size, seqlen_og, max_seqlen, decoding_seqlens=(1,), tensor_p
dis_mamba/mamba_ssm/utils/generation.py:255
↓ 1 callersFunctionupdate_note
(args, accelerator, slurm_job_id)
train_acc.py:50
↓ 1 callersFunctionvis_position_embedding
(grid_size=33, dim=512)
wandb_utils.py:171
↓ 1 callersFunctionwandb_runid_from_checkpoint
(checkpoint_path)
utils/train_utils.py:12
↓ 1 callersFunctionzigzag_path_lr
(N, start_row=0, start_col=0, dir_row=1, dir_col=1)
utils/utils_zigzag.py:145
↓ 1 callersFunctionzigzag_path_tb
(N, start_row=0, start_col=0, dir_row=1, dir_col=1)
utils/utils_zigzag.py:154
FunctionPYBIND11_MODULE
dis_causal_conv1d/csrc/causal_conv1d.cpp:329
FunctionPYBIND11_MODULE
dis_mamba/csrc/selective_scan/selective_scan.cpp:494
MethodSSMScanPrefixCallbackOp
Constructor
dis_mamba/csrc/selective_scan/selective_scan_common.h:136
Method__Euler_Maruyama_step
(self, x, mean_x, t, model, **model_kwargs)
transport/integrators.py:31
Method__Heun_step
(self, x, _, t, model, **model_kwargs)
transport/integrators.py:41
Method__call__
Args: clip (torch.tensor): Video clip to be cropped. Size is (T, C, H, W) Returns: torch.tensor: randomly cro
datasets/video_utils.py:205
Method__call__
Args: clip (torch.tensor): Video clip to be cropped. Size is (T, C, H, W) Returns: torch.tensor: scale resize
datasets/video_utils.py:259
Method__call__
Args: clip (torch.tensor): Video clip to be cropped. Size is (T, C, H, W) Returns: torch.tensor: scale resize
datasets/video_utils.py:301
Method__call__
(self, clip)
datasets/video_utils.py:340
Method__call__
Args: clip (torch.tensor): Video clip to be cropped. Size is (T, C, H, W) Returns: torch.tensor: center cropp
datasets/video_utils.py:363
Method__call__
Args: clip (torch.tensor): video clip must be normalized. Size is (C, T, H, W)
datasets/video_utils.py:392
Method__call__
Args: clip (torch.tensor, dtype=torch.uint8): Size is (T, C, H, W) Return: clip (torch.tensor, dtype=torch.fl
datasets/video_utils.py:412
Method__call__
Args: clip (torch.tensor): Size is (T, C, H, W) Return: clip (torch.tensor): Size is (T, C, H, W)
datasets/video_utils.py:435
Method__call__
(self, total_frames)
datasets/video_utils.py:463
Method__getitem__
(self, key)
transport/utils.py:9
Method__getitem__
(self, index)
datasets/video_utils.py:513
Method__getitem__
(self, index)
datasets/dataset_wrapper.py:10
Method__init__
(self, *args, **kwargs)
model_zigma.py:69
Method__init__
(self, query_dim, context_dim=None, heads=8, dim_head=64, dropout=0.0)
model_zigma.py:96
Method__init__
(self, drop_prob: float = 0.0, scale_by_keep: bool = True)
model_zigma.py:165
Method__init__
( self, in_channels, hidden_size, uncond_prob, act_layer=nn.GELU(appro
model_zigma.py:182
Method__init__
(self, hidden_size, dtype, frequency_embedding_size=256)
model_zigma.py:237
Method__init__
(self, num_classes, hidden_size, dropout_prob)
model_zigma.py:283
Method__init__
(self, hidden_size, patch_size, out_channels, cond=False)
model_zigma.py:318
Method__init__
( self, in_channels: int, embed_dim: int, depth: int, img_dim: int,
model_zigma.py:549
Method__init__
(self, device="cuda", choices=["fid"], video_frame=None)
my_metrics.py:14
Method__init__
(self, optimizer, step, model=None, model_ema=None)
utils/train_state_utils.py:22
Method__init__
( self, feature: Union[int, Module] = 2023, reset_real_features: bool = True,
utils/torchmetric_sfid.py:302
Method__init__
( self, feature: Union[int, Module] = 1024, reset_real_features: bool = True,
utils/torchmetric_fdd.py:231
Method__init__
( self, feature: Union[str, int, torch.nn.Module] = 2048, subsets: int = 100,
utils/torchmetric_kid.py:167
Method__init__
( self, feature: Union[int, Module] = 400, reset_real_features: bool = True, n
utils/torchmetric_fvd.py:310
Method__init__
( self, feature: Union[str, int, Module] = "logits_unbiased", splits: int = 10,
utils/torchmetric_inception.py:105
Method__init__
( self, feature: Union[str, int, torch.nn.Module] = 2048, reset_real_features: bool =
utils/torchmetric_prdc.py:96
Method__init__
( self, drift, diffusion, *, t0, t1, num_steps,
transport/integrators.py:12
Method__init__
( self, drift, *, t0, t1, sampler_type, num_steps,
transport/integrators.py:86
Method__init__
(self, sigma_min=0.1, sigma_max=20.0)
transport/path.py:142
Method__init__
(self, sigma=0.0)
transport/path.py:175
Method__init__
(self, sub_dict)
transport/utils.py:5
Method__init__
( self, *, model_type, path_type, loss_type, train_eps,
transport/transport.py:45
Method__init__
Constructor for a general sampler; supporting different sampling methods Args: - transport: an tranport object specify model predictio
transport/transport.py:239
Method__init__
(self, pretrained="state-spaces/mamba-2.8b", max_length=2048, batch_size=None, device="cuda",
dis_mamba/evals/lm_harness_eval.py:19
Method__init__
(self, hidden_size, eps=1e-5, device=None, dtype=None)
dis_mamba/mamba_ssm/ops/triton/layernorm.py:482
Method__init__
Simple block wrapping a mixer class with LayerNorm/RMSNorm and residual connection" This Block has a slightly different structure co
dis_mamba/mamba_ssm/modules/mamba_simple.py:612
Method__init__
( self, d_model: int, n_layer: int, vocab_size: int, initializer_cfg=N
dis_mamba/mamba_ssm/models/mixer_seq_simple.py:175
Method__init__
( self, version="openai/clip-vit-large-patch14", device="cuda", max_length=77 )
datasets/clip.py:16
Method__init__
(self, size)
datasets/video_utils.py:199
Method__init__
( self, size, interpolation_mode="bilinear", )
datasets/video_utils.py:243
Method__init__
( self, size, interpolation_mode="bilinear", )
datasets/video_utils.py:285
Method__init__
( self, size, interpolation_mode="bilinear", )
datasets/video_utils.py:324
Method__init__
( self, size, interpolation_mode="bilinear", )
datasets/video_utils.py:347
Method__init__
(self, mean, std, inplace=False)
datasets/video_utils.py:387
Method__init__
(self)
datasets/video_utils.py:409
Method__init__
(self, p=0.5)
datasets/video_utils.py:432
Method__init__
(self, size)
datasets/video_utils.py:460
Method__init__
( self, csv_path, num_frames=16, frame_interval=1, transform=None,
datasets/video_utils.py:479
Method__init__
(self, *args, **kwargs)
datasets/dataset_wrapper.py:7
Method__init__
( self, tar_base, batch_size, image_size, train=None, validati
datasets/wds_dataloader.py:47
Method__init__
(self, in_channels, out_channels, name)
video_metrics/fvd/videogpt/pytorch_i3d.py:108
Method__init__
Initializes I3D model instance. Args: num_classes: The number of outputs in the logit layer (default 400, which matche
video_metrics/fvd/videogpt/pytorch_i3d.py:172
Method__len__
(self)
datasets/video_utils.py:558
Method__len__
(self)
datasets/dataset_wrapper.py:18
← previousnext →201–300 of 471, ranked by callers