MCPcopy Create free account

hub / github.com/NVlabs/Sana / functions

Functions2,606 in github.com/NVlabs/Sana

Method__init__
( self, config: Optional[str] = "configs/sana_config/1024ms/Sana_1600M_img1024.yaml", )
app/sana_pipeline.py:81
Method__init__
( self, config: Optional[str] = "configs/sana_config/1024ms/Sana_1600M_img1024.yaml", )
app/sana_pipeline_inpaint.py:100
Method__init__
( self, config: Optional[ str ] = "configs/sana_sprint_config/1024ms/SanaS
app/sana_sprint_pipeline.py:71
Method__init__
(self, max_dataset_size: int = -1, **kwargs)
scripts/inference_geneval.py:101
Method__init__
(self, max_dataset_size: int = -1, **kwargs)
scripts/inference_sana_sprint_geneval.py:100
Method__init__
(self, prompts, original_indices=None)
inference_video_scripts/inference_sana_video.py:83
Method__init__
(self, pitch_limit_rad: float = math.radians(DEFAULT_PITCH_LIMIT_DEG))
inference_video_scripts/wm/camera_control.py:132
Method__init__
( self, output_path: str | Path, *, height: int, width: int, f
inference_video_scripts/wm/streaming_mp4_writer.py:72
Method__init__
(self, conv_layer: nn.Module)
inference_video_scripts/wm/inference_sana_wm.py:352
Method__init__
(self, source: nn.Module)
inference_video_scripts/wm/inference_sana_wm.py:385
Method__iter__
(self)
tools/metrics/clip-score/clip_score.py:149
Method__iter__
(self)
diffusion/utils/data_sampler.py:85
Method__iter__
(self)
diffusion/utils/data_sampler.py:220
Method__iter__
(self)
diffusion/utils/data_sampler.py:280
Method__iter__
(self)
diffusion/post_training/prompt_dataset.py:89
Method__iter__
(self)
diffusion/data/wids/wids_mmtar.py:122
Method__iter__
(self)
diffusion/data/wids/wids.py:868
Method__iter__
(self)
diffusion/data/wids/wids.py:909
Method__iter__
(self)
diffusion/data/wids/wids.py:1012
Method__iter__
(self)
diffusion/data/wids/wids.py:1018
Method__len__
(self)
tools/metrics/pytorch-fid/compute_fid.py:32
Method__len__
(self)
tools/metrics/pytorch-fid/src/pytorch_fid/fid_score.py:87
Method__len__
(self)
tools/metrics/geneval/evaluation/evaluate_images.py:80
Method__len__
(self)
tools/metrics/clip-score/clip_score.py:55
Method__len__
(self)
tools/metrics/clip-score/clip_score.py:170
Method__len__
(self)
tools/metrics/clip-score/src/clip_score/clip_score.py:84
Method__len__
(self)
diffusion/scheduler/lcm_scheduler.py:454
Method__len__
(self)
diffusion/scheduler/scm_scheduler.py:181
Method__len__
(self)
diffusion/scheduler/trigflow_scheduler.py:225
Method__len__
(self)
diffusion/scheduler/sa_solver_diffusers.py:936
Method__len__
(self)
diffusion/post_training/prompt_dataset.py:40
Method__len__
(self)
diffusion/post_training/prompt_dataset.py:60
Method__len__
(self)
diffusion/model/dc_ae/efficientvit/apps/utils/image.py:166
Method__len__
(self)
diffusion/longsana/utils/dataset.py:27
Method__len__
(self)
diffusion/longsana/utils/dataset.py:70
Method__len__
(self)
diffusion/longsana/utils/dataset.py:88
Method__len__
(self)
diffusion/longsana/utils/dataset.py:124
Method__len__
(self)
diffusion/longsana/utils/dataset.py:194
Method__len__
(self)
diffusion/longsana/utils/dataset.py:303
Method__len__
(self)
diffusion/data/datasets/sana_data.py:168
Method__len__
(self)
diffusion/data/datasets/sana_data.py:393
Method__len__
(self)
diffusion/data/datasets/sana_data_multi_scale.py:226
Method__len__
(self)
diffusion/data/datasets/sana_data_multi_scale.py:262
Method__len__
(self)
diffusion/data/datasets/video/sana_video_data.py:428
Method__len__
(self)
diffusion/data/datasets/video/sana_video_data.py:496
Method__len__
(self)
diffusion/data/wids/wids_mmtar.py:132
Method__len__
(self)
diffusion/data/wids/wids_tar.py:86
Method__len__
Return the number of entries in the cache.
diffusion/data/wids/wids_lru.py:53
Method__len__
(self)
diffusion/data/wids/wids.py:303
Method__len__
(self)
diffusion/data/wids/wids.py:409
Method__len__
Return the total number of samples in the dataset.
diffusion/data/wids/wids.py:590
Method__len__
(self)
diffusion/data/wids/wids.py:920
Method__len__
(self)
diffusion/data/wids/wids.py:1006
Method__len__
(self)
train_scripts/train_dreambooth_lora_sana.py:756
Method__len__
(self)
train_scripts/train_dreambooth_lora_sana.py:810
Method__len__
(self)
inference_video_scripts/inference_sana_video.py:97
Method__post_init__
(self)
diffusion/post_training/diffusers_patch/solver.py:195
Method__repr__
(self)
diffusion/model/nets/sana_blocks.py:300
Method__repr__
(self)
diffusion/model/nets/fastlinear/modules/triton_lite_mla_fwd.py:112
Method__repr__
(self)
diffusion/model/nets/fastlinear/modules/lite_mla.py:104
Method__repr__
(self)
diffusion/model/nets/fastlinear/modules/triton_lite_mla.py:131
Method__repr__
(self)
diffusion/model/dc_ae/efficientvit/models/nn/ops_3d.py:251
Method__repr__
(self)
diffusion/data/transforms.py:127
Method__repr__
(self)
diffusion/data/transforms.py:190
Method__repr__
(self)
diffusion/data/transforms.py:226
Method__repr__
(self)
diffusion/data/wids/wids.py:331
Method__setitem__
Associate the given value with the given key.
diffusion/data/wids/wids_lru.py:35
Method__str__
(self)
diffusion/utils/config.py:35
Method__str__
(self)
diffusion/data/wids/wids.py:328
Function_apply_block_diagonal
Apply a block-diagonal function: split features by sizes, transform each, concat.
diffusion/model/nets/sana_camctrl_blocks.py:501
Function_apply_chunking_to_forward
(forward_fn, chunk_size, chunk_dim, *input_tensors)
diffusion/post_training/rewards.py:124
Function_apply_complex_rope
Apply complex RoPE (compiled: fuses fp64 cast + view_as_complex + multiply chain).
diffusion/model/nets/sana_camctrl_blocks.py:485
Function_apply_ray_projmat
Apply a per-token 4x4 projection matrix to feature channels grouped by 4.
diffusion/model/nets/sana_camctrl_blocks.py:470
Method_apply_temporal_short_conv
Apply bidirectional (non-causal) ShortConvolution along T. Uses the forward+backward causal trick: run the causal conv in both direct
diffusion/model/nets/sana_gdn_blocks.py:518
Method_apply_temporal_short_conv
Chunk-causal ShortConvolution: global forward + per-chunk backward. Mirrors the ChunkCausalGDN recurrence semantics: * **Forward (ca
diffusion/model/nets/sana_gdn_blocks.py:666
Method_basic_init
(module)
diffusion/model/nets/sana_multi_scale_adaln.py:336
Method_basic_init
(module)
diffusion/model/nets/sana.py:375
Method_basic_init
(module)
diffusion/model/nets/sana_multi_scale_video_camctrl.py:1267
Method_basic_init
(module)
diffusion/model/nets/sana_multi_scale_video.py:807
Method_basic_init
(module)
diffusion/model/nets/sana_U_shape_multi_scale.py:328
Method_basic_init
(module)
diffusion/model/nets/sana_U_shape.py:316
Method_basic_init
(module)
diffusion/model/nets/sana_multi_scale.py:427
Function_cam_prep_kernel
One program per (b, n, h) — processes a single (Q, K, V) head slice. Loads the first D_HALF dims as a (N_GROUPS, 4) tile (for the UCPE block-
diffusion/model/ops/fused_cam_gdn.py:192
Method_check
(self)
tools/metrics/clip-score/src/clip_score/clip_score.py:121
Method_clear_cache_gradients
Detach gradients from all KV cache tensors (external and module-internal). This prevents autograd from tracking historical caches across chunk
diffusion/longsana/pipeline/sana_training_pipeline.py:600
Method_convert_x0_to_flow_pred
Convert x0 prediction to flow matching's prediction. x0_pred: the x0 prediction with shape [B, C, H, W] xt: the input noisy d
diffusion/scheduler/longlive_flow_euler_sampler.py:243
Method_dequantize_state_first_step
Efficient dequantization for the first step
diffusion/utils/optimizer.py:584
Method_expand_time
(x, t)
diffusion/model/dpm_solver.py:738
Method_extract_into_tensor
Extract values from a 1-D numpy array for a batch of indices. :param arr: the 1-D numpy array. :param timesteps: a tensor of
app/sana_pipeline_inpaint.py:185
Function_find_pruneable_heads_and_indices
(heads, n_heads, head_size, already_pruned_heads)
diffusion/post_training/rewards.py:136
Function_fn
(images, prompts, metadata)
diffusion/post_training/rewards.py:327
Method_forward_long_with_extras
( x: torch.Tensor, timestep: torch.Tensor, y: torch.Tensor, ma
diffusion/scheduler/self_forcing_flow_euler_sampler.py:333
Function_fused_qk_inv_rms_kernel
( qkv_ptr, # *T_in (B, N, 3, H, D), contiguous q_inv_rms_ptr, # *float32 (B, N) k_inv_rms_p
diffusion/model/ops/fused_gdn.py:163
Method_generate_examples
(self, meta_path: str)
scripts/inference_geneval.py:140
Method_generate_examples
(self, meta_path: str)
scripts/inference_sana_sprint_geneval.py:139
Function_get_chunk_causal_mask
Chunk-wise block-causal mask for video generation. Full attention within each chunk (all spatial tokens across all frames in the chunk attend
diffusion/model/nets/sana_gdn_blocks.py:904
Method_get_tile_positions
Compute tile start positions ensuring full coverage with given overlap. Returns a list of start positions such that every pixel in [0, total_
diffusion/model/ltx2/causal_vae.py:1856
Method_get_variance
(self, timestep, prev_timestep)
diffusion/scheduler/lcm_scheduler.py:241
Method_info
(self)
scripts/inference_geneval.py:119
Method_info
(self)
scripts/inference_sana_sprint_geneval.py:118
← previousnext →1,801–1,900 of 2,606, ranked by callers