MCPcopy Create free account

hub / github.com/CompVis/zigma / functions

Functions471 in github.com/CompVis/zigma

Method__repr__
(self)
datasets/video_utils.py:233
Method__repr__
(self)
datasets/video_utils.py:275
Method__repr__
(self)
datasets/video_utils.py:315
Method__repr__
(self)
datasets/video_utils.py:374
Method__repr__
(self)
datasets/video_utils.py:399
Method__repr__
(self)
datasets/video_utils.py:421
Method__repr__
(self)
datasets/video_utils.py:446
Method_fn
(t, x)
transport/integrators.py:109
Function_init_weights
( module, n_layer, initializer_range=0.02, # Now only used for embedding layer. rescale_preno
model_zigma.py:512
Function_init_weights
( module, n_layer, initializer_range=0.02, # Now only used for embedding layer. rescale_preno
dis_mamba/mamba_ssm/models/mixer_seq_simple.py:51
Function_layer_norm_bwd_kernel
( X, # pointer to the input W, # pointer to the weights B, # pointer to the biases Y, # po
dis_mamba/mamba_ssm/ops/triton/layernorm.py:196
Function_layer_norm_fwd_1pass_kernel
( X, # pointer to the input Y, # pointer to the output W, # pointer to the weights B, # po
dis_mamba/mamba_ssm/ops/triton/layernorm.py:65
Method_likelihood_drift
(x, t, model, **model_kwargs)
transport/transport.py:437
Method_model_generate
(self, context, max_length, stop, **generation_kwargs)
dis_mamba/evals/lm_harness_eval.py:34
Method_sample
(init_z, model, **model_kwargs)
transport/transport.py:360
Method_sample_fn
(x, model, **model_kwargs)
transport/transport.py:469
Function_selective_scan_update_kernel
( # Pointers to matrices state_ptr, x_ptr, dt_ptr, dt_bias_ptr, A_ptr, B_ptr, C_ptr, D_ptr, z_ptr, out
dis_mamba/mamba_ssm/ops/triton/selective_state_update.py:21
Methodallocate_inference_cache
(self, batch_size, max_seqlen, dtype=None, **kwargs)
model_zigma.py:462
Methodallocate_inference_cache
(self, batch_size, max_seqlen, dtype=None, **kwargs)
dis_mamba/mamba_ssm/modules/mamba_simple.py:678
Methodallocate_inference_cache
(self, batch_size, max_seqlen, dtype=None, **kwargs)
dis_mamba/mamba_ssm/models/mixer_seq_simple.py:213
Methodbackward
(ctx, dout, *args)
dis_mamba/mamba_ssm/ops/selective_scan_interface.py:50
Methodbackward
(ctx, dout)
dis_mamba/mamba_ssm/ops/selective_scan_interface.py:228
Methodbackward
(ctx, dout)
dis_mamba/mamba_ssm/ops/selective_scan_interface.py:369
Methodbackward
(ctx, dout)
dis_mamba/mamba_ssm/ops/selective_scan_interface.py:521
Methodbackward
(ctx, dout, *args)
dis_mamba/mamba_ssm/ops/triton/layernorm.py:568
Methodbatch_size
(self)
dis_mamba/evals/lm_harness_eval.py:31
Functionbimamba_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:673
Methodbody_fn
(x, t, model, **model_kwargs)
transport/transport.py:203
Functioncausal_conv1d_bwd
dis_causal_conv1d/csrc/causal_conv1d.cpp:191
Functioncausal_conv1d_fwd
dis_causal_conv1d/csrc/causal_conv1d.cpp:130
Functioncenter_crop_arr
Center cropping implementation from ADM. https://github.com/openai/guided-diffusion/blob/8fb3ad9197f16bbc40620447b2742e13458d2831/guided_diff
utils/train_utils.py:80
Functioncexp2f
From https://stackoverflow.com/questions/9860711/cucomplex-h-and-exp and https://forums.developer.nvidia.com/t/complex-number-exponential-function/246
dis_mamba/csrc/selective_scan/selective_scan_common.h:94
Functioncexpf
dis_mamba/csrc/selective_scan/selective_scan_common.h:101
Methodckpt_forward
(*inputs)
model_zigma.py:905
Methodcompute
Calculate KID score based on accumulated extracted features from the two distributions. Returns a tuple of mean and standard deviation of KID
utils/torchmetric_kid.py:247
Methodcompute
Calculate PRDC score based on accumulated extracted features from the two distributions. Implementation inspired by `Fid Score`_
utils/torchmetric_prdc.py:146
Methodcompute_alpha_t
Compute coefficient of x1
transport/path.py:149
Methodcompute_alpha_t
Compute coefficient of x1
transport/path.py:178
Methodcompute_d_alpha_alpha_ratio_t
Special purposed function for computing numerical stabled d_alpha_t / alpha_t
transport/path.py:163
Methodcompute_d_alpha_alpha_ratio_t
Special purposed function for computing numerical stabled d_alpha_t / alpha_t
transport/path.py:190
Methodcompute_drift
Compute the drift term of the SDE
transport/path.py:167
Methodcompute_sigma_t
Compute coefficient of x0
transport/path.py:156
Methodcompute_sigma_t
Compute coefficient of x0
transport/path.py:184
Functiondict_collation_fn
Take a list of samples (as dictionary) and create a batch, preserving the keys. If `tensors` is True, `ndarray` objects are combined into ten
datasets/wds_dataloader.py:15
Methoddiffusion_fn
(x, t)
transport/transport.py:259
Functiondispatch
(input_ids, position_ids, seqlen)
dis_mamba/mamba_ssm/utils/generation.py:321
Methodencode
(self, text)
datasets/clip.py:47
Methodextra_repr
(self)
model_zigma.py:173
Methodextract_features
(self, x)
video_metrics/fvd/videogpt/pytorch_i3d.py:318
Functionflops
(model, shape=(3, 32, 32))
model_zigma.py:1183
Methodforward
(self, x)
model_zigma.py:72
Methodforward
(self, x, text, mask=None)
model_zigma.py:112
Methodforward
(self, x)
model_zigma.py:170
Methodforward
(self, caption, train, force_drop_ids=None)
model_zigma.py:215
Methodforward
(self, t)
model_zigma.py:270
Methodforward
(self, labels, train, force_drop_ids=None)
model_zigma.py:305
Methodforward
(self, x, c=None)
model_zigma.py:329
Methodforward
Forward method of inception net. Copy of the forward method from this file: https://github.com/toshas/torch-fidelity/blob/master/torc
utils/torchmetric_sfid.py:85
Methodforward
(self, *args, **kwargs)
utils/torchmetric_fdd.py:78
Methodforward
(self, *args)
utils/torchmetric_fvd.py:184
Methodforward
(ctx, x, weight, bias=None, activation=None)
dis_causal_conv1d/causal_conv1d/causal_conv1d_interface.py:12
Methodforward
(ctx, u, delta, A, B, C, D=None, z=None, delta_bias=None, delta_softplus=False, return_last_st
dis_mamba/mamba_ssm/ops/selective_scan_interface.py:17
Methodforward
xz: (batch, dim, seqlen)
dis_mamba/mamba_ssm/ops/selective_scan_interface.py:159
Methodforward
xz: (batch, dim, seqlen)
dis_mamba/mamba_ssm/ops/selective_scan_interface.py:296
Methodforward
xz: (batch, dim, seqlen)
dis_mamba/mamba_ssm/ops/selective_scan_interface.py:441
Methodforward
( ctx, x, weight, bias, residual=None, eps=1e-6, preno
dis_mamba/mamba_ssm/ops/triton/layernorm.py:382
Methodforward
(self, x, residual=None, prenorm=False, residual_in_fp32=False)
dis_mamba/mamba_ssm/ops/triton/layernorm.py:493
Methodforward
( ctx, x, norm_weight, norm_bias, linear_weight, linear_bias,
dis_mamba/mamba_ssm/ops/triton/layernorm.py:509
Methodforward
(self, hidden_states, inference_params=None)
dis_mamba/mamba_ssm/modules/mamba_simple.py:270
Methodforward
r"""Pass the input through the encoder layer. Args: hidden_states: the sequence to the encoder layer (required). resi
dis_mamba/mamba_ssm/modules/mamba_simple.py:643
Methodforward
(self, input_ids, inference_params=None)
dis_mamba/mamba_ssm/models/mixer_seq_simple.py:148
Methodforward
"position_ids" is just to be compatible with Transformer generation. We don't use it. num_last_tokens: if > 0, only return the logits
dis_mamba/mamba_ssm/models/mixer_seq_simple.py:216
Methodforward
(self, text)
datasets/clip.py:31
Methodforward
(self, x)
video_metrics/fvd/videogpt/pytorch_i3d.py:15
Methodforward
(self, x)
video_metrics/fvd/videogpt/pytorch_i3d.py:127
Methodforward
(self, x)
video_metrics/fvd/videogpt/pytorch_i3d.py:305
Methodforward_with_cfg
(self, x, t, y, cfg_scale)
model_zigma.py:992
Functionfrechet_distance
(feats_fake: np.ndarray, feats_real: np.ndarray)
video_metrics/fvd/styleganv/fvd.py:81
Functiongenerate_run_id
(exp_name)
wandb_utils.py:62
Functionget_fvd_logits
(videos, i3d, device, bs=10)
video_metrics/fvd/videogpt/fvd.py:62
Methodget_noise_from_velocity
Wrapper function: transfrom velocity prediction model to denoiser Args: velocity: [batch_dim, ...] shaped tensor; velocity model o
transport/path.py:86
Functionget_transforms_image
(image_size=256)
datasets/video_utils.py:576
Functionget_transforms_video
(resolution=256)
datasets/video_utils.py:562
Methodget_velocity_from_score
Wrapper function: transfrom score prediction model to velocity Args: score: [batch_dim, ...] shaped tensor; score model output
transport/path.py:102
Functiongilbert_zigzag_path
(N)
utils/utils_gilbert.py:116
Functionhilbert_path_square
(num_dims=2, N=4)
utils/utils_zigzag.py:242
Functioninitialize
(args, entity, exp_name, project_name, wandb_dir)
wandb_utils.py:67
Functioninitialize_train_state
(config, model, model_ema , device)
utils/train_state_utils.py:71
Functionlayer_norm_fn
( x, weight, bias, residual=None, eps=1e-6, prenorm=False, residual_in_fp32=False,
dis_mamba/mamba_ssm/ops/triton/layernorm.py:464
Functionlayer_norm_linear_fn
( x, norm_weight, norm_bias, linear_weight, linear_bias, residual=None, eps=1e-6,
dis_mamba/mamba_ssm/ops/triton/layernorm.py:613
Functionlayer_norm_ref
(x, weight, bias, residual=None, eps=1e-6, prenorm=False, upcast=False)
dis_mamba/mamba_ssm/ops/triton/layernorm.py:19
Functionload_i3d_pretrained
(device=torch.device('cpu'))
video_metrics/fvd/styleganv/fvd.py:9
Functionload_input
dis_mamba/csrc/selective_scan/selective_scan_common.h:149
Functionload_weight
dis_mamba/csrc/selective_scan/selective_scan_common.h:166
Functionlog
(stats, step=None)
wandb_utils.py:80
Functionlog_image
(sample, step=None)
wandb_utils.py:85
Functionlog_state
(state)
transport/utils.py:18
Functionmodify_logits_for_top_k_filtering
Set the logits for none top-k values to -inf. Done in-place.
dis_mamba/mamba_ssm/utils/generation.py:39
Functionnamespace_to_dict
(namespace)
wandb_utils.py:24
Methodnoise_ode
(x, t, model, **model_kwargs)
transport/transport.py:183
← previousnext →301–400 of 471, ranked by callers