MCPcopy Create free account

hub / github.com/NVlabs/Sana / functions

Functions2,606 in github.com/NVlabs/Sana

↓ 1 callersMethodsample
Sample with first-frame conditioning support. Reads ``condition_frame_info`` from ``data_info`` (e.g. ``{0: 0.0}`` means frame 0 is f
diffusion/scheduler/self_forcing_flow_euler_sampler.py:353
↓ 1 callersMethodsample
latents: 1,C,F,H,W steps: int latents is only one sample but the model kwargs are 2 samples
diffusion/scheduler/flow_euler_sampler.py:116
↓ 1 callersMethodsample
Compute the sample at time `t_end` by DPM-Solver, given the initial `x` at time `t_start`. =========================================
diffusion/model/dpm_solver.py:1545
↓ 1 callersMethodsample
For the PC-mode, please refer to the wiki page https://en.wikipedia.org/wiki/Predictor%E2%80%93corrector_method#PEC_mode_and_PECE_mod
diffusion/model/sa_solver.py:1291
↓ 1 callersMethodsample
Middle-anchor sampler (both sides), batched. - curf: * None: random curf per sample * int: same anchor frame
diffusion/model/respace.py:253
↓ 1 callersMethodsample_few_steps
For the PC-mode, please refer to the wiki page https://en.wikipedia.org/wiki/Predictor%E2%80%93corrector_method#PEC_mode_and_PECE_mod
diffusion/model/sa_solver.py:892
↓ 1 callersMethodsample_more_steps
For the PC-mode, please refer to the wiki page https://en.wikipedia.org/wiki/Predictor%E2%80%93corrector_method#PEC_mode_and_PECE_mod
diffusion/model/sa_solver.py:1092
↓ 1 callersMethodsave
(self)
diffusion/longsana/trainer/self_forcing_trainer.py:410
↓ 1 callersFunctionsave_checkpoint_ddp
( work_dir, epoch, model, model_ema=None, optimizer=None, lr_scheduler=None, gener
diffusion/utils/checkpoint.py:75
↓ 1 callersFunctionsave_checkpoint_fsdp
FSDP checkpoint save function, sharding
diffusion/utils/checkpoint.py:137
↓ 1 callersFunctionsave_fid_stats
Calculates the FID of two paths
tools/metrics/pytorch-fid/src/pytorch_fid/fid_score.py:259
↓ 1 callersMethodsave_frame
(self, frame=None)
diffusion/utils/misc.py:268
↓ 1 callersFunctionsave_image_sana
(img, seed="", save_img=False)
app/app_sana_sprint.py:196
↓ 1 callersFunctionsave_image_sana
(img, seed="", save_img=False)
app/app_sana_4bit.py:154
↓ 1 callersMethodsave_mask
Save the current mask to disk
app/app_sana_inpaint.py:234
↓ 1 callersFunctionsave_model_card
( repo_id: str, images=None, base_model: str = None, instance_prompt=None, validation_prom
train_scripts/train_dreambooth_lora_sana.py:66
↓ 1 callersMethodsave_original
Save the original image to disk
app/app_sana_inpaint.py:256
↓ 1 callersMethodset_blend_alpha
(self, blend_alpha)
app/sana_controlnet_pipeline.py:186
↓ 1 callersFunctionset_env
(seed=0, latent_size=256)
tools/controlnet/inference_controlnet.py:46
↓ 1 callersFunctionset_env
(seed=0)
app/app_sana_multithread.py:116
↓ 1 callersFunctionset_env
(seed=0, latent_size=256)
scripts/inference_image_reward.py:51
↓ 1 callersFunctionset_env
(seed=0, latent_size=256)
scripts/inference_geneval.py:153
↓ 1 callersFunctionset_env
(seed=0, latent_size=256)
scripts/inference_dpg.py:67
↓ 1 callersFunctionset_env
(seed=0, latent_size=256)
scripts/inference_sana_sprint.py:45
↓ 1 callersFunctionset_env
(seed=0)
scripts/interface.py:94
↓ 1 callersFunctionset_env
(seed=0, latent_size=256)
scripts/inference_sana_sprint_geneval.py:152
↓ 1 callersFunctionset_env
(seed=0, latent_size=256)
scripts/inference.py:51
↓ 1 callersFunctionset_env
(seed=0)
scripts/inference_geneval_diffusers.py:50
↓ 1 callersFunctionset_env
(seed=0, latent_size=256)
inference_video_scripts/inference_sana_video.py:57
↓ 1 callersFunctionset_fp32_attention
(model)
diffusion/model/utils.py:53
↓ 1 callersFunctionset_fsdp_env
()
train_video_scripts/train_video_ivjoint.py:57
↓ 1 callersFunctionset_fsdp_env
()
train_video_scripts/train_video_ivjoint_chunk.py:67
↓ 1 callersFunctionset_fsdp_env
()
train_scripts/train.py:58
↓ 1 callersFunctionset_fsdp_env
()
train_scripts/train_scm_ladd.py:66
↓ 1 callersFunctionset_grad_checkpoint
(model, gc_step=1)
diffusion/model/utils.py:43
↓ 1 callersMethodset_timesteps
Sets the discrete timesteps used for the diffusion chain (to be run before inference). Args: num_inference_steps (`int`):
diffusion/scheduler/trigflow_scheduler.py:125
↓ 1 callersMethodsetup_sequence
Set up a new sequence
diffusion/longsana/model/streaming_sana_long.py:261
↓ 1 callersFunctionsimulate_litemla
( x: torch.Tensor, qkv_weight: torch.Tensor, proj_weight: torch.Tensor, proj_bias: torch.Tenso
diffusion/model/nets/fastlinear/develop_triton_litemla.py:60
↓ 1 callersMethodsinglestep_dpm_solver_update
Singlestep DPM-Solver with the order `order` from time `s` to time `t`. Args: x: A pytorch tensor. The initial value at
diffusion/model/dpm_solver.py:1364
↓ 1 callersMethodsnap_to
(self, target: VelocityState)
inference_video_scripts/wm/camera_control.py:91
↓ 1 callersFunctionspace_timesteps
Create a list of timesteps to use from an original diffusion process, given the number of timesteps we want to take from equally-sized portio
diffusion/model/respace.py:33
↓ 1 callersMethodspatial_tiled_decode
(self, z: torch.Tensor)
diffusion/model/dc_ae/efficientvit/models/efficientvit/dc_ae_with_temporal.py:670
↓ 1 callersMethodspatial_tiled_encode
(self, x: torch.Tensor)
diffusion/model/dc_ae/efficientvit/models/efficientvit/dc_ae_with_temporal.py:579
↓ 1 callersFunctionsplit_and_recombine
(lst, n)
diffusion/data/wids/wids.py:773
↓ 1 callersMethodstep
Predict the sample from the previous timestep by reversing the SDE. This function propagates the diffusion process from the learned m
diffusion/scheduler/trigflow_scheduler.py:163
↓ 1 callersMethodstep
(self, v: VelocityState)
inference_video_scripts/wm/camera_control.py:137
↓ 1 callersMethodstep_toward
(self, target: VelocityState, dt: float)
inference_video_scripts/wm/camera_control.py:94
↓ 1 callersMethodstochastic_adams_bashforth_update
One step for the SA-Predictor. Args: model_output (`torch.FloatTensor`): The direct output from the lear
diffusion/scheduler/sa_solver_diffusers.py:606
↓ 1 callersMethodstochastic_adams_moulton_update
One step for the SA-Corrector. Args: this_model_output (`torch.FloatTensor`): The model outputs at `x_t`
diffusion/scheduler/sa_solver_diffusers.py:698
↓ 1 callersFunctionstretched_logit_normal
(n, mu, sigma, p_low, p_high, device, dtype)
diffusion/model/respace.py:96
↓ 1 callersFunctionsupports_gpus_per_node
()
sana/cli/run.py:26
↓ 1 callersFunctionsync_docs
Sync documentation files from asset/docs to docs/. Priority: docs/ files take precedence over asset/docs/ files. Only copies files that
scripts/sync_docs.py:20
↓ 1 callersMethodtemporal_tiled_decode
(self, z: torch.Tensor)
diffusion/model/dc_ae/efficientvit/models/efficientvit/dc_ae.py:690
↓ 1 callersMethodtemporal_tiled_encode
(self, x: torch.Tensor)
diffusion/model/dc_ae/efficientvit/models/efficientvit/dc_ae.py:610
↓ 1 callersFunctiontensor_to_pil
(tensor)
app/sana_pipeline_inpaint.py:64
↓ 1 callersFunctionto_jsonable
(value)
train_scripts/sol_rl/train_utils.py:134
↓ 1 callersFunctionto_tensor
Convert tensor data type from uint8 to float, divide value by 255.0 and permute the dimensions of clip tensor Args: clip (torch.t
diffusion/data/transforms.py:93
↓ 1 callersMethodtoken_drop
Drops labels to enable classifier-free guidance.
diffusion/model/nets/sana_blocks.py:1064
↓ 1 callersMethodtoken_drop
Drops labels to enable classifier-free guidance.
diffusion/model/nets/sana_blocks.py:1112
↓ 1 callersMethodtoken_drop
Drops labels to enable classifier-free guidance.
diffusion/model/nets/sana_blocks.py:1155
↓ 1 callersFunctiontorch_random
uniform distribution on the interval [0, 1)
diffusion/model/dc_ae/efficientvit/models/utils/random.py:40
↓ 1 callersFunctiontorch_uniform
uniform distribution on the interval [low, high)
diffusion/model/dc_ae/efficientvit/models/utils/random.py:50
↓ 1 callersFunctiontqdm
(x)
tools/metrics/pytorch-fid/compute_fid.py:20
↓ 1 callersFunctiontqdm
(x)
tools/metrics/pytorch-fid/src/pytorch_fid/fid_score.py:50
↓ 1 callersFunctiontqdm
(x)
tools/metrics/clip-score/src/clip_score/clip_score.py:44
↓ 1 callersMethodtrace_frames
(self)
diffusion/utils/misc.py:277
↓ 1 callersFunctiontrain
( config, args, accelerator, model, model_ema, optimizer, lr_scheduler, train_
train_video_scripts/train_video_ivjoint.py:240
↓ 1 callersFunctiontrain
( config, args, accelerator, model, model_ema, optimizer, lr_scheduler, train_
train_video_scripts/train_video_ivjoint_chunk.py:278
↓ 1 callersFunctiontrain
( config, args, accelerator, model, model_ema, optimizer, lr_scheduler, train_dataloader, train_diffusion,
train_scripts/train.py:260
↓ 1 callersFunctiontrain
( config, args, accelerator, model, model_ema, optimizer_G, optimizer_D, lr_sc
train_scripts/train_scm_ladd.py:232
↓ 1 callersMethodtrain_one_step
(self)
diffusion/longsana/trainer/ode.py:462
↓ 1 callersMethodtraining_weight
(self, timestep, target_shape)
diffusion/model/gaussian_diffusion.py:740
↓ 1 callersMethodtrim_output
Trim decoder output to remove context frames. Args: decoded: Full decoder output [B, C, T, H, W] prepend_prev_latent_
diffusion/model/ltx2/causal_vae.py:173
↓ 1 callersFunctiontruncated_normal_icdf_sample
Exact inverse-CDF sampling of N(mu, sigma^2) truncated to [a, b] a,b in z-space. No mass at boundaries.
diffusion/model/respace.py:82
↓ 1 callersFunctionucm_unproject_grid
Unproject pixel grid into a camera-frame direction vector using the UCM.
diffusion/model/nets/sana_camctrl_blocks.py:95
↓ 1 callersFunctionumt5_xxl
(**kwargs)
diffusion/model/wan/t5.py:403
↓ 1 callersFunctionunpatchify
(x, patch_size)
diffusion/model/wan2_2/vae.py:276
↓ 1 callersMethodunpatchify
x: (N, T, patch_size**2 * C) imgs: (N, H, W, C)
diffusion/model/nets/sana_multi_scale_adaln.py:320
↓ 1 callersMethodunpatchify
x: (N, T, patch_size**2 * C) imgs: (N, H, W, C)
diffusion/model/nets/sana_U_shape_multi_scale.py:312
↓ 1 callersMethodunpatchify
x: (N, T, patch_size**2 * C) imgs: (N, H, W, C)
diffusion/model/nets/sana_multi_scale.py:409
↓ 1 callersMethodupdate
(self, model_output: torch.Tensor)
diffusion/post_training/diffusers_patch/solver.py:198
↓ 1 callersMethodupdate
(self, update_value: torch.Tensor)
diffusion/guiders/adaptive_projected_guidance.py:101
↓ 1 callersFunctionupdate_dict_with_extend
(original_dict, update_dict)
diffusion/data/wids/wids.py:227
↓ 1 callersFunctionupdate_ema
(ema: nn.Module, new_state_dict: dict[str, torch.Tensor], decay: float)
diffusion/model/dc_ae/efficientvit/apps/utils/ema.py:28
↓ 1 callersMethodupdate_fn
(p, grad, exp_avg, lr, wd, beta1, beta2)
diffusion/utils/optimizer.py:208
↓ 1 callersMethodupdate_lower_order
(self)
diffusion/post_training/diffusers_patch/solver.py:203
↓ 1 callersMethodupdate_tail
Update the previous latent tail for next chunk. Args: z: Current latent chunk before context prepending prepend_prev_
diffusion/model/ltx2/causal_vae.py:203
↓ 1 callersMethodupdate_with_all_losses
Update the reweighting using losses from a model. Sub-classes should override this method to update the reweighting using los
diffusion/model/timestep_sampler.py:117
↓ 1 callersFunctionurlmerge
Merge a base URL and a relative URL. The function fills in any missing part of the url from the base, except for params, query, and fragment,
diffusion/data/wids/wids_specs.py:35
↓ 1 callersFunctionv_pred_fn
(z, sigma)
diffusion/post_training/diffusers_patch/pipeline_with_logprob.py:155
↓ 1 callersFunctionval2list
Repeat `val` for `repeat_time` times and return the list or val if list/tuple.
diffusion/model/utils.py:155
↓ 1 callersFunctionval2list
Repeat `val` for `repeat_time` times and return the list or val if list/tuple.
diffusion/model/nets/fastlinear/modules/utils/model.py:18
↓ 1 callersFunctionvisualize
(config, args, model, items, bs, sample_steps, cfg_scale, pag_scale=1.0)
tools/controlnet/inference_controlnet.py:123
↓ 1 callersFunctionvisualize
()
scripts/inference_geneval_diffusers.py:56
↓ 1 callersFunctionvisualize
(config, args, model, items, bs, sample_steps, cfg_scale)
inference_video_scripts/inference_sana_video.py:112
↓ 1 callersFunctionvk_mm_relu_bwd
Input: grad_vk: (B, H, C+1, C), fp32 k: (B, N, H, C), fp16 v: (B, N, H, C), fp16 k_relu_mask: (B, N, H, C), bool
diffusion/model/nets/fastlinear/modules/triton_lite_mla_kernels/vk_mm_relu_bwd.py:144
↓ 1 callersFunctionvk_q_mm_relu_bwd
Input: grad_vk_q: (B, N, H, C+1), fp32 vk: (B, H, C+1, C), fp32 q: (B, N, H, C), fp16 q_relu_mask: (B, N, H, C),
diffusion/model/nets/fastlinear/modules/triton_lite_mla_kernels/vk_q_mm_relu_bwd.py:153
↓ 1 callersMethodvqa
(self, image, question)
tools/metrics/dpg_bench/compute_dpg_bench.py:79
↓ 1 callersFunctionwalk
(obj: object)
diffusion/refiner/diffusers_ltx2_refiner.py:2360
↓ 1 callersFunctionwalk
(obj: object)
inference_video_scripts/wm/inference_sana_wm.py:224
← previousnext →1,301–1,400 of 2,606, ranked by callers