MCPcopy Create free account

hub / github.com/NVlabs/Sana / functions

Functions2,606 in github.com/NVlabs/Sana

↓ 1 callersFunctioncreate_interface
()
app/app_sana_inpaint.py:278
↓ 1 callersMethodcreate_mask_overlay
Create an overlay showing the image with mask highlighted
app/app_sana_inpaint.py:212
↓ 1 callersFunctioncreate_save_root
(args, dataset, epoch_name, step_name, sample_steps, guidance_type)
tools/controlnet/inference_controlnet.py:78
↓ 1 callersFunctioncreate_save_root
(args, dataset, epoch_name, step_name, sample_steps, num_frames)
inference_video_scripts/inference_sana_video.py:582
↓ 1 callersFunctioncreate_tar
(data_path)
scripts/inference_image_reward.py:69
↓ 1 callersFunctioncreate_tar
(data_path)
scripts/inference_sana_sprint.py:63
↓ 1 callersFunctioncreate_tar
(data_path)
scripts/inference.py:69
↓ 1 callersMethodcritic_loss
consistent with DMD: generate samples and train fake_score (SANA).
diffusion/longsana/model/dmd_sana.py:704
↓ 1 callersFunctioncrop_image
(input_image, crop_tuple=None)
tools/metrics/dpg_bench/compute_dpg_bench.py:123
↓ 1 callersFunctioncuda_phase_a
CUDA Phase A -> (I_P_kv, A, I_P_z, B_z), shapes/dtypes matching Triton.
diffusion/model/ops/fused_gdn_chunkwise_cuda.py:786
↓ 1 callersFunctioncuda_phase_c_fused
(inp, M_hist, z_hist, eps=1e-6)
diffusion/model/ops/fused_gdn_chunkwise_cuda.py:764
↓ 1 callersFunctioncustom_conv3d
( input: torch.Tensor, weight: torch.Tensor, bias: Optional[torch.Tensor], stride: Sequence[in
diffusion/model/dc_ae/efficientvit/models/nn/ops_3d.py:44
↓ 1 callersFunctiondance_grpo_step
( model_output: torch.Tensor, latents: torch.Tensor, eta: float, sigmas: torch.Tensor, ind
diffusion/post_training/diffusers_patch/solver.py:125
↓ 1 callersFunctiondata_pred_fn
(x, t_continuous, cond=None)
diffusion/model/dpm_solver.py:415
↓ 1 callersMethodddim_sample
Sample x_{t-1} from the model using DDIM. Same usage as p_sample().
diffusion/model/gaussian_diffusion.py:556
↓ 1 callersMethodddim_sample_loop_progressive
Use DDIM to sample from the model and yield intermediate samples from each timestep of DDIM. Same usage as p_sample_loop_prog
diffusion/model/gaussian_diffusion.py:666
↓ 1 callersFunctionddim_step
( model_output: torch.Tensor, latents: torch.Tensor, eta: float, sigmas: torch.Tensor, ind
diffusion/post_training/diffusers_patch/solver.py:160
↓ 1 callersFunctiondebug
()
diffusion/model/nets/fastlinear/modules/triton_mb_conv_pre_glu_kernels/depthwise_conv_fwd.py:178
↓ 1 callersMethoddecode
(self, z, scale)
diffusion/model/wan/vae.py:504
↓ 1 callersMethoddecode
(self, x: torch.Tensor)
diffusion/model/dc_ae/efficientvit/models/efficientvit/dc_ae_with_temporal.py:721
↓ 1 callersMethoddecode
Decode a batch of latents into images. Args: z: Input batch of latent vectors [B, C, T, H, W]. temb: Optional timeste
diffusion/model/ltx2/causal_vae.py:1789
↓ 1 callersMethoddecode_latent
(self, latent)
app/sana_pipeline_inpaint.py:202
↓ 1 callersMethoddecode_per_frame_with_cache
Stream-decode a latent video one latent frame at a time, yielding pixel chunks. Each iteration decodes a single latent frame and relies on th
diffusion/model/ltx2/causal_vae.py:1685
↓ 1 callersMethoddecode_single
(self, z: torch.Tensor)
diffusion/model/dc_ae/efficientvit/models/efficientvit/dc_ae_with_temporal.py:710
↓ 1 callersFunctiondelete_directory
(exp_name)
scripts/inference_image_reward.py:77
↓ 1 callersFunctiondelete_directory
(exp_name)
scripts/inference_sana_sprint.py:71
↓ 1 callersFunctiondelete_directory
(exp_name)
scripts/inference.py:77
↓ 1 callersFunctiondepthwise_conv_fwd
Input: x: (B, H, W, C) weight: (C, K, K) bias: (C,) Output: y: (B, H, W, C)
diffusion/model/nets/fastlinear/modules/triton_mb_conv_pre_glu_kernels/depthwise_conv_fwd.py:134
↓ 1 callersMethoddetect_overflow
Report whether the tensor contains any `nan` or `inf` entries. This is useful for detecting overflows/underflows and best to call rig
diffusion/utils/misc.py:404
↓ 1 callersFunctiondiscretized_gaussian_log_likelihood
Compute the log-likelihood of a Gaussian distribution discretizing to a given image. :param x: the target images. It is assumed that this
diffusion/model/diffusion_utils.py:71
↓ 1 callersFunctiondist_init
()
diffusion/model/dc_ae/efficientvit/apps/utils/dist.py:37
↓ 1 callersFunctiondownload_file
(remote, local, handlers=default_cmds, verbose=False)
diffusion/data/wids/wids_dl.py:125
↓ 1 callersFunctiondownload_file_no_log
Download a file from a remote url to a local path. The remote url can be a pipe: url, in which case the remainder of the url is treated as a c
diffusion/data/wids/wids_dl.py:99
↓ 1 callersMethoddpm_solver_adaptive
The adaptive step size solver based on singlestep DPM-Solver. Args: x: A pytorch tensor. The initial value at time `t_T`
diffusion/model/dpm_solver.py:1420
↓ 1 callersFunctiondpm_solver_first_order_update
( model_output: torch.Tensor, sigmas, step_index, sample: torch.Tensor = None, )
diffusion/post_training/diffusers_patch/solver.py:299
↓ 1 callersFunctiondpm_step
( order, model_output: torch.Tensor, sample: torch.Tensor, step_index: int, timesteps: lis
diffusion/post_training/diffusers_patch/solver.py:208
↓ 1 callersFunctiondump_config
Dump a config file
diffusion/model/dc_ae/efficientvit/apps/utils/misc.py:111
↓ 1 callersMethoddump_saved_frames
(self)
diffusion/utils/misc.py:284
↓ 1 callersMethodedm_inverse_sigma
(self, edmsigma)
diffusion/model/sa_solver.py:203
↓ 1 callersFunctionema_update
(model_dest: nn.Module, model_src: nn.Module, rate)
train_scripts/train_scm_ladd.py:73
↓ 1 callersMethodencode
(self, x: torch.Tensor)
diffusion/model/dc_ae/efficientvit/models/efficientvit/dc_ae_with_temporal.py:645
↓ 1 callersMethodencode
Encode a batch of images into latents. Args: x: Input batch of images [B, C, T, H, W]. causal: Whether to use causal
diffusion/model/ltx2/causal_vae.py:1738
↓ 1 callersFunctionencode_flux_prompt
( pipeline, prompt, max_sequence_length, device=None, num_images_per_prompt=1, prompt_
diffusion/post_training/diffusers_patch/text_encode.py:144
↓ 1 callersFunctionencode_sana_prompt
( pipeline, prompt, max_sequence_length, device=None, negative_prompt="", do_classifie
diffusion/post_training/diffusers_patch/text_encode.py:175
↓ 1 callersFunctionencode_sd3_prompt
( text_encoders, tokenizers, prompt, max_sequence_length, device=None, num_images_per_
diffusion/post_training/diffusers_patch/text_encode.py:96
↓ 1 callersMethodencode_single
(self, x: torch.Tensor)
diffusion/model/dc_ae/efficientvit/models/efficientvit/dc_ae_with_temporal.py:626
↓ 1 callersFunctioneval_fn
( pipeline, test_dataloader, text_encoders, tokenizers, config, device, rank,
train_scripts/sol_rl/train_flux1.py:115
↓ 1 callersFunctioneval_fn
( pipeline, eval_transformer, vae, num_channels, latent_size, test_dataloader, con
train_scripts/sol_rl/train_sana.py:326
↓ 1 callersFunctioneval_fn
( pipeline, test_dataloader, text_encoders, tokenizers, config, device, rank,
train_scripts/sol_rl/train_sd3.py:117
↓ 1 callersFunctionevaluate
Evaluate given image using detected objects on the global metadata specifications. Assumptions: * Metadata combines 'include' clauses wit
tools/metrics/geneval/evaluation/evaluate_images.py:151
↓ 1 callersFunctionevaluate_image
(filepath, metadata)
tools/metrics/geneval/evaluation/evaluate_images.py:214
↓ 1 callersFunctionexpand_dims
Expand the tensor `v` to the dim `dims`. Args: `v`: a PyTorch tensor with shape [N]. `dim`: a `int`. Returns: a P
diffusion/model/sa_solver.py:1400
↓ 1 callersFunctionextract_greyscale_mask
Extracts the original image and greyscale mask from Gradio's ImageEditor data. - image_editor_data: dict with keys like 'background' and 'lay
app/app_sana_inpaint.py:44
↓ 1 callersFunctionf
Given a URL, return a local name for the shard.
diffusion/data/wids/wids.py:343
↓ 1 callersFunctionfid_inception_v3
Build pretrained Inception model for FID computation The Inception model for FID computation uses a different set of weights and has a slight
tools/metrics/pytorch-fid/src/pytorch_fid/inception.py:189
↓ 1 callersMethodfind_latest_checkpoint
Find the latest checkpoint in the logdir.
diffusion/longsana/trainer/ode.py:224
↓ 1 callersMethodfind_latest_checkpoint
Find the latest checkpoint in the logdir.
diffusion/longsana/trainer/self_forcing_trainer.py:320
↓ 1 callersFunctionflow_grpo_step
( model_output: torch.Tensor, latents: torch.Tensor, eta: float, sigmas: torch.Tensor, ind
diffusion/post_training/diffusers_patch/solver.py:79
↓ 1 callersMethodforward
r""" Args: x(Tensor): Shape [B, L1, C] e(Tensor): Shape [B, C]
diffusion/model/wan/model.py:715
↓ 1 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_adaln.py:247
↓ 1 callersMethodforward
( self, x: torch.Tensor, mask=None, HW=None, rotary_emb=None, block_id=None, block_mask=None )
diffusion/model/nets/sana_blocks.py:265
↓ 1 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_camctrl.py:924
↓ 1 callersMethodforward
( self, x: torch.Tensor, mask: torch.Tensor | None = None, HW: tuple[int, int,
diffusion/model/nets/sana_gdn_blocks_triton.py:96
↓ 1 callersMethodforward
( self, x: torch.Tensor, mask: torch.Tensor | None = None, HW: tuple[int, int,
diffusion/model/nets/sana_gdn_blocks.py:1225
↓ 1 callersMethodforward
( self, prompt=None, height=1024, width=1024, negative_prompt="",
app/sana_pipeline.py:167
↓ 1 callersMethodforward_controlnet
(self, control_signal, pos_embed_ms=None)
diffusion/model/nets/sana_multi_scale_controlnet.py:168
↓ 1 callersMethodforward_frame_aware
(self, x, t)
diffusion/model/nets/sana_blocks.py:907
↓ 1 callersMethodforward_frame_aware
( self, x, y, t, mask=None, THW=None, rotary_emb=None, block_mask=None, chunk_index=None, **kwargs
diffusion/model/nets/sana_multi_scale_video_camctrl.py:303
↓ 1 callersMethodforward_frame_aware
(self, x, y, t, mask=None, THW=None, rotary_emb=None, chunk_index=None, **kwargs)
diffusion/model/nets/sana_multi_scale_video.py:204
↓ 1 callersFunctionfuse_distilled_lora_inplace
Apply ``W += (B @ A) * strength`` for every LoRA pair into transformer_state. LoRA key convention (LTX official distilled LoRA): diffusio
tools/convert_sana_wm_refiner_to_diffusers.py:135
↓ 1 callersFunctionfused_bigdn_func
Bidirectional fused GDN. Returns ``(B, N, H, D)``. Thin entry point kept for call-site stability; delegates to :func:`fused_bigdn_bidi_chunkw
diffusion/model/ops/fused_gdn.py:235
↓ 1 callersFunctiongather_difflen_tensor
(feat, num_samples_list, concat=True, group=None, group_size=None)
diffusion/utils/dist_utils.py:224
↓ 1 callersFunctiongcd
(a, b)
tools/controlnet/inference_controlnet.py:109
↓ 1 callersFunctiongcd
(a, b)
app/sana_controlnet_pipeline.py:64
↓ 1 callersMethodgenerate_cache_filename
(self, dataset_name, dataset_count)
diffusion/data/datasets/video/sana_video_data.py:242
↓ 1 callersMethodgenerate_chunk_with_cache
denoise in chunk-wise manner, input/output is consistent with sample in SelfForcingFlowEuler.sample: - input/output: latents (B, C, T
diffusion/longsana/pipeline/sana_training_pipeline.py:162
↓ 1 callersFunctiongenerate_color_attribution_sample
(rng: np.random.Generator)
tools/metrics/geneval/prompts/create_prompts.py:128
↓ 1 callersFunctiongenerate_color_sample
(rng: np.random.Generator)
tools/metrics/geneval/prompts/create_prompts.py:94
↓ 1 callersFunctiongenerate_counting_sample
(rng: np.random.Generator, max_count=4)
tools/metrics/geneval/prompts/create_prompts.py:77
↓ 1 callersFunctiongenerate_position_sample
(rng: np.random.Generator)
tools/metrics/geneval/prompts/create_prompts.py:111
↓ 1 callersFunctiongenerate_single_object_sample
(rng: np.random.Generator, size: int = None)
tools/metrics/geneval/prompts/create_prompts.py:38
↓ 1 callersMethodgenerate_streaming
Chunk-pipelined interactive generation. Runs stage-1 sampling, refiner AR blocks, and causal-VAE decode on three CUDA streams, emitti
inference_video_scripts/wm/inference_sana_wm.py:1638
↓ 1 callersFunctiongenerate_suite
(rng: np.random.Generator, n: int = 100, output_path: str = "")
tools/metrics/geneval/prompts/create_prompts.py:146
↓ 1 callersFunctiongenerate_temporal_head_mask_mod
( context_length: int = 226, prompt_length: int = 226, num_frames: int = 13, token_per_frame: int = 1350,
diffusion/model/utils.py:199
↓ 1 callersFunctiongenerate_two_object_sample
(rng: np.random.Generator)
tools/metrics/geneval/prompts/create_prompts.py:62
↓ 1 callersMethodgenerate_video
(self, pipeline, num_frames, prompts, image=None)
diffusion/longsana/trainer/ode.py:376
↓ 1 callersMethodgenerate_video
(self, pipeline, num_frames, prompts, image=None)
diffusion/longsana/trainer/self_forcing_trainer.py:618
↓ 1 callersFunctionget_2d_sincos_pos_embed_from_grid
(embed_dim, grid)
diffusion/model/nets/sana.py:436
↓ 1 callersMethodget_abs_min_max
(var, ctx)
diffusion/utils/misc.py:399
↓ 1 callersFunctionget_activations
(files, model, batch_size=50, dims=2048, device="cpu", num_workers=1)
tools/metrics/pytorch-fid/compute_fid.py:48
↓ 1 callersFunctionget_activations
Calculates the activations of the pool_3 layer for all images. Params: -- files : List of image files paths -- model : Instan
tools/metrics/pytorch-fid/src/pytorch_fid/fid_score.py:98
↓ 1 callersMethodget_all_checkpoints
Get all checkpoints in the logdir sorted by step number.
diffusion/longsana/trainer/ode.py:250
↓ 1 callersMethodget_all_checkpoints
Get all checkpoints in the logdir sorted by step number.
diffusion/longsana/trainer/self_forcing_trainer.py:346
↓ 1 callersFunctionget_ar_from_ref_image
(ref_image)
app/sana_controlnet_pipeline.py:62
↓ 1 callersFunctionget_args
()
tools/controlnet/inference_controlnet.py:249
↓ 1 callersFunctionget_args
()
app/app_sana_multithread.py:164
↓ 1 callersFunctionget_args
()
app/app_sana_sprint.py:157
↓ 1 callersFunctionget_args
()
app/app_sana_controlnet_hed.py:30
↓ 1 callersFunctionget_args
()
app/app_sana_4bit_compare_bf16.py:123
↓ 1 callersFunctionget_args
()
app/app_sana_4bit.py:124
← previousnext →1,001–1,100 of 2,606, ranked by callers