MCPcopy Create free account

hub / github.com/CompVis/zigma / functions

Functions471 in github.com/CompVis/zigma

↓ 1 callersMethod__init__
( self, d_model: int, n_layer: int, vocab_size: int, ssm_cfg=None,
dis_mamba/mamba_ssm/models/mixer_seq_simple.py:84
↓ 1 callersMethod__init__
(self)
datasets/clip.py:6
↓ 1 callersFunction_compute_fid
r"""Compute adjusted version of `Fid Score`_. The Frechet Inception Distance between two multivariate Gaussians X_x ~ N(mu_1, sigm_1) and X_y
utils/torchmetric_sfid.py:179
↓ 1 callersFunction_compute_fid
r"""Compute adjusted version of `Fid Score`_. The Frechet Inception Distance between two multivariate Gaussians X_x ~ N(mu_1, sigm_1) and X_y
utils/torchmetric_fdd.py:108
↓ 1 callersFunction_compute_fid
r"""Compute adjusted version of `Fid Score`_. The Frechet Inception Distance between two multivariate Gaussians X_x ~ N(mu_1, sigm_1) and X_y
utils/torchmetric_fvd.py:188
↓ 1 callersMethod_get_states_from_cache
( self, inference_params, batch_size, initialize_states=False )
dis_mamba/mamba_ssm/modules/mamba_simple.py:575
↓ 1 callersMethod_mamba_inner_forward
hidden_states: (B, L, D) Returns: same shape as hidden_states
dis_mamba/mamba_ssm/modules/mamba_simple.py:274
↓ 1 callersFunctionallocate_inference_cache
( max_batch_size, max_seqlen, nheads, headdim, layers: Union[int, Sequence], device,
dis_mamba/mamba_ssm/utils/generation.py:226
↓ 1 callersMethodallocate_inference_cache
(self, batch_size, max_seqlen, dtype=None, **kwargs)
dis_mamba/mamba_ssm/modules/mamba_simple.py:554
↓ 1 callersMethodallocate_inference_cache
(self, batch_size, max_seqlen, dtype=None, **kwargs)
dis_mamba/mamba_ssm/utils/generation.py:204
↓ 1 callersMethodallocate_inference_cache
(self, batch_size, max_seqlen, dtype=None, **kwargs)
dis_mamba/mamba_ssm/models/mixer_seq_simple.py:142
↓ 1 callersFunctionappend_nvcc_threads
(nvcc_extra_args)
dis_causal_conv1d/setup.py:84
↓ 1 callersFunctionappend_nvcc_threads
(nvcc_extra_args)
dis_mamba/setup.py:85
↓ 1 callersFunctionarray2grid
(x, to255=False)
wandb_utils.py:91
↓ 1 callersFunctionbackward_permutation
(o_main, _perm_rev)
dis_mamba/mamba_ssm/modules/mamba_simple.py:60
↓ 1 callersMethodbuild
(self)
video_metrics/fvd/videogpt/pytorch_i3d.py:301
↓ 1 callersFunctioncalculate_lpips
(videos1, videos2, device)
video_metrics/calculate_lpips.py:25
↓ 1 callersFunctioncalculate_psnr
(videos1, videos2)
video_metrics/calculate_psnr.py:20
↓ 1 callersFunctioncalculate_ssim
(videos1, videos2)
video_metrics/calculate_ssim.py:47
↓ 1 callersFunctioncalculate_ssim_function
(img1, img2)
video_metrics/calculate_ssim.py:26
↓ 1 callersFunctioncapture_graph
( model, inference_params, batch_size, max_seqlen, decoding_seqlen=1, mempool=None, n_warmups=2 )
dis_mamba/mamba_ssm/utils/generation.py:330
↓ 1 callersFunctioncausal_conv1d_ref
x: (batch, dim, seqlen) weight: (dim, width) bias: (dim,) out: (batch, dim, seqlen)
dis_causal_conv1d/causal_conv1d/causal_conv1d_interface.py:49
↓ 1 callersFunctioncausal_conv1d_update
x: (batch, dim) conv_state: (batch, dim, width) weight: (dim, width) bias: (dim,) out: (batch, dim)
dis_causal_conv1d/causal_conv1d/causal_conv1d_interface.py:68
↓ 1 callersFunctioncausal_conv1d_update
dis_causal_conv1d/csrc/causal_conv1d.cpp:270
↓ 1 callersFunctioncausal_conv1d_update_ref
x: (batch, dim) conv_state: (batch, dim, width) weight: (dim, width) bias: (dim,) out: (batch, dim)
dis_causal_conv1d/causal_conv1d/causal_conv1d_interface.py:83
↓ 1 callersFunctioncenter_crop_arr
Center cropping implementation from ADM. https://github.com/openai/guided-diffusion/blob/8fb3ad9197f16bbc40620447b2742e13458d2831/guided_diff
datasets/video_utils.py:15
↓ 1 callersFunctioncenter_crop_using_short_edge
(clip)
datasets/video_utils.py:113
↓ 1 callersFunctioncheck_if_cuda_home_none
(global_option: str)
dis_causal_conv1d/setup.py:72
↓ 1 callersFunctioncheck_if_cuda_home_none
(global_option: str)
dis_mamba/setup.py:73
↓ 1 callersMethodckpt_wrapper
(self, module)
model_zigma.py:904
↓ 1 callersFunctioncnt_params
(model)
utils/train_state_utils.py:67
↓ 1 callersMethodcompute
Calculate FID score based on accumulated extracted features from the two distributions.
utils/torchmetric_sfid.py:386
↓ 1 callersMethodcompute
Calculate FID score based on accumulated extracted features from the two distributions.
utils/torchmetric_fdd.py:315
↓ 1 callersMethodcompute
Compute metric.
utils/torchmetric_inception.py:151
↓ 1 callersMethodcompute_d_alpha_alpha_ratio_t
Compute the ratio between d_alpha and alpha
transport/path.py:31
↓ 1 callersMethodcompute_diffusion
Compute the diffusion term of the SDE Args: x: [batch_dim, ...], data point t: [batch_dim,], time vector form: s
transport/path.py:45
↓ 1 callersMethodcompute_mu_t
Compute the mean of time-dependent density p_t
transport/path.py:114
↓ 1 callersMethodcompute_ut
Compute the vector field corresponding to p_t
transport/path.py:126
↓ 1 callersMethodcompute_xt
Sample xt from time-dependent density p_t; rng is required
transport/path.py:121
↓ 1 callersFunctioncreate_block
( d_model, ssm_cfg=None, has_text=False, norm_epsilon=1e-5, drop_path=0.0, rms_norm=Fa
model_zigma.py:468
↓ 1 callersFunctioncreate_block
( d_model, ssm_cfg=None, norm_epsilon=1e-5, rms_norm=False, residual_in_fp32=False, fu
dis_mamba/mamba_ssm/models/mixer_seq_simple.py:21
↓ 1 callersFunctiondefault
(val, d)
model_zigma.py:89
↓ 1 callersFunctiondraw_pineao_curve
()
utils/utils_zigzag.py:305
↓ 1 callersFunctiondrop_path
Drop paths (Stochastic Depth) per sample (when applied in main path of residual blocks). This is the same as the DropConnect impl I created for E
model_zigma.py:138
↓ 1 callersFunctionema
(model_dest: nn.Module, model_src: nn.Module, rate)
utils/train_state_utils.py:13
↓ 1 callersMethodema_update
(self, rate=0.9999)
utils/train_state_utils.py:28
↓ 1 callersFunctionexists
(val)
model_zigma.py:81
↓ 1 callersFunctionflops_selective_scan_fn
u: r(B D L) delta: r(B D L) A: r(D N) B: r(B N L) C: r(B N L) D: r(D) z: r(B D L) delta_bias: r(D), fp32 ignores
model_zigma.py:1140
↓ 1 callersMethodforward
r"""Pass the input through the encoder layer. Args: hidden_states: the sequence to the encoder layer (required). resi
model_zigma.py:388
↓ 1 callersMethodforward
x: (N, C, H, W) tensor of spatial inputs (images or latent representations of images), t: (N,) tensor of diffusion timesteps
model_zigma.py:911
↓ 1 callersFunctionforward_permutation
(xz_main, _perm)
dis_mamba/mamba_ssm/modules/mamba_simple.py:55
↓ 1 callersFunctionfrechet_distance
(x1, x2)
video_metrics/fvd/videogpt/fvd.py:113
↓ 1 callersMethodfreeze
(self)
datasets/clip.py:26
↓ 1 callersFunctionget_2d_sincos_pos_embed_from_grid
(embed_dim, grid)
model_zigma.py:1038
↓ 1 callersFunctionget_cap_generator
()
train_acc.py:375
↓ 1 callersFunctionget_cap_generator
()
sample_acc.py:117
↓ 1 callersFunctionget_cuda_bare_metal_version
(cuda_dir)
dis_causal_conv1d/setup.py:61
↓ 1 callersFunctionget_cuda_bare_metal_version
(cuda_dir)
dis_mamba/setup.py:62
↓ 1 callersFunctionget_data_generator
()
train_acc.py:287
↓ 1 callersFunctionget_data_generator
()
sample_acc.py:278
↓ 1 callersMethodget_drift
member function for obtaining the drift of the probability flow ODE
transport/transport.py:175
↓ 1 callersFunctionget_feats
(videos, detector, device, bs=10)
video_metrics/fvd/styleganv/fvd.py:21
↓ 1 callersFunctionget_kth_value
Args: unsorted: numpy.ndarray of any dimensionality. k: int Returns: kth values along the designated axis.
utils/torchmetric_prdc.py:47
↓ 1 callersFunctionget_latest_checkpoint
(checkpoint_dir)
utils/train_utils.py:136
↓ 1 callersFunctionget_logits
(input_ids, inference_params)
dis_mamba/mamba_ssm/utils/generation.py:140
↓ 1 callersFunctionget_logits
(i3d, videos, device, bs=10)
video_metrics/fvd/videogpt/fvd.py:128
↓ 1 callersFunctionget_max_ckpt_from_dir
(dir_path)
wandb_utils.py:31
↓ 1 callersMethodget_params
(self, clip)
datasets/video_utils.py:216
↓ 1 callersFunctionget_platform
Returns the platform name as used in wheel filenames.
dis_causal_conv1d/setup.py:46
↓ 1 callersFunctionget_platform
Returns the platform name as used in wheel filenames.
dis_mamba/setup.py:47
↓ 1 callersFunctionget_real_img_generator
()
train_acc.py:327
↓ 1 callersMethodget_score
member function for obtaining score of x_t = alpha_t * x + sigma_t * eps
transport/transport.py:212
↓ 1 callersMethodget_score_from_velocity
Wrapper function: transfrom velocity prediction model to score Args: velocity: [batch_dim, ...] shaped tensor; velocity model outp
transport/path.py:70
↓ 1 callersFunctionget_wheel_url
()
dis_causal_conv1d/setup.py:166
↓ 1 callersFunctionget_wheel_url
()
dis_mamba/setup.py:174
↓ 1 callersFunctiongilbert_xy2d
Generalized Hilbert ('gilbert') space-filling curve for arbitrary-sized 2D rectangular grids. Takes a discrete 2D coordinate and maps it to t
utils/utils_gilbert.py:9
↓ 1 callersFunctiongilbert_xy2d
Generalized Hilbert ('gilbert') space-filling curve for arbitrary-sized 2D rectangular grids. Takes a discrete 2D coordinate and maps it to t
utils/utils_zigzag.py:16
↓ 1 callersFunctiongilbert_zigzag_path
(N)
utils/utils_zigzag.py:123
↓ 1 callersFunctiongrad_clip
(opt, model, max_grad_norm=2.0)
utils/train_utils.py:124
↓ 1 callersFunctionhflip
Args: clip (torch.tensor): Video clip to be normalized. Size is (T, C, H, W) Returns: flipped clip (torch.tensor): Size is (T
datasets/video_utils.py:186
↓ 1 callersFunctionhilbert_path
(N=16)
utils/utils_zigzag.py:285
↓ 1 callersFunctionimg_psnr
(img1, img2)
video_metrics/calculate_psnr.py:6
↓ 1 callersFunctioninit_zs
(args, device, in_channels, input_size)
train_acc.py:86
↓ 1 callersMethodinitialize_weights
(self)
model_zigma.py:840
↓ 1 callersFunctionload_config_hf
(model_name)
dis_mamba/mamba_ssm/utils/hf.py:9
↓ 1 callersFunctionload_i3d_pretrained
(device=torch.device('cpu'))
video_metrics/fvd/videogpt/fvd.py:8
↓ 1 callersFunctionload_state_dict_hf
(model_name, device=None, dtype=None)
dis_mamba/mamba_ssm/utils/hf.py:14
↓ 1 callersFunctionmain
(args)
train_acc.py:113
↓ 1 callersFunctionmain
Run sampling.
sample_acc.py:35
↓ 1 callersFunctionmain
()
video_metrics/calculate_psnr.py:72
↓ 1 callersFunctionmain
()
video_metrics/calculate_lpips.py:82
↓ 1 callersFunctionmain
()
video_metrics/calculate_fvd.py:70
↓ 1 callersFunctionmain
()
video_metrics/calculate_ssim.py:99
↓ 1 callersFunctionmamba_inner_ref
( xz, conv1d_weight, conv1d_bias, x_proj_weight, delta_proj_weight, out_proj_weight, out_proj_bias,
dis_mamba/mamba_ssm/ops/selective_scan_interface.py:636
↓ 1 callersFunctionmaximum_mean_discrepancy
Adapted from `KID Score`_
utils/torchmetric_kid.py:29
↓ 1 callersFunctionnormalize
Args: clip (torch.tensor): Video clip to be normalized. Size is (T, C, H, W) mean (tuple): pixel RGB mean. Size is (3) st
datasets/video_utils.py:166
↓ 1 callersFunctionopen_url
Download the given URL and return a binary-mode file object to access the data.
utils/torchmetric_fvd.py:78
↓ 1 callersFunctionpeano_curve
(level, x, y, dx, dy)
utils/utils_zigzag.py:308
↓ 1 callersMethodplan
(self, t, x0, x1)
transport/path.py:133
↓ 1 callersFunctionpoly_mmd
Adapted from `KID Score`_
utils/torchmetric_kid.py:57
← previousnext →101–200 of 471, ranked by callers