MCPcopy Create free account

hub / github.com/NVlabs/Sana / functions

Functions2,606 in github.com/NVlabs/Sana

Methodload_state_dict_from_2d
(self, state_dict: dict[str, torch.Tensor], method: str)
diffusion/model/dc_ae/efficientvit/models/nn/ops_3d.py:513
Methodload_state_dict_from_2d
(self, state_dict: dict[str, torch.Tensor], method: str)
diffusion/model/dc_ae/efficientvit/models/nn/ops_3d.py:523
Methodload_state_dict_from_2d
(self, state_dict: dict[str, torch.Tensor], method: str)
diffusion/model/dc_ae/efficientvit/models/nn/ops_3d.py:560
Functionlr_lambda
(current_step)
diffusion/utils/lr_scheduler.py:92
Functionmain
( start_idx, end_idx, base_dir, model_name="Efficient-Large-Model/NVILA-Lite-2B-Verifier",
tools/inference_scaling/nvila_sana_pick.py:76
Functionmain
(_)
train_scripts/sol_rl/train_flux1.py:471
Functionmain
(_)
train_scripts/sol_rl/train_sana.py:408
Functionmain
(_)
train_scripts/sol_rl/train_sd3.py:500
Functionmake_noise_disk
(H, W, C, F)
tools/controlnet/annotator/util.py:60
Methodmarginal_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
Functionmask_fn
(b, h, q_idx, kv_idx)
diffusion/model/nets/sana_gdn_blocks.py:884
Methodmask_mod
(b, h, q_idx, kv_idx)
diffusion/model/nets/sana_multi_scale_video_camctrl.py:1102
Methodmask_mod
(b, h, q_idx, kv_idx)
diffusion/model/nets/sana_multi_scale_video_camctrl.py:1824
Functionmatmul
(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
Functionmatmul_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
Functionmin_max_norm
(x)
tools/controlnet/annotator/util.py:71
Functionmodel_wrapper
(scaled_x_t, t)
train_scripts/train_scm_ladd.py:432
Methodmodule_str
(self)
diffusion/model/nets/sana_blocks.py:294
Methodmodule_str
(self)
diffusion/model/nets/basic_modules.py:457
Methodmodule_str
(self)
diffusion/model/nets/fastlinear/modules/triton_lite_mla_fwd.py:106
Methodmodule_str
(self)
diffusion/model/nets/fastlinear/modules/lite_mla.py:98
Methodmodule_str
(self)
diffusion/model/nets/fastlinear/modules/triton_lite_mla.py:125
Methodmodule_str
(self)
diffusion/model/nets/fastlinear/modules/triton_mb_conv_pre_glu.py:113
Methodmodule_str
(self)
diffusion/model/nets/fastlinear/modules/mb_conv_pre_glu.py:97
Functionmulti_score
(device, score_dict)
diffusion/post_training/rewards.py:379
Methodnames
(self)
diffusion/data/wids/wids_mmtar.py:104
Methodnone_allowed
(self)
diffusion/model/dc_ae/efficientvit/apps/trainer/run_config.py:50
Functionon_clear_mask
()
app/app_sana_inpaint.py:478
Functionon_mask_change
(mask_data)
app/app_sana_inpaint.py:434
Functionon_save_mask
()
app/app_sana_inpaint.py:495
Functionon_save_original
()
app/app_sana_inpaint.py:498
Methodout_features
(self)
train_scripts/sol_rl/train_utils.py:403
Methodoutput_path
(self)
inference_video_scripts/wm/streaming_mp4_writer.py:157
Methodp_mean_variance
(self, model, *args, **kwargs)
diffusion/model/respace.py:459
Methodp_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
Methodpad_pair
(text: torch.Tensor, mask: torch.Tensor)
inference_video_scripts/wm/inference_sana_wm.py:1313
Functionpad_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
Methodparam_groups
(self)
diffusion/model/wan/clip.py:410
Functionparse
(x)
diffusion/model/utils.py:31
Functionparse_unknown_args
Parse unknown args.
diffusion/model/dc_ae/efficientvit/apps/utils/misc.py:45
Functionpickscore_score
(device)
diffusion/post_training/rewards.py:350
Functionpil_image
( tensor, **kwargs, )
scripts/inference_dpg.py:54
Functionpipe_download
Perform a download for a pipe: url.
diffusion/data/wids/wids_dl.py:57
Functionpixel_shuffle_3d
3D pixelshuffle operation.
diffusion/model/dc_ae/efficientvit/models/utils/video.py:62
Functionpixel_unshuffle_3d
3D pixel unshuffle operation.
diffusion/model/dc_ae/efficientvit/models/utils/video.py:79
Methodpost_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
Methodpost_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
Methodprev_latent_tail
Get previous latent tail.
diffusion/model/ltx2/causal_vae.py:113
Functionprocess
(t)
tools/create_wids_metadata.py:32
Functionprocess_data_dict
(data_dict, seen_prompts)
diffusion/longsana/utils/lmdb.py:30
Methodprocess_sample
(sample)
tools/metrics/clip-score/clip_score.py:179
Methodprocess_xstart
(x)
diffusion/model/gaussian_diffusion.py:357
Methodprogress
(self)
diffusion/model/dc_ae/efficientvit/apps/trainer/run_config.py:112
Functionproj_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
Methodqkv_fn
(x)
diffusion/model/wan/model.py:229
Methodqkv_fn
(x)
diffusion/model/wan/model.py:289
Methodqkv_fn
(x)
diffusion/model/wan/model.py:407
Methodqkv_fn
(x)
diffusion/model/wan/model.py:460
Functionrandom_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
Methodreach_max_frames
check if can generate more
diffusion/longsana/pipeline/sana_training_pipeline.py:102
Functionreduce_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
Methodregister_attn_hook
(self, layers=None, device="cpu")
diffusion/model/wan/model.py:1105
Methodregister_block_hook
(self, layers=None, device="cpu", detach=True, score_only=False)
diffusion/model/wan/model.py:1118
Methodregister_block_hook
(self, layers=None, device="cpu", detach=True, score_only=True)
diffusion/model/nets/sana_multi_scale_video_camctrl.py:1514
Methodregister_block_hook
(self, layers=None, device="cpu", detach=True, score_only=True)
diffusion/model/nets/sana_multi_scale_video.py:1018
Methodregister_progress_bar
(self, progress_fn=None)
app/sana_sprint_pipeline.py:146
Functionregister_transform
(transform)
diffusion/data/transforms.py:230
Functionremove_bn
(model: nn.Module)
diffusion/model/norms.py:166
Functionremove_bn
(model: nn.Module)
diffusion/model/nets/fastlinear/modules/nn/norm.py:167
Functionrename_file_with_creation_time
(file_path)
diffusion/utils/logger.py:130
Methodrenoise_image
(self, image, scheduler, total_steps, renoise_steps)
app/sana_pipeline_inpaint.py:221
Methodreparameterize
(self, mu, log_var)
diffusion/model/wan2_2/vae.py:791
Functionreset_bn
( model: nn.Module, data_loader: list, sync=True, progress_bar=False, )
diffusion/model/norms.py:78
Functionreset_bn
( model: nn.Module, data_loader: list, sync=True, progress_bar=False, )
diffusion/model/nets/fastlinear/modules/nn/norm.py:79
Functionreset_bn
( model: nn.Module, data_loader: list, sync=True, progress_bar=False, )
diffusion/model/dc_ae/efficientvit/models/nn/norm.py:113
Functionreset_interface
Reset all interface state
app/app_sana_inpaint.py:489
Functionresized_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
Functionresolve_and_load_config
(path: str, config_name="config.yaml")
diffusion/model/dc_ae/efficientvit/apps/utils/misc.py:81
Functionrun
( image, prompt: str, sketch_thickness: int, guidance_scale: float, inference_steps: int,
app/app_sana_controlnet_hed.py:94
Methodrun
(self, *args, **kwargs)
diffusion/model/nets/fastlinear/modules/triton_lite_mla_kernels/custom_autotune.py:49
Functionrun_cuda
(inp, mode="ac", dot_precision=0, eps=1e-6)
diffusion/model/ops/fused_gdn_chunkwise_cuda.py:974
Functionrun_inference
(num_imgs=1)
app/app_sana_multithread.py:138
Functionrun_inference
(num_imgs=1)
app/app_sana.py:143
Functionrun_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
Methodsafe_decode
(sample)
tools/metrics/clip-score/clip_score.py:190
Methodsample
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
Methodsample
(self, imgs, deterministic=False)
diffusion/model/wan2_2/vae.py:796
Methodsample_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
Methodsample_step_sequence_batch
Forward-only monotonic sequences (non-decreasing in t across frames). Returns [B, F] int64 tensor.
diffusion/model/respace.py:226
Functionsana_compile_clipscore
()
configs/sol_rl/sana.py:202
Functionsana_compile_hpsv2
()
configs/sol_rl/sana.py:208
Functionsana_compile_imagereward
()
configs/sol_rl/sana.py:214
Functionsana_compile_pickscore
()
configs/sol_rl/sana.py:196
Functionsana_diffusionnft_clipscore
()
configs/sol_rl/sana.py:158
Functionsana_diffusionnft_hpsv2
()
configs/sol_rl/sana.py:162
Functionsana_diffusionnft_imagereward
()
configs/sol_rl/sana.py:166
Functionsana_diffusionnft_pickscore
()
configs/sol_rl/sana.py:154
Functionsana_naive_quant_clipscore
()
configs/sol_rl/sana.py:231
Functionsana_naive_quant_hpsv2
()
configs/sol_rl/sana.py:237
Functionsana_naive_quant_imagereward
()
configs/sol_rl/sana.py:243
← previousnext →2,401–2,500 of 2,606, ranked by callers