MCPcopy Create free account

hub / github.com/NVlabs/Sana / functions

Functions2,606 in github.com/NVlabs/Sana

↓ 1 callersFunction_translation_keys
Discretise per-frame translation into WASD key lists. Thresholds are adaptive: ``thresh = max(floor, frac * p95(|delta|))``.
diffusion/utils/action_overlay.py:69
↓ 1 callersFunction_try_launch_decode
(max_refiner_idx_exclusive: int)
inference_video_scripts/wm/streaming_pipeline.py:454
↓ 1 callersMethod_try_squeeze
(self, x: torch.Tensor)
diffusion/model/dc_ae/efficientvit/models/nn/ops.py:348
↓ 1 callersMethod_uniform_timestep_tensors
( self, *, batch_size: int, seq_len: int, sigma: float, )
diffusion/refiner/diffusers_ltx2_refiner.py:259
↓ 1 callersMethod_unshuffle_output
Apply pixel unshuffle to output.
diffusion/model/ltx2/causal_vae.py:677
↓ 1 callersFunction_unwrap_compiled
(model)
diffusion/post_training/diffusers_patch/pipeline_with_logprob.py:28
↓ 1 callersMethod_update_cache
(self, bucket)
diffusion/utils/data_sampler.py:156
↓ 1 callersFunction_video_vae
(pretrained_path=None, z_dim=16, dim=160, device="cpu", **kwargs)
diffusion/model/wan2_2/vae.py:813
↓ 1 callersFunction_video_vae
Autoencoder3d adapted from Stable Diffusion 1.x, 2.x and XL.
diffusion/model/wan/vae.py:545
↓ 1 callersMethod_visualize
Generate and save sample videos to monitor training progress.
diffusion/longsana/trainer/self_forcing_trainer.py:683
↓ 1 callersMethod_warmed_up
(self)
diffusion/model/timestep_sampler.py:158
↓ 1 callersMethodaccumulate_kv_cache
Override parent dispatcher to always use 10-slot cache logic.
diffusion/scheduler/self_forcing_flow_euler_sampler.py:673
↓ 1 callersFunctionaction_string_to_c2w
Roll out a ``(N+1, 4, 4)`` camera-to-world trajectory from an action string. The DSL groups segments as ``<keys>-<frames>`` joined by commas; ``"
inference_video_scripts/wm/inference_sana_wm.py:568
↓ 1 callersMethodadd_noise
Diffusion forward corruption process. Input: - clean_latent: the clean latent with shape [B, C, H, W] - noise
diffusion/scheduler/longlive_flow_euler_sampler.py:20
↓ 1 callersMethodadd_noise_to_image_conditioning_latents
Add timestep-dependent noise to the hard-conditioning latents. This helps with motion continuity, especially when conditioned on a si
diffusion/scheduler/flow_euler_sampler.py:91
↓ 1 callersMethodanalyse_model
(self)
diffusion/utils/misc.py:292
↓ 1 callersFunctionapply_style
(style_name: str, positive: str)
app/app_sana_sprint.py:152
↓ 1 callersFunctionapply_style
(style_name: str, positive: str, negative: str = "")
app/app_sana_4bit.py:117
↓ 1 callersFunctionapply_style
(style_name: str, positive: str, negative: str = "")
app/app_sana.py:161
↓ 1 callersMethodattn_matmul
(self, q, k, v: torch.Tensor)
diffusion/model/nets/fastlinear/modules/lite_mla.py:62
↓ 1 callersFunctionbarrier
()
diffusion/longsana/utils/distributed.py:78
↓ 1 callersFunctionbetas_for_alpha_bar
Create a beta schedule that discretizes the given alpha_t_bar function, which defines the cumulative product of (1-beta) over time from t = [
diffusion/scheduler/lcm_scheduler.py:48
↓ 1 callersFunctionbetas_for_alpha_bar
Create a beta schedule that discretizes the given alpha_t_bar function, which defines the cumulative product of (1-beta) over time from t = [
diffusion/scheduler/sa_solver_diffusers.py:27
↓ 1 callersFunctionbetas_for_alpha_bar
Create a beta schedule that discretizes the given alpha_t_bar function, which defines the cumulative product of (1-beta) over time from t = [
diffusion/model/gaussian_diffusion.py:154
↓ 1 callersMethodblur
Apply Gaussian blur to mask similar to diffusers pipeline Args: mask: PIL Image or numpy array mask blur_fac
app/app_sana_inpaint.py:99
↓ 1 callersFunctionbuild_block
( block_type: str, in_channels: int, out_channels: int, norm: Optional[str], act: Optional[str], is_video:
diffusion/model/dc_ae/efficientvit/models/efficientvit/dc_ae.py:115
↓ 1 callersFunctionbuild_block
(block_type: str, channels: int, norm: Optional[str], act: Optional[str], zero_out: bool)
diffusion/model/dc_ae/efficientvit/models/efficientvit/dc_ae_with_temporal.py:222
↓ 1 callersFunctionbuild_decoder_project_in_block
(in_channels: int, out_channels: int, shortcut: Optional[str], is_video: bool)
diffusion/model/dc_ae/efficientvit/models/efficientvit/dc_ae.py:313
↓ 1 callersFunctionbuild_decoder_project_in_block
(block_type: str, in_channels: int, out_channels: int)
diffusion/model/dc_ae/efficientvit/models/efficientvit/dc_ae_with_temporal.py:322
↓ 1 callersFunctionbuild_decoder_project_out_block
( in_channels: int, out_channels: int, factor: int, upsample_block_type: str, norm: Option
diffusion/model/dc_ae/efficientvit/models/efficientvit/dc_ae.py:336
↓ 1 callersFunctionbuild_decoder_project_out_block
( block_type: str, in_channels: int, out_channels: int, norm: Optional[str], act: Optional[str] )
diffusion/model/dc_ae/efficientvit/models/efficientvit/dc_ae_with_temporal.py:357
↓ 1 callersFunctionbuild_encoder_project_in_block
( in_channels: int, out_channels: int, factor: int, downsample_block_type: str, is_video: bool )
diffusion/model/dc_ae/efficientvit/models/efficientvit/dc_ae.py:252
↓ 1 callersFunctionbuild_encoder_project_in_block
(block_type: str, in_channels: int, out_channels: int)
diffusion/model/dc_ae/efficientvit/models/efficientvit/dc_ae_with_temporal.py:280
↓ 1 callersFunctionbuild_encoder_project_out_block
( in_channels: int, out_channels: int, norm: Optional[str], act: Optional[str], shortcut:
diffusion/model/dc_ae/efficientvit/models/efficientvit/dc_ae.py:277
↓ 1 callersFunctionbuild_encoder_project_out_block
(block_type: str, in_channels: int, out_channels: int)
diffusion/model/dc_ae/efficientvit/models/efficientvit/dc_ae_with_temporal.py:287
↓ 1 callersMethodbuild_inference_model
(self, args, device)
diffusion/longsana/model/ode_regression_sana.py:132
↓ 1 callersFunctionbuild_norm
(name="bn2d", num_features=None, affine=True, **kwargs)
diffusion/model/nets/fastlinear/modules/nn/norm.py:51
↓ 1 callersFunctionbuild_optimizer
( net_params, optimizer_name: str, optimizer_params: Optional[dict], init_lr: float )
diffusion/model/dc_ae/efficientvit/apps/utils/opt.py:32
↓ 1 callersMethodbuild_sana_model
(self, config)
app/sana_controlnet_pipeline.py:156
↓ 1 callersMethodbuild_sana_model
(self, config)
app/sana_pipeline.py:136
↓ 1 callersMethodbuild_sana_model
(self, config)
app/sana_pipeline_inpaint.py:155
↓ 1 callersMethodbuild_sana_model
(self, config)
app/sana_sprint_pipeline.py:117
↓ 1 callersMethodbuild_text_encoder
(self, config)
app/sana_controlnet_pipeline.py:152
↓ 1 callersMethodbuild_text_encoder
(self, config)
app/sana_pipeline.py:132
↓ 1 callersMethodbuild_text_encoder
(self, config)
app/sana_pipeline_inpaint.py:151
↓ 1 callersMethodbuild_text_encoder
(self, config)
app/sana_sprint_pipeline.py:113
↓ 1 callersMethodbuild_vae
(self, config)
app/sana_controlnet_pipeline.py:148
↓ 1 callersMethodbuild_vae
(self, config)
app/sana_pipeline.py:128
↓ 1 callersMethodbuild_vae
(self, config)
app/sana_pipeline_inpaint.py:147
↓ 1 callersMethodbuild_vae
(self, config)
app/sana_sprint_pipeline.py:109
↓ 1 callersFunctioncalculate_activation_statistics
Calculation of the statistics used by the FID. Params: -- files : List of image files paths -- model : Instance of inception m
tools/metrics/pytorch-fid/src/pytorch_fid/fid_score.py:206
↓ 1 callersFunctioncalculate_clip_score
(dataloader, model, real_flag, fake_flag, save_json_path=None)
tools/metrics/clip-score/clip_score.py:205
↓ 1 callersFunctioncalculate_clip_score
(dataloader, model, real_flag, fake_flag)
tools/metrics/clip-score/src/clip_score/clip_score.py:140
↓ 1 callersFunctioncalculate_clip_score_official
(dataloader)
tools/metrics/clip-score/clip_score.py:231
↓ 1 callersFunctioncalculate_fid_given_paths
Calculates the FID of two paths
tools/metrics/pytorch-fid/compute_fid.py:168
↓ 1 callersFunctioncalculate_fid_given_paths
Calculates the FID of two paths
tools/metrics/pytorch-fid/src/pytorch_fid/fid_score.py:242
↓ 1 callersFunctioncalculate_frechet_distance
(mu1, sigma1, mu2, sigma2, eps=1e-6)
tools/metrics/pytorch-fid/compute_fid.py:90
↓ 1 callersFunctioncalculate_frechet_distance
Numpy implementation of the Frechet Distance. The Frechet distance between two multivariate Gaussians X_1 ~ N(mu_1, C_1) and X_2 ~ N(mu_2, C_2
tools/metrics/pytorch-fid/src/pytorch_fid/fid_score.py:153
↓ 1 callersFunctioncalculate_gradient_penalty
(discriminator)
train_scripts/train_scm_ladd.py:704
↓ 1 callersFunctioncalculate_shift
( image_seq_len, base_seq_len: int = 256, max_seq_len: int = 4096, base_shift: float = 0.5,
diffusion/post_training/diffusers_patch/pipeline_with_logprob.py:15
↓ 1 callersFunctioncanonicalize
(text, keep_punctuation_exact_string=None)
diffusion/model/wan/tokenizers.py:24
↓ 1 callersFunctionceil_to_divisible
(n: int, dividend: int)
diffusion/model/dc_ae/efficientvit/models/utils/video.py:100
↓ 1 callersFunctioncenter_crop
(clip, crop_size)
diffusion/data/transforms.py:160
↓ 1 callersMethodcheck_cache_misses
Check if the cache miss rate is too high.
diffusion/data/wids/wids.py:598
↓ 1 callersFunctioncheckpoint_sequential
(functions, step, input, *args, **kwargs)
diffusion/model/utils.py:72
↓ 1 callersFunctionclassify_height_width_bin
Returns binned height and width.
app/sana_pipeline.py:52
↓ 1 callersFunctionclassify_height_width_bin
Returns binned height and width.
app/sana_sprint_pipeline.py:40
↓ 1 callersFunctionclassify_height_width_bin
Returns binned height and width.
scripts/interface.py:107
↓ 1 callersMethodcleanup_old_checkpoints
Remove old checkpoints if the number exceeds max_checkpoints. Only the main process performs the actual deletion to avoid race conditions
diffusion/longsana/trainer/ode.py:273
↓ 1 callersMethodclear
(self)
diffusion/data/wids/wids_lru.py:73
↓ 1 callersMethodclear
(self)
diffusion/data/wids/wids.py:415
↓ 1 callersMethodclear_decoder_cache
Clear decoder cache (legacy API, delegates to cache manager).
diffusion/model/ltx2/causal_vae.py:1614
↓ 1 callersMethodclear_kv_cache
(self)
diffusion/longsana/pipeline/sana_training_pipeline.py:591
↓ 1 callersMethodclear_output
(self)
diffusion/utils/logger.py:173
↓ 1 callersFunctionclip_xlm_roberta_vit_h_14
(pretrained=False, pretrained_name="open-clip-xlm-roberta-large-vit-huge-14", **kwargs)
diffusion/model/wan/clip.py:461
↓ 1 callersFunctioncollate_fn
(examples, with_prior_preservation=False)
train_scripts/train_dreambooth_lora_sana.py:786
↓ 1 callersFunctioncolor_classification
(image, bboxes, classname)
tools/metrics/geneval/evaluation/evaluate_images.py:98
↓ 1 callersMethodcompute_critic_loss
Compute critic loss. Args: chunk: generated chunk chunk_info: chunk metadata Returns: l
diffusion/longsana/model/streaming_sana_long.py:570
↓ 1 callersFunctioncompute_dpg_one_sample
(args, question_dict, image_path, vqa_model, resolution)
tools/metrics/dpg_bench/compute_dpg_bench.py:132
↓ 1 callersFunctioncompute_file_md5sum
Compute the md5sum of a file in chunks. Parameters ---------- fname : Union[str, BinaryIO] Filename or file object chunksize
diffusion/data/wids/wids.py:61
↓ 1 callersMethodcompute_generator_loss
Compute the generator loss. Args: chunk: generated chunk chunk_info: chunk metadata Returns:
diffusion/longsana/model/streaming_sana_long.py:499
↓ 1 callersFunctioncompute_git_hash
(filename)
sana/cli/upload2hf.py:32
↓ 1 callersFunctioncompute_iou
(box_a, box_b)
tools/metrics/geneval/evaluation/evaluate_images.py:118
↓ 1 callersFunctioncompute_lfs_hash
(filename)
sana/cli/upload2hf.py:42
↓ 1 callersFunctioncompute_raymap
Computes a geometry raymap (directions/moments or origins/directions). Args: intrinsics: (T, 4) tensor [fx, fy, cx, cy] pose
diffusion/utils/cam_utils.py:146
↓ 1 callersFunctioncompute_up_lat_map
Compute UCPE absolute embedding maps ``(up_map, lat_map)``. ``up_map`` is a 2-channel projected up-direction; ``lat_map`` is a 1-channel lati
diffusion/model/nets/sana_camctrl_blocks.py:314
↓ 1 callersFunctionconcatenate_images
(image_caption, images_per_row=5, image_format="webp")
train_scripts/train.py:213
↓ 1 callersFunctionconcatenate_images
(image_caption, images_per_row=5, image_format="webp")
train_scripts/train_scm_ladd.py:185
↓ 1 callersFunctionconcatenate_videos
(video_data, videos_per_row=3, video_format="mp4")
train_video_scripts/train_video_ivjoint.py:192
↓ 1 callersFunctionconcatenate_videos
(video_data, videos_per_row=3, video_format="mp4")
train_video_scripts/train_video_ivjoint_chunk.py:230
↓ 1 callersFunctioncond_grad_fn
Compute the gradient of the classifier, i.e. nabla_{x} log p_t(cond | x_t).
diffusion/model/dpm_solver.py:430
↓ 1 callersFunctioncond_grad_fn
Compute the gradient of the classifier, i.e. nabla_{x} log p_t(cond | x_t).
diffusion/model/sa_solver.py:326
↓ 1 callersMethodcondition_mean
Compute the mean for the previous step, given a function cond_fn that computes the gradient of a conditional log probability with res
diffusion/model/gaussian_diffusion.py:391
↓ 1 callersFunctioncontrols_to_target_velocity
Map a set of canonical control tokens to a target velocity.
inference_video_scripts/wm/camera_control.py:103
↓ 1 callersFunctionconv3d_split_channel
( x: torch.Tensor, weight: torch.Tensor, bias: Optional[torch.Tensor], stride: int | Sequence[
diffusion/model/dc_ae/efficientvit/models/nn/ops_3d.py:13
↓ 1 callersFunctionconvert_connectors_to_diffusers
Map original LTX-2 connector keys to diffusers LTX2TextConnectors keys.
tools/convert_sana_wm_refiner_to_diffusers.py:191
↓ 1 callersMethodconvert_model_output
Convert the model output to the corresponding type the DPMSolver/DPMSolver++ algorithm needs. DPM-Solver is designed to discretize an
diffusion/scheduler/sa_solver_diffusers.py:334
↓ 1 callersFunctionconvert_py_to_yaml
(py_file_path)
tools/convert_scripts/convert_py_to_yaml.py:6
↓ 1 callersMethodcreate_autoregressive_segments
Build chunk boundaries for an autoregressive sweep. Returns a list of frame indices ``[0, c1, c2, ..., total_frames]`` of length ``nu
diffusion/scheduler/self_forcing_flow_euler_sampler.py:194
↓ 1 callersMethodcreate_frame
(self, module, input, output)
diffusion/utils/misc.py:317
← previousnext →901–1,000 of 2,606, ranked by callers