MCPcopy Create free account

hub / github.com/SkyworkAI/SkyReels-V2 / functions

Functions197 in github.com/SkyworkAI/SkyReels-V2

Method__init__
(self, *args, **kwargs)
skyreels_v2_infer/modules/vae.py:22
Method__init__
(self, dim, channel_first=True, images=True, bias=False)
skyreels_v2_infer/modules/vae.py:39
Method__init__
(self, dim, mode)
skyreels_v2_infer/modules/vae.py:62
Method__init__
(self, in_dim, out_dim, dropout=0.0)
skyreels_v2_infer/modules/vae.py:164
Method__init__
(self, dim)
skyreels_v2_infer/modules/vae.py:205
Method__init__
( self, dim=128, z_dim=4, dim_mult=[1, 2, 4, 4], num_res_blocks=2,
skyreels_v2_infer/modules/vae.py:240
Method__init__
( self, dim=128, z_dim=4, dim_mult=[1, 2, 4, 4], num_res_blocks=2,
skyreels_v2_infer/modules/vae.py:338
Method__init__
( self, dim=128, z_dim=4, dim_mult=[1, 2, 4, 4], num_res_blocks=2,
skyreels_v2_infer/modules/vae.py:445
Method__init__
(self, dim, eps=1e-5)
skyreels_v2_infer/modules/transformer.py:87
Method__init__
(self, dim, eps=1e-6, elementwise_affine=False)
skyreels_v2_infer/modules/transformer.py:105
Method__init__
(self, dim, num_heads, window_size=(-1, -1), qk_norm=True, eps=1e-6)
skyreels_v2_infer/modules/transformer.py:117
Method__init__
(self, dim, num_heads, window_size=(-1, -1), qk_norm=True, eps=1e-6)
skyreels_v2_infer/modules/transformer.py:211
Method__init__
( self, cross_attn_type, dim, ffn_dim, num_heads, window_size=
skyreels_v2_infer/modules/transformer.py:267
Method__init__
(self, in_dim, out_dim)
skyreels_v2_infer/modules/transformer.py:383
Method__init__
r""" Initialize the diffusion model backbone. Args: model_type (`str`, *optional*, defaults to 't2v'): Mo
skyreels_v2_infer/modules/transformer.py:410
Method__init__
(self, dim, num_heads, dropout=0.1, eps=1e-5)
skyreels_v2_infer/modules/xlm_roberta.py:11
Method__init__
(self, dim, num_heads, post_norm, dropout=0.1, eps=1e-5)
skyreels_v2_infer/modules/xlm_roberta.py:49
Method__init__
( self, model_path, dit_path, device: str = "cuda", weight_dtype=torch.bfloat16, use_usp=False, offloa
skyreels_v2_infer/pipelines/image2video_pipeline.py:39
Method__init__
( self, model_path, dit_path, device: str = "cuda", weight_dtype=torch.bfloat16, use_usp=False, offloa
skyreels_v2_infer/pipelines/text2video_pipeline.py:18
Method__init__
Initialize the diffusion forcing pipeline class Args: model_path (str): Path to the model dit_path (str): Pa
skyreels_v2_infer/pipelines/diffusion_forcing_pipeline.py:40
Method__init__
(self, model_name="Qwen/Qwen2.5-32B-Instruct")
skyreels_v2_infer/pipelines/prompt_enhancer.py:26
Method__init__
(self, csv_path, model_path)
skycaptioner_v1/scripts/vllm_struct_caption.py:19
Method__init__
(self, input_csv, model_path, task=None)
skycaptioner_v1/scripts/vllm_fusion_caption.py:67
Method__init__
(self, model_path, tensor_parallel_size)
skycaptioner_v1/scripts/gradio_struct_caption.py:10
Method__init__
(self, model_path, tensor_parallel_size)
skycaptioner_v1/scripts/gradio_fusion_caption.py:51
Method__len__
(self)
skyreels_v2_infer/scheduler/fm_solvers_unipc.py:758
Method__len__
(self)
skycaptioner_v1/scripts/vllm_struct_caption.py:70
Method__len__
(self)
skycaptioner_v1/scripts/vllm_fusion_caption.py:80
Method_norm
(self, x)
skyreels_v2_infer/modules/transformer.py:100
Method_prepare_blockwise_causal_attn_mask
we will divide the token sequence into the following format [1 latent frame] [1 latent frame] ... [1 latent frame] We use fle
skyreels_v2_infer/modules/transformer.py:541
Method_set_gradient_checkpointing
(self, module, value=False)
skyreels_v2_infer/modules/transformer.py:531
Method_sigma_to_t
(self, sigma)
skyreels_v2_infer/scheduler/fm_solvers_unipc.py:251
Methodadd_noise
( self, original_samples: torch.Tensor, noise: torch.Tensor, timesteps: torch.
skyreels_v2_infer/scheduler/fm_solvers_unipc.py:724
Functionattention
( q, k, v, q_lens=None, k_lens=None, dropout_p=0.0, softmax_scale=None, q_scal
skyreels_v2_infer/modules/attention.py:132
Methodattention_mask
(b, h, q_idx, kv_idx)
skyreels_v2_infer/modules/transformer.py:562
Methodbegin_index
The index for the first timestep. It should be set from pipeline with `set_begin_index` method.
skyreels_v2_infer/scheduler/fm_solvers_unipc.py:138
Methodcross_attn_ffn
(x, context, e)
skyreels_v2_infer/modules/transformer.py:335
Functioncustom_collate_fn
(batch)
skycaptioner_v1/scripts/vllm_fusion_caption.py:177
Methoddo_classifier_free_guidance
(self)
skyreels_v2_infer/pipelines/diffusion_forcing_pipeline.py:80
Methodencode
(self, texts)
skyreels_v2_infer/modules/t5.py:446
Methodforward
(self, x)
skyreels_v2_infer/modules/clip.py:47
Methodforward
(self, x)
skyreels_v2_infer/modules/clip.py:52
Methodforward
x: [B, L, C].
skyreels_v2_infer/modules/clip.py:71
Methodforward
(self, x)
skyreels_v2_infer/modules/clip.py:144
Methodforward
x: [B, L, C].
skyreels_v2_infer/modules/clip.py:179
Methodforward
(self, x, interpolation=False, use_31_block=False)
skyreels_v2_infer/modules/clip.py:268
Methodforward
(self, ids)
skyreels_v2_infer/modules/clip.py:303
Methodforward
imgs: [B, 3, H, W] of torch.float32. - mean: [0.48145466, 0.4578275, 0.40821073] - std: [0.26862954, 0.2613025
skyreels_v2_infer/modules/clip.py:397
Methodforward
(self, x)
skyreels_v2_infer/modules/t5.py:47
Methodforward
(self, x)
skyreels_v2_infer/modules/t5.py:58
Methodforward
x: [B, L1, C]. context: [B, L2, C] or None. mask: [B, L2] or [B, L1, L2] or None.
skyreels_v2_infer/modules/t5.py:81
Methodforward
(self, x)
skyreels_v2_infer/modules/t5.py:129
Methodforward
(self, x, mask=None, pos_bias=None)
skyreels_v2_infer/modules/t5.py:154
Methodforward
(self, x, mask=None, encoder_states=None, encoder_mask=None, pos_bias=None)
skyreels_v2_infer/modules/t5.py:180
Methodforward
(self, lq, lk)
skyreels_v2_infer/modules/t5.py:199
Methodforward
(self, ids, mask=None)
skyreels_v2_infer/modules/t5.py:259
Methodforward
(self, ids, mask=None, encoder_states=None, encoder_mask=None)
skyreels_v2_infer/modules/t5.py:296
Methodforward
(self, encoder_ids, encoder_mask, decoder_ids, decoder_mask)
skyreels_v2_infer/modules/t5.py:353
Methodforward
(self, x, cache_x=None)
skyreels_v2_infer/modules/vae.py:27
Methodforward
(self, x)
skyreels_v2_infer/modules/vae.py:49
Methodforward
Fix bfloat16 support for nearest neighbor interpolation.
skyreels_v2_infer/modules/vae.py:54
Methodforward
(self, x, feat_cache=None, feat_idx=[0])
skyreels_v2_infer/modules/vae.py:88
Methodforward
(self, x, feat_cache=None, feat_idx=[0])
skyreels_v2_infer/modules/vae.py:181
Methodforward
(self, x)
skyreels_v2_infer/modules/vae.py:217
Methodforward
(self, x, feat_cache=None, feat_idx=[0])
skyreels_v2_infer/modules/vae.py:292
Methodforward
(self, x, feat_cache=None, feat_idx=[0])
skyreels_v2_infer/modules/vae.py:390
Methodforward
r""" Args: x(Tensor): Shape [B, L, C]
skyreels_v2_infer/modules/transformer.py:93
Methodforward
r""" Args: x(Tensor): Shape [B, L, C]
skyreels_v2_infer/modules/transformer.py:108
Methodforward
r""" Args: x(Tensor): Shape [B, L, num_heads, C / num_heads] seq_lens(Tensor): Shape [B] grid_sizes(Tensor
skyreels_v2_infer/modules/transformer.py:140
Methodforward
r""" Args: x(Tensor): Shape [B, L1, C] context(Tensor): Shape [B, L2, C] context_lens(Tensor): Shape [B]
skyreels_v2_infer/modules/transformer.py:187
Methodforward
r""" Args: x(Tensor): Shape [B, L1, C] context(Tensor): Shape [B, L2, C] context_lens(Tensor): Shape [B]
skyreels_v2_infer/modules/transformer.py:219
Methodforward
r""" Args: x(Tensor): Shape [B, L, C] e(Tensor): Shape [B, 6, C] seq_lens(Tensor): Shape [B], length of ea
skyreels_v2_infer/modules/transformer.py:301
Methodforward
(self, image_embeds)
skyreels_v2_infer/modules/transformer.py:394
Methodforward
r""" Forward pass through the diffusion model Args: x (List[Tensor]): List of input video tensors, each w
skyreels_v2_infer/modules/transformer.py:622
Methodforward
x: [B, L, C].
skyreels_v2_infer/modules/xlm_roberta.py:26
Methodforward
(self, x, mask)
skyreels_v2_infer/modules/xlm_roberta.py:62
Methodforward
ids: [B, L] of torch.LongTensor.
skyreels_v2_infer/modules/xlm_roberta.py:115
Functionfusion_caption
(structural_caption, task)
skycaptioner_v1/scripts/gradio_fusion_caption.py:89
Functiongenerate_caption
(video_path)
skycaptioner_v1/scripts/gradio_struct_caption.py:41
Methodinit_weight
(self, conv)
skyreels_v2_infer/modules/vae.py:139
Methodinit_weight2
(self, conv)
skyreels_v2_infer/modules/vae.py:151
Functioninit_weights
(m)
skyreels_v2_infer/modules/t5.py:28
Functionmul_add
(x, y, z)
skyreels_v2_infer/modules/transformer.py:254
Functionmul_add_add
(x, y, z)
skyreels_v2_infer/modules/transformer.py:258
Methodparam_groups
(self)
skyreels_v2_infer/modules/clip.py:409
Methodqkv_fn
(x)
skyreels_v2_infer/modules/transformer.py:151
Methodsample
(self, imgs, deterministic=False)
skyreels_v2_infer/modules/vae.py:527
Methodscale_model_input
Ensures interchangeability with schedulers that need to scale the denoising model input depending on the current timestep. A
skyreels_v2_infer/scheduler/fm_solvers_unipc.py:708
Methodset_ar_attention
(self)
skyreels_v2_infer/modules/transformer.py:137
Methodset_ar_attention
(self)
skyreels_v2_infer/modules/transformer.py:298
Methodset_begin_index
Sets the begin index for the scheduler. This function should be run from pipeline before the inference. Args: begin_inde
skyreels_v2_infer/scheduler/fm_solvers_unipc.py:145
Methodstep_index
The index counter for current timestep. It will increase 1 after each scheduler step.
skyreels_v2_infer/scheduler/fm_solvers_unipc.py:131
Functionusp_attn_forward
r""" Args: x(Tensor): Shape [B, L, num_heads, C / num_heads] seq_lens(Tensor): Shape [B] grid_sizes(Tensor): Shape [B, 3],
skyreels_v2_infer/distributed/xdit_context_parallel.py:233
Functionusp_dit_forward
x: A list of videos each with shape [C, T, H, W]. t: [B]. context: A list of text embeddings each with s
skyreels_v2_infer/distributed/xdit_context_parallel.py:74
Functionworker_init_fn
(worker_id)
skycaptioner_v1/scripts/vllm_struct_caption.py:103
Functionxlm_roberta_large
XLMRobertaLarge adapted from Huggingface.
skyreels_v2_infer/modules/xlm_roberta.py:143
Methodzero_init_i2v_cross_attn
(self)
skyreels_v2_infer/modules/transformer.py:534
← previous101–197 of 197, ranked by callers