Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NVlabs/Sana
/ functions
Functions
2,606 in github.com/NVlabs/Sana
⨍
Functions
2,606
◇
Types & classes
463
↳
Endpoints
11
Method
load_state_dict_from_2d
(self, state_dict: dict[str, torch.Tensor], method: str)
diffusion/model/dc_ae/efficientvit/models/nn/ops_3d.py:513
Method
load_state_dict_from_2d
(self, state_dict: dict[str, torch.Tensor], method: str)
diffusion/model/dc_ae/efficientvit/models/nn/ops_3d.py:523
Method
load_state_dict_from_2d
(self, state_dict: dict[str, torch.Tensor], method: str)
diffusion/model/dc_ae/efficientvit/models/nn/ops_3d.py:560
Function
lr_lambda
(current_step)
diffusion/utils/lr_scheduler.py:92
Function
main
( start_idx, end_idx, base_dir, model_name="Efficient-Large-Model/NVILA-Lite-2B-Verifier",
tools/inference_scaling/nvila_sana_pick.py:76
Function
main
(_)
train_scripts/sol_rl/train_flux1.py:471
Function
main
(_)
train_scripts/sol_rl/train_sana.py:408
Function
main
(_)
train_scripts/sol_rl/train_sd3.py:500
Function
make_noise_disk
(H, W, C, F)
tools/controlnet/annotator/util.py:60
Method
marginal_lambda
Compute lambda_t = log(alpha_t) - log(sigma_t) of a given continuous-time label t in [0, T].
diffusion/model/dpm_solver.py:241
Function
mask_fn
(b, h, q_idx, kv_idx)
diffusion/model/nets/sana_gdn_blocks.py:884
Method
mask_mod
(b, h, q_idx, kv_idx)
diffusion/model/nets/sana_multi_scale_video_camctrl.py:1102
Method
mask_mod
(b, h, q_idx, kv_idx)
diffusion/model/nets/sana_multi_scale_video_camctrl.py:1824
Function
matmul
(a: torch.Tensor, b: torch.Tensor, compute_dtype: torch.dtype, output_dtype: torch.dtype)
diffusion/model/nets/fastlinear/modules/triton_lite_mla_kernels/mm.py:192
Function
matmul_kernel
Kernel for computing the matmul C = A x B. A has shape (M, K), B has shape (K, N) and C has shape (M, N)
diffusion/model/nets/fastlinear/modules/triton_lite_mla_kernels/mm.py:98
Function
min_max_norm
(x)
tools/controlnet/annotator/util.py:71
Function
model_wrapper
(scaled_x_t, t)
train_scripts/train_scm_ladd.py:432
Method
module_str
(self)
diffusion/model/nets/sana_blocks.py:294
Method
module_str
(self)
diffusion/model/nets/basic_modules.py:457
Method
module_str
(self)
diffusion/model/nets/fastlinear/modules/triton_lite_mla_fwd.py:106
Method
module_str
(self)
diffusion/model/nets/fastlinear/modules/lite_mla.py:98
Method
module_str
(self)
diffusion/model/nets/fastlinear/modules/triton_lite_mla.py:125
Method
module_str
(self)
diffusion/model/nets/fastlinear/modules/triton_mb_conv_pre_glu.py:113
Method
module_str
(self)
diffusion/model/nets/fastlinear/modules/mb_conv_pre_glu.py:97
Function
multi_score
(device, score_dict)
diffusion/post_training/rewards.py:379
Method
names
(self)
diffusion/data/wids/wids_mmtar.py:104
Method
none_allowed
(self)
diffusion/model/dc_ae/efficientvit/apps/trainer/run_config.py:50
Function
on_clear_mask
()
app/app_sana_inpaint.py:478
Function
on_mask_change
(mask_data)
app/app_sana_inpaint.py:434
Function
on_save_mask
()
app/app_sana_inpaint.py:495
Function
on_save_original
()
app/app_sana_inpaint.py:498
Method
out_features
(self)
train_scripts/sol_rl/train_utils.py:403
Method
output_path
(self)
inference_video_scripts/wm/streaming_mp4_writer.py:157
Method
p_mean_variance
(self, model, *args, **kwargs)
diffusion/model/respace.py:459
Method
p_sample_loop
Generate samples from the model. :param model: the model module. :param shape: the shape of the samples, (N, C, H, W).
diffusion/model/gaussian_diffusion.py:462
Method
pad_pair
(text: torch.Tensor, mask: torch.Tensor)
inference_video_scripts/wm/inference_sana_wm.py:1313
Function
pad_vk_mm_fwd_kernel_fp32_fp32
Kernel for computing the matmul C = A x B. A has shape (M, K), B has shape (K, N) and C has shape (M, N)
diffusion/model/nets/fastlinear/modules/triton_lite_mla_kernels/pad_vk_mm_fwd.py:60
Method
param_groups
(self)
diffusion/model/wan/clip.py:410
Function
parse
(x)
diffusion/model/utils.py:31
Function
parse_unknown_args
Parse unknown args.
diffusion/model/dc_ae/efficientvit/apps/utils/misc.py:45
Function
pickscore_score
(device)
diffusion/post_training/rewards.py:350
Function
pil_image
( tensor, **kwargs, )
scripts/inference_dpg.py:54
Function
pipe_download
Perform a download for a pipe: url.
diffusion/data/wids/wids_dl.py:57
Function
pixel_shuffle_3d
3D pixelshuffle operation.
diffusion/model/dc_ae/efficientvit/models/utils/video.py:62
Function
pixel_unshuffle_3d
3D pixel unshuffle operation.
diffusion/model/dc_ae/efficientvit/models/utils/video.py:79
Method
post_init
A few custom initialization steps that should be called after the object is created. Currently, the only one we have is to bind a few
diffusion/scheduler/longlive_flow_euler_sampler.py:206
Method
post_init
A few custom initialization steps that should be called after the object is created. Currently, the only one we have is to bind a few
diffusion/longsana/utils/model_wrapper.py:36
Method
prev_latent_tail
Get previous latent tail.
diffusion/model/ltx2/causal_vae.py:113
Function
process
(t)
tools/create_wids_metadata.py:32
Function
process_data_dict
(data_dict, seen_prompts)
diffusion/longsana/utils/lmdb.py:30
Method
process_sample
(sample)
tools/metrics/clip-score/clip_score.py:179
Method
process_xstart
(x)
diffusion/model/gaussian_diffusion.py:357
Method
progress
(self)
diffusion/model/dc_ae/efficientvit/apps/trainer/run_config.py:112
Function
proj_divide_bwd_kernel
Kernel for computing the matmul C = A x B. A has shape (M, K), B has shape (K, N) and C has shape (M, N)
diffusion/model/nets/fastlinear/modules/triton_lite_mla_kernels/proj_divide_bwd.py:124
Method
qkv_fn
(x)
diffusion/model/wan/model.py:229
Method
qkv_fn
(x)
diffusion/model/wan/model.py:289
Method
qkv_fn
(x)
diffusion/model/wan/model.py:407
Method
qkv_fn
(x)
diffusion/model/wan/model.py:460
Function
random_rotation_matrix_quaternion
Generates a random 3x3 rotation matrix using a random unit quaternion. This provides a uniform distribution of rotations.
diffusion/utils/cam_utils.py:89
Method
reach_max_frames
check if can generate more
diffusion/longsana/pipeline/sana_training_pipeline.py:102
Function
reduce_dict
Args: input_dict (dict): all the values will be reduced average (bool): whether to do average or sum Reduce the values in the
diffusion/utils/dist_utils.py:149
Method
register_attn_hook
(self, layers=None, device="cpu")
diffusion/model/wan/model.py:1105
Method
register_block_hook
(self, layers=None, device="cpu", detach=True, score_only=False)
diffusion/model/wan/model.py:1118
Method
register_block_hook
(self, layers=None, device="cpu", detach=True, score_only=True)
diffusion/model/nets/sana_multi_scale_video_camctrl.py:1514
Method
register_block_hook
(self, layers=None, device="cpu", detach=True, score_only=True)
diffusion/model/nets/sana_multi_scale_video.py:1018
Method
register_progress_bar
(self, progress_fn=None)
app/sana_sprint_pipeline.py:146
Function
register_transform
(transform)
diffusion/data/transforms.py:230
Function
remove_bn
(model: nn.Module)
diffusion/model/norms.py:166
Function
remove_bn
(model: nn.Module)
diffusion/model/nets/fastlinear/modules/nn/norm.py:167
Function
rename_file_with_creation_time
(file_path)
diffusion/utils/logger.py:130
Method
renoise_image
(self, image, scheduler, total_steps, renoise_steps)
app/sana_pipeline_inpaint.py:221
Method
reparameterize
(self, mu, log_var)
diffusion/model/wan2_2/vae.py:791
Function
reset_bn
( model: nn.Module, data_loader: list, sync=True, progress_bar=False, )
diffusion/model/norms.py:78
Function
reset_bn
( model: nn.Module, data_loader: list, sync=True, progress_bar=False, )
diffusion/model/nets/fastlinear/modules/nn/norm.py:79
Function
reset_bn
( model: nn.Module, data_loader: list, sync=True, progress_bar=False, )
diffusion/model/dc_ae/efficientvit/models/nn/norm.py:113
Function
reset_interface
Reset all interface state
app/app_sana_inpaint.py:489
Function
resized_crop
Do spatial cropping and resizing to the video clip Args: clip (torch.tensor): Video clip to be cropped. Size is (T, C, H, W)
diffusion/data/transforms.py:140
Function
resolve_and_load_config
(path: str, config_name="config.yaml")
diffusion/model/dc_ae/efficientvit/apps/utils/misc.py:81
Function
run
( image, prompt: str, sketch_thickness: int, guidance_scale: float, inference_steps: int,
app/app_sana_controlnet_hed.py:94
Method
run
(self, *args, **kwargs)
diffusion/model/nets/fastlinear/modules/triton_lite_mla_kernels/custom_autotune.py:49
Function
run_cuda
(inp, mode="ac", dot_precision=0, eps=1e-6)
diffusion/model/ops/fused_gdn_chunkwise_cuda.py:974
Function
run_inference
(num_imgs=1)
app/app_sana_multithread.py:138
Function
run_inference
(num_imgs=1)
app/app_sana.py:143
Function
run_inpainting
Run the inpainting pipeline with the current image, mask, and prompt. This is where you can implement your inpainting model!
app/app_sana_inpaint.py:501
Method
safe_decode
(sample)
tools/metrics/clip-score/clip_score.py:190
Method
sample
Importance-sample timesteps for a batch. :param batch_size: the number of timesteps. :param device: the torch device to save
diffusion/model/timestep_sampler.py:60
Method
sample
(self, imgs, deterministic=False)
diffusion/model/wan2_2/vae.py:796
Method
sample_frame_aware
Compute the sample at time `t_end` by DPM-Solver, given the initial `x` at time `t_start`. =========================================
diffusion/model/dpm_solver.py:1789
Method
sample_step_sequence_batch
Forward-only monotonic sequences (non-decreasing in t across frames). Returns [B, F] int64 tensor.
diffusion/model/respace.py:226
Function
sana_compile_clipscore
()
configs/sol_rl/sana.py:202
Function
sana_compile_hpsv2
()
configs/sol_rl/sana.py:208
Function
sana_compile_imagereward
()
configs/sol_rl/sana.py:214
Function
sana_compile_pickscore
()
configs/sol_rl/sana.py:196
Function
sana_diffusionnft_clipscore
()
configs/sol_rl/sana.py:158
Function
sana_diffusionnft_hpsv2
()
configs/sol_rl/sana.py:162
Function
sana_diffusionnft_imagereward
()
configs/sol_rl/sana.py:166
Function
sana_diffusionnft_pickscore
()
configs/sol_rl/sana.py:154
Function
sana_naive_quant_clipscore
()
configs/sol_rl/sana.py:231
Function
sana_naive_quant_hpsv2
()
configs/sol_rl/sana.py:237
Function
sana_naive_quant_imagereward
()
configs/sol_rl/sana.py:243
← previous
next →
2,401–2,500 of 2,606, ranked by callers