MCPcopy Create free account

hub / github.com/NVlabs/Sana / functions

Functions2,606 in github.com/NVlabs/Sana

Methodconvert_velocity_to_x0
Convert the diffusion network's velocity prediction to x0 predidction. velocity: the predicted noise with shape [B, C, H, W]
diffusion/scheduler/longlive_flow_euler_sampler.py:67
Methodconvert_velocity_to_x0
Convert the diffusion network's velocity prediction to x0 predidction. velocity: the predicted noise with shape [B, C, H, W]
diffusion/longsana/utils/scheduler.py:61
Methodconvert_x0_to_noise
Convert the diffusion network's x0 prediction to noise predidction. x0: the predicted clean data with shape [B, C, H, W] xt:
diffusion/scheduler/longlive_flow_euler_sampler.py:30
Functioncopy_file
(remote, local)
diffusion/data/wids/wids_dl.py:65
Methodcopy_to
(self, fsdp_module)
diffusion/longsana/utils/distributed.py:130
Methodcreate_diagonal_mask
(self, N_pad, N, num_frames, block_size=1, mask_type="nlogn")
diffusion/model/nets/sana_multi_scale_video_camctrl.py:1206
Functioncreate_named_schedule_sampler
Create a ScheduleSampler from a library of pre-defined samplers. :param name: the name of the sampler. :param diffusion: the diffusion ob
diffusion/model/timestep_sampler.py:29
Functioncreate_tar
(data_path)
tools/controlnet/inference_controlnet.py:64
Functioncustom_autotune
( configs, key, prune_configs_by=None, reset_to_zero=None, restore_value=None, pre_hoo
diffusion/model/nets/fastlinear/modules/utils/custom_autotune.py:99
Functioncustom_autotune
( configs, key, prune_configs_by=None, reset_to_zero=None, restore_value=None, pre_hoo
diffusion/model/nets/fastlinear/modules/triton_lite_mla_kernels/custom_autotune.py:99
Functioncustom_collate_fn
custom_collate_fn is used to print the index information when the original collate_fn fails
diffusion/data/builder.py:29
Methodcustom_decode
(sample)
tools/metrics/clip-score/clip_score.py:191
Functiondc_ae_f128c512
(name: str, pretrained_path: Optional[str] = None)
diffusion/model/dc_ae/efficientvit/models/efficientvit/dc_ae.py:862
Functiondc_ae_f32c32
(name: str, pretrained_path: str)
diffusion/model/dc_ae/efficientvit/models/efficientvit/dc_ae.py:801
Functiondc_ae_f64c128
(name: str, pretrained_path: Optional[str] = None)
diffusion/model/dc_ae/efficientvit/models/efficientvit/dc_ae.py:844
Functiondc_vae_f32
(name: str, pretrained_path: str)
diffusion/model/dc_ae/efficientvit/models/efficientvit/dc_ae.py:734
Methodddim_reverse_sample
Sample x_{t+1} from the model using DDIM reverse ODE.
diffusion/model/gaussian_diffusion.py:596
Methodddim_sample_loop
Generate samples from the model using DDIM. Same usage as p_sample_loop().
diffusion/model/gaussian_diffusion.py:633
Methoddecode
(self, zs)
diffusion/model/wan2_2/vae.py:993
Methoddecode
(self, latent: torch.Tensor)
diffusion/model/dc_ae/efficientvit/ae_model_zoo.py:116
Methoddecode
(self, x: torch.Tensor)
diffusion/model/dc_ae/efficientvit/models/efficientvit/dc_ae.py:713
Methoddecode_with_cache
Decode one latent chunk with persistent decoder feature cache. For decoder_causal=False model: decodes each chunk independently with:
diffusion/model/ltx2/causal_vae.py:1621
Functiondecorator
(fn)
diffusion/model/nets/fastlinear/modules/utils/custom_autotune.py:111
Functiondecorator
(fn)
diffusion/model/nets/fastlinear/modules/triton_lite_mla_kernels/custom_autotune.py:111
Functiondefault_decoder
A default decoder for webdataset. This handles common file extensions: .txt, .cls, .cls2, .jpg, .png, .json, .npy, .mp, .pt, .pth, .pickl
diffusion/data/wids/wids.py:151
Functiondefault_train
(n_px)
diffusion/data/transforms.py:245
Functiondefault_train_video
(image_size=(256, 256))
diffusion/data/transforms.py:258
Functiondelete_directory
(exp_name)
tools/controlnet/inference_controlnet.py:72
Functiondeprecate
(*args, take_from: Optional[Union[Dict, Any]] = None, standard_warn=True, stacklevel=2)
diffusion/utils/import_utils.py:48
Functiondepthwise_conv_fwd_kernel
Input: x: (B, H, W, C) weight: (C, K, K) bias: (C,) Output: y: (B, H, W, C)
diffusion/model/nets/fastlinear/modules/triton_mb_conv_pre_glu_kernels/depthwise_conv_fwd.py:60
Functiondeselect
()
app/app_sana.py:232
Functiondevice
()
tools/metrics/pytorch-fid/tests/test_fid_score.py:9
Functiondist_barrier
()
diffusion/model/dc_ae/efficientvit/apps/utils/dist.py:66
Methoddtype
(self)
diffusion/model/nets/sana_blocks.py:1008
Methoddtype
(self)
diffusion/model/nets/sana_blocks.py:1045
Methoddtype
(self)
diffusion/model/nets/sana.py:412
Methoddtype
(self)
diffusion/model/nets/sana_U_shape.py:348
Functiondummy_statistics
(path, model, batch_size, dims, device, num_workers)
tools/metrics/pytorch-fid/tests/test_fid_score.py:18
Methoddynamic_thresholding_fn
The dynamic thresholding method.
diffusion/model/dpm_solver.py:784
Methoddynamic_thresholding_fn
The dynamic thresholding method.
diffusion/model/sa_solver.py:398
Methodedm_inverse_sigma
(self, edmsigma)
diffusion/model/dpm_solver.py:259
Functionedm_sampler
( net, latents, class_labels=None, cfg_scale=None, randn_like=torch.randn_like, num_st
diffusion/model/edm_sample.py:32
Methodedm_sigma
(self, t)
diffusion/model/dpm_solver.py:256
Methodenable_gradient_checkpointing
(self)
diffusion/scheduler/longlive_flow_euler_sampler.py:214
Methodencode
(self, videos)
diffusion/model/wan2_2/vae.py:983
Methodencode
(self, x: torch.Tensor)
diffusion/model/dc_ae/efficientvit/ae_model_zoo.py:110
Methodencode
(self, x: torch.Tensor)
diffusion/model/dc_ae/efficientvit/models/efficientvit/dc_ae.py:640
Methodencode_latent
(self, image)
app/sana_pipeline_inpaint.py:199
Methodepoch_format
(self, epoch: int)
diffusion/model/dc_ae/efficientvit/apps/trainer/run_config.py:124
Functionexport_onnx
Export a model to a platform-specific onnx format. Args: model: a torch.nn.Module object. export_path: export location. s
diffusion/model/dc_ae/efficientvit/apps/utils/export.py:29
Methodextra_repr
(self)
diffusion/model/norms.py:36
Methodextra_repr
(self)
diffusion/model/nets/sana_blocks.py:1786
Methodextra_repr
(self)
diffusion/model/nets/fastlinear/modules/nn/norm.py:37
Methodfeat_map
Get the feature cache map.
diffusion/model/ltx2/causal_vae.py:103
Methodffmpeg_command
(self)
inference_video_scripts/wm/streaming_mp4_writer.py:165
Functionfilter_top_bottom_k_gpu
(data, unique_num, num_in_group, k=2)
diffusion/post_training/stat_tracking.py:76
Functionfind_index_file
(file)
diffusion/data/wids/wids_tar.py:28
Methodfinish
(self)
diffusion/refiner/diffusers_ltx2_refiner.py:2211
Functionflip_and_shift
Flip a sequence and shift it right by one step. The operation reverses the sequence, drops the last element, and pads the front with ``shift_
diffusion/model/nets/sana_gdn_blocks.py:71
Functionflux1_compile_clipscore
()
configs/sol_rl/flux1.py:186
Functionflux1_compile_hpsv2
()
configs/sol_rl/flux1.py:192
Functionflux1_compile_imagereward
()
configs/sol_rl/flux1.py:198
Functionflux1_compile_pickscore
()
configs/sol_rl/flux1.py:180
Functionflux1_diffusionnft_clipscore
()
configs/sol_rl/flux1.py:142
Functionflux1_diffusionnft_hpsv2
()
configs/sol_rl/flux1.py:146
Functionflux1_diffusionnft_imagereward
()
configs/sol_rl/flux1.py:150
Functionflux1_diffusionnft_pickscore
()
configs/sol_rl/flux1.py:138
Functionflux1_naive_quant_clipscore
()
configs/sol_rl/flux1.py:215
Functionflux1_naive_quant_hpsv2
()
configs/sol_rl/flux1.py:221
Functionflux1_naive_quant_imagereward
()
configs/sol_rl/flux1.py:227
Functionflux1_naive_quant_pickscore
()
configs/sol_rl/flux1.py:209
Functionflux1_naive_scaling_clipscore
()
configs/sol_rl/flux1.py:163
Functionflux1_naive_scaling_hpsv2
()
configs/sol_rl/flux1.py:167
Functionflux1_naive_scaling_imagereward
()
configs/sol_rl/flux1.py:171
Functionflux1_naive_scaling_pickscore
()
configs/sol_rl/flux1.py:159
Functionflux1_sol_rl_clipscore
()
configs/sol_rl/flux1.py:248
Functionflux1_sol_rl_hpsv2
()
configs/sol_rl/flux1.py:256
Functionflux1_sol_rl_imagereward
()
configs/sol_rl/flux1.py:264
Functionflux1_sol_rl_pickscore
()
configs/sol_rl/flux1.py:240
MethodformatTime
(self, record, datefmt=None)
diffusion/utils/logger.py:56
Functionforward
(input)
diffusion/model/utils.py:80
Methodforward
Get Inception feature maps Parameters ---------- inp : torch.autograd.Variable Input tensor of shape Bx3xHxW. Val
tools/metrics/pytorch-fid/src/pytorch_fid/inception.py:126
Methodforward
(self, x)
tools/metrics/pytorch-fid/src/pytorch_fid/inception.py:224
Methodforward
(self, x)
tools/metrics/pytorch-fid/src/pytorch_fid/inception.py:249
Methodforward
(self, x)
tools/metrics/pytorch-fid/src/pytorch_fid/inception.py:277
Methodforward
(self, x)
tools/metrics/pytorch-fid/src/pytorch_fid/inception.py:310
Methodforward
( self, noisy_image_or_video: torch.Tensor, condition: torch.Tensor, timestep:
diffusion/scheduler/longlive_flow_euler_sampler.py:264
Methodforward
(ctx, input)
diffusion/utils/dist_utils.py:247
Methodforward
(ctx, input, group, group_size)
diffusion/utils/dist_utils.py:272
Methodforward
(self, img)
diffusion/post_training/rewards.py:33
Methodforward
(self, tensor)
diffusion/post_training/rewards.py:53
Methodforward
(self, x: torch.Tensor)
diffusion/model/norms.py:29
Methodforward
Forward pass through the RMSNorm layer. Args: x (torch.Tensor): The input tensor. Returns: torch.Te
diffusion/model/norms.py:216
Methodforward
(self, x, cache_x=None)
diffusion/model/wan2_2/vae.py:37
Methodforward
(self, x)
diffusion/model/wan2_2/vae.py:59
Methodforward
Fix bfloat16 support for nearest neighbor interpolation.
diffusion/model/wan2_2/vae.py:64
Methodforward
(self, x, feat_cache=None, feat_idx=[0])
diffusion/model/wan2_2/vae.py:105
Methodforward
(self, x, feat_cache=None, feat_idx=[0])
diffusion/model/wan2_2/vae.py:196
Methodforward
(self, x)
diffusion/model/wan2_2/vae.py:236
Methodforward
(self, x: torch.Tensor)
diffusion/model/wan2_2/vae.py:310
← previousnext →2,001–2,100 of 2,606, ranked by callers