MCPcopy Create free account

hub / github.com/NVlabs/Sana / functions

Functions2,606 in github.com/NVlabs/Sana

↓ 2 callersFunctioncache_localname
(cachedir)
diffusion/data/wids/wids.py:366
↓ 2 callersFunctioncalculate_activation_statistics
(files, model, batch_size=50, dims=2048, device="cpu", num_workers=1)
tools/metrics/pytorch-fid/compute_fid.py:123
↓ 2 callersFunctioncam_prep_func
Fused RMSNorm + ReLU + (K-scale on K) + UCPE 4x4 + RoPE for the cam branch. Args: q_raw, k_raw, v_raw: ``(B, N, H, D)`` contiguous (any f
diffusion/model/ops/fused_cam_gdn.py:355
↓ 2 callersFunctioncam_scan_bidi_chunkwise
Bidirectional camera scan using shared chunkwise phases. This is equivalent to ``cam_scan_chunkwise(..., reverse=False) + cam_scan_chunkwise(
diffusion/model/ops/fused_gdn_chunkwise.py:2057
↓ 2 callersMethodcan_generate_more
Check whether more chunks can be generated
diffusion/longsana/model/streaming_sana_long.py:321
↓ 2 callersFunctioncheck_shards
Check that a list of shards is well-formed. This checks that the list is a list of dictionaries, and that each dictionary has a "url" and a "
diffusion/data/wids/wids_specs.py:76
↓ 2 callersFunctionchunk_index_from_chunk_size
Convert chunk_size to chunk_index list with a split strategy. Args: T: Number of latent frames. chunk_size: Base chunk size for t
diffusion/utils/chunk_utils.py:71
↓ 2 callersFunctionchunked_interpolate
Interpolate large tensors by chunking along the channel dimension. https://discuss.pytorch.org/t/error-using-f-interpolate-for-large-3d-input/207
diffusion/model/dc_ae/efficientvit/models/utils/video.py:7
↓ 2 callersFunctionclassify_height_width_bin
Returns binned height and width.
app/sana_pipeline_inpaint.py:56
↓ 2 callersFunctioncompare_results
(name: str, result: torch.Tensor, ref_result: torch.Tensor)
diffusion/model/nets/fastlinear/modules/utils/compare_results.py:20
↓ 2 callersFunctioncompute_chunk_sizes
Compute actual chunk sizes from chunk_index. Args: chunk_index: List of chunk start indices (e.g., [0, 4, 8, 12]). T: Total numbe
diffusion/utils/chunk_utils.py:180
↓ 2 callersMethodcompute_distribution_matching_loss
compute DMD loss (consistent with DMD class).
diffusion/longsana/model/dmd_sana.py:488
↓ 2 callersFunctioncompute_text_embeddings
(prompts, pipeline, max_sequence_length, device)
train_scripts/sol_rl/train_flux1.py:100
↓ 2 callersFunctioncompute_text_embeddings
(prompts, pipeline, max_sequence_length, device)
train_scripts/sol_rl/train_sana.py:92
↓ 2 callersMethodcondition_score
Compute what the p_mean_variance output would have been, should the model's score function be conditioned by cond_fn. See con
diffusion/model/gaussian_diffusion.py:403
↓ 2 callersFunctionconvert_model_output
( model_output, sample, sigmas, step_index, )
diffusion/post_training/diffusers_patch/solver.py:264
↓ 2 callersMethodconvert_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/longsana/utils/scheduler.py:24
↓ 2 callersFunctioncount_conv3d
(model)
diffusion/model/wan2_2/vae.py:679
↓ 2 callersFunctioncount_conv3d
(model)
diffusion/model/wan/vae.py:438
↓ 2 callersFunctioncreate_dc_ae_model_cfg
(name: str, pretrained_path: Optional[str] = None)
diffusion/model/dc_ae/efficientvit/ae_model_zoo.py:63
↓ 2 callersFunctioncreate_grid
Create a pixel coordinate grid of shape ``(H, W, 3)`` or ``(B, H, W, 3)``.
diffusion/model/nets/sana_camctrl_blocks.py:73
↓ 2 callersFunctioncreate_save_root
(args, dataset, epoch_name, step_name, sample_steps, guidance_type)
scripts/inference_image_reward.py:345
↓ 2 callersFunctioncreate_save_root
(args, dataset, epoch_name, step_name, sample_steps, guidance_type)
scripts/inference_geneval.py:482
↓ 2 callersFunctioncreate_save_root
(args, dataset, epoch_name, step_name, sample_steps, guidance_type)
scripts/inference_dpg.py:366
↓ 2 callersFunctioncreate_save_root
(args, dataset, epoch_name, step_name, sample_steps, guidance_type)
scripts/inference_sana_sprint.py:337
↓ 2 callersFunctioncreate_save_root
(args, dataset, epoch_name, step_name, sample_steps)
scripts/inference_sana_sprint_geneval.py:434
↓ 2 callersFunctioncreate_save_root
(args, dataset, epoch_name, step_name, sample_steps, guidance_type)
scripts/inference.py:366
↓ 2 callersFunctioncycle
(dl)
diffusion/longsana/utils/dataset.py:313
↓ 2 callersMethoddata_prediction_fn
Return the data prediction model (with corrector).
diffusion/model/dpm_solver.py:801
↓ 2 callersMethoddata_prediction_fn
Return the data prediction model (with corrector).
diffusion/model/sa_solver.py:415
↓ 2 callersFunctionddim_update
( model_output: torch.Tensor, sigmas, step_index, sample: torch.Tensor = None, noise: Opti
diffusion/post_training/diffusers_patch/solver.py:276
↓ 2 callersMethoddecode
(self, z, scale)
diffusion/model/wan2_2/vae.py:763
↓ 2 callersMethoddenoise_to_zero_fn
Denoise at the final step, which is equivalent to solve the ODE from lambda_s to infty by first-order discretization.
diffusion/model/dpm_solver.py:980
↓ 2 callersMethoddenoise_to_zero_fn
Denoise at the final step, which is equivalent to solve the ODE from lambda_s to infty by first-order discretization.
diffusion/model/sa_solver.py:457
↓ 2 callersFunctiondownload_and_open
(remote, local, mode="rb", handlers=default_cmds, verbose=False)
diffusion/data/wids/wids_dl.py:144
↓ 2 callersFunctiondownload_model
Downloads a pre-trained Sana model from the web.
tools/download.py:64
↓ 2 callersFunctiondownload_model
Downloads a pre-trained Sana model from the web.
sana/tools/download.py:30
↓ 2 callersMethodedm_sigma
(self, t)
diffusion/model/sa_solver.py:200
↓ 2 callersFunctionema_update
(model_dest, model_src, rate)
train_video_scripts/train_video_ivjoint.py:87
↓ 2 callersFunctionema_update
(model_dest, model_src, rate)
train_video_scripts/train_video_ivjoint_chunk.py:96
↓ 2 callersFunctionema_update
(model_dest, model_src, rate)
train_scripts/train.py:88
↓ 2 callersMethodencode
(self, x, scale)
diffusion/model/wan/vae.py:480
↓ 2 callersFunctionensure_transformer_engine_available
(feature="Transformer Engine")
train_scripts/sol_rl/train_utils.py:40
↓ 2 callersFunctionestimate_intrinsics_with_pi3x
Estimate ``(fx, fy, cx, cy)`` for ``image`` using Pi3X. The image is internally resized to a Pi3X-friendly shape; the returned intrinsics are
inference_video_scripts/wm/inference_sana_wm.py:675
↓ 2 callersFunctionexport_onnx
( model: torch.nn.Module, input_shape: Tuple[int], export_path: str, opset: int, export_dt
diffusion/model/nets/fastlinear/modules/utils/export_onnx.py:24
↓ 2 callersFunctionextract_prefix
(i)
diffusion/data/wids/wids.py:776
↓ 2 callersMethodforward
(self, x: torch.Tensor, first_chunk=False)
diffusion/model/wan2_2/vae.py:364
↓ 2 callersMethodforward
(self, x)
diffusion/model/wan/clip.py:103
↓ 2 callersMethodforward
(self, x)
diffusion/model/wan/vae.py:474
↓ 2 callersMethodforward
Forward pass of Sana. x: (N, C, H, W) tensor of spatial inputs (images or latent representations of images) t: (N,) tensor of
diffusion/model/nets/sana.py:303
↓ 2 callersMethodforward
(self, x)
diffusion/model/nets/sana_multi_scale_video_camctrl.py:90
↓ 2 callersMethodforward
Forward pass of Sana. x: (N, C, H, W) tensor of spatial inputs (images or latent representations of images) t: (N,) tensor of
diffusion/model/nets/sana_multi_scale_controlnet.py:175
↓ 2 callersMethodforward
Forward pass of Sana. x: (N, C, T, H, W) tensor of spatial inputs (images or latent representations of images) t: (N,) tensor
diffusion/model/nets/sana_multi_scale_video.py:590
↓ 2 callersMethodforward
(self, x: torch.Tensor)
diffusion/model/dc_ae/efficientvit/models/nn/ops.py:411
↓ 2 callersMethodforward_long
Forward pass for self-forcing / chunk-causal AR KV-cache inference. Mirrors :meth:`forward` exactly with two streaming-specific differences:
diffusion/model/nets/sana_multi_scale_video_camctrl.py:1577
↓ 2 callersMethodforward_long
Forward pass of Sana. x: (N, C, T, H, W) tensor of spatial inputs (images or latent representations of images) t: (N,) tensor
diffusion/model/nets/sana_multi_scale_video.py:673
↓ 2 callersMethodforward_main
( self, x: torch.Tensor, feature_cache: Optional[dict[str, torch.Tensor]] = None,
diffusion/model/dc_ae/efficientvit/models/nn/ops_3d.py:530
↓ 2 callersFunctionforward_modality
(model, data, flag)
tools/metrics/clip-score/clip_score.py:251
↓ 2 callersFunctionforward_modality
(model, data, flag)
tools/metrics/clip-score/src/clip_score/clip_score.py:164
↓ 2 callersFunctionfsdp_state_dict
(model)
diffusion/longsana/utils/distributed.py:18
↓ 2 callersFunctionfused_qk_inv_rms
Single-pass Triton fused Q+K inverse-RMS. Replaces ``(_precompute_inv_rms(qkv, 0, C, eps), _precompute_inv_rms(qkv, 1, C, eps))`` with one la
diffusion/model/ops/fused_gdn.py:195
↓ 2 callersMethodfwdbwd_one_step_streaming
Forward/backward pass using the new StreamingTrainingModel for serialized training
diffusion/longsana/trainer/longsana_trainer.py:151
↓ 2 callersMethodgenerate
Generate a video. Args: image: First-frame RGB image, already cropped to ``(704, 1280)``. prompt: Text prompt.
inference_video_scripts/wm/inference_sana_wm.py:1197
↓ 2 callersMethodgenerator_loss
same as DMD: unfold generator to get fake video and compute DMD loss.
diffusion/longsana/model/dmd_sana.py:661
↓ 2 callersFunctionget_1d_sincos_pos_embed_from_grid
embed_dim: output dimension for each position pos: a list of positions to be encoded: size (M,) out: (M, D)
diffusion/model/nets/sana.py:447
↓ 2 callersFunctionget_ar_from_ref_image
(ref_image_path)
tools/controlnet/inference_controlnet.py:107
↓ 2 callersFunctionget_array_shape_from_lmdb
(env, array_name)
diffusion/longsana/utils/lmdb.py:4
↓ 2 callersMethodget_at_index
(self, index)
diffusion/data/wids/wids_mmtar.py:114
↓ 2 callersMethodget_at_offset
(self, offset)
diffusion/data/wids/wids_mmtar.py:107
↓ 2 callersFunctionget_beta_schedule
This is the deprecated API for creating beta schedules. See get_named_beta_schedule() for the new library of schedules.
diffusion/model/gaussian_diffusion.py:88
↓ 2 callersMethodget_block_output
(self)
diffusion/model/nets/sana_multi_scale_video_camctrl.py:1519
↓ 2 callersFunctionget_chunk_index_from_config
Resolve chunk_index from a config, supporting chunk_size and strategy. Priority: 1) config.model.chunk_index (explicit list) 2) confi
diffusion/utils/chunk_utils.py:134
↓ 2 callersMethodget_coefficients_fn
(self, order, interval_start, interval_end, lambda_list, tau)
diffusion/scheduler/sa_solver_diffusers.py:585
↓ 2 callersFunctionget_dist_rank
()
diffusion/model/dc_ae/efficientvit/apps/utils/dist.py:54
↓ 2 callersMethodget_image_prompt_embeds
Generates embeddings and an attention mask for the given prompt(s) and image(s), stripping the template part. Args:
diffusion/model/qwen/qwen_vl.py:147
↓ 2 callersFunctionget_model_input_time
Convert the continuous-time `t_continuous` (in [epsilon, T]) to the model input time. For discrete-time DPMs, we convert `t_continuou
diffusion/model/sa_solver.py:297
↓ 2 callersMethodget_scheduler
Update the current scheduler with the interface's static method
diffusion/scheduler/longlive_flow_euler_sampler.py:195
↓ 2 callersFunctionget_scribble_map
Generate scribble map from input image Args: input_image: Input image (numpy array, HWC format) det: Detector type ('Scribbl
tools/controlnet/utils.py:37
↓ 2 callersMethodget_stats
Return the number of cache accesses and misses.
diffusion/data/wids/wids.py:594
↓ 2 callersMethodget_text_embeddings
(self, text_prompts, use_chi_prompt=True)
diffusion/longsana/trainer/self_forcing_trainer.py:435
↓ 2 callersMethodget_time_steps
Compute the intermediate time steps for sampling.
diffusion/model/sa_solver.py:436
↓ 2 callersFunctionguidance_type_select
(default_guidance_type, pag_scale, attn_type)
app/sana_controlnet_pipeline.py:45
↓ 2 callersFunctionguidance_type_select
(default_guidance_type, pag_scale, attn_type)
app/sana_pipeline.py:43
↓ 2 callersFunctionguidance_type_select
(default_guidance_type, pag_scale, attn_type)
app/sana_pipeline_inpaint.py:47
↓ 2 callersFunctionguidance_type_select
(default_guidance_type, pag_scale, attn_type)
scripts/inference_image_reward.py:366
↓ 2 callersFunctionguidance_type_select
(default_guidance_type, pag_scale, attn_type)
scripts/inference_geneval.py:506
↓ 2 callersFunctionguidance_type_select
(default_guidance_type, pag_scale, attn_type)
scripts/inference_dpg.py:387
↓ 2 callersFunctionguidance_type_select
(default_guidance_type, pag_scale, attn_type)
scripts/inference.py:387
↓ 2 callersMethodinference
Generate a full video. Args: noise: Gaussian noise latent of shape [B, T, C, H, W] or [B, C, T, H, W]. text_
diffusion/longsana/pipeline/sana_inference_pipeline.py:138
↓ 2 callersFunctioninterpolate_fn
A piecewise linear function y = f(x), using xp and yp as keypoints. We implement f(x) in a differentiable way (i.e. applicable for autograd).
diffusion/model/dpm_solver.py:2019
↓ 2 callersFunctioninterpolate_fn
A piecewise linear function y = f(x), using xp and yp as keypoints. We implement f(x) in a differentiable way (i.e. applicable for autograd).
diffusion/model/sa_solver.py:1355
↓ 2 callersFunctioninterpret_transformations
Interpret the transformations argument. This takes care of transformations specified as string shortcuts and returns a list of callables.
diffusion/data/wids/wids.py:433
↓ 2 callersMethodinverse_lambda
Compute the continuous-time label t in [0, T] of a given half-logSNR lambda_t.
diffusion/model/sa_solver.py:172
↓ 2 callersFunctionis_distributed
()
diffusion/utils/dist_utils.py:32
↓ 2 callersFunctionis_parallel
(model: nn.Module)
diffusion/model/dc_ae/efficientvit/models/utils/network.py:37
↓ 2 callersFunctioniterate_ranges
Iterate over the ranges in a random order.
diffusion/data/wids/wids.py:829
↓ 2 callersFunctionlaunch_distributed_job
(backend: str = "nccl")
diffusion/longsana/utils/distributed.py:83
↓ 2 callersFunctionlinear_relu_fwd
(a: torch.Tensor, b: torch.Tensor)
diffusion/model/nets/fastlinear/modules/triton_lite_mla_kernels/linear_relu_fwd.py:187
↓ 2 callersFunctionload_ckpt_with_auto_reshape
(model, state_dict, strict=False)
diffusion/utils/checkpoint.py:286
↓ 2 callersFunctionload_dsdesc_and_resolve
(source, *, options=None, base=None)
diffusion/data/wids/wids_specs.py:188
← previousnext →501–600 of 2,606, ranked by callers