MCPcopy Create free account

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

Functions197 in github.com/SkyworkAI/SkyReels-V2

↓ 106 callersMethodto
(self, *args, **kwargs)
skyreels_v2_infer/modules/vae.py:631
↓ 12 callersMethodencode
videos: A list of videos each with shape [C, T, H, W].
skyreels_v2_infer/modules/vae.py:625
↓ 9 callersMethod__init__
( self, vocab_size, dim, dim_attn, dim_ffn, num_heads,
skyreels_v2_infer/modules/t5.py:317
↓ 8 callersMethod__init__
(self, vae_pth="cache/vae_step_411000.pth", z_dim=16)
skyreels_v2_infer/modules/vae.py:572
↓ 8 callersMethod_sigma_to_alpha_sigma_t
(self, sigma)
skyreels_v2_infer/scheduler/fm_solvers_unipc.py:254
↓ 7 callersMethod__init__
(self, dim, mid_dim)
skyreels_v2_infer/modules/clip.py:92
↓ 7 callersMethod__init__
(self, dim, out_dim, patch_size, eps=1e-6)
skyreels_v2_infer/modules/transformer.py:348
↓ 7 callersFunctionflash_attention
q: [B, Lq, Nq, C1]. k: [B, Lk, Nk, C1]. v: [B, Lk, Nk, C2]. Nq must be divisible by Nk. q_lens
skyreels_v2_infer/modules/attention.py:26
↓ 7 callersMethodset_timesteps
Sets the discrete timesteps used for the diffusion chain (to be run before inference). Args: num_inference_steps (`int`):
skyreels_v2_infer/scheduler/fm_solvers_unipc.py:156
↓ 6 callersMethodstep
Predict the sample from the previous timestep by reversing the SDE. This function propagates the sample with the multistep UniPC.
skyreels_v2_infer/scheduler/fm_solvers_unipc.py:624
↓ 5 callersMethoddecode
(self, z)
skyreels_v2_infer/modules/vae.py:638
↓ 5 callersFunctionfp16_clamp
(x)
skyreels_v2_infer/modules/t5.py:21
↓ 4 callersMethodclear_cache
(self)
skyreels_v2_infer/modules/vae.py:534
↓ 4 callersFunctionrope_apply
(x, grid_sizes, freqs)
skyreels_v2_infer/modules/transformer.py:49
↓ 4 callersFunctionrope_apply
x: [B, L, N, C]. grid_sizes: [B, 3]. freqs: [M, C // 2].
skyreels_v2_infer/distributed/xdit_context_parallel.py:22
↓ 3 callersFunctionbasic_clean
(text)
skyreels_v2_infer/modules/tokenizers.py:12
↓ 3 callersMethodgenerate_timestep_matrix
( self, num_frames, step_template, base_num_frames, ar_step=5,
skyreels_v2_infer/pipelines/diffusion_forcing_pipeline.py:111
↓ 3 callersFunctionget_text_encoder
(model_path, device="cuda", weight_dtype=torch.bfloat16)
skyreels_v2_infer/modules/__init__.py:50
↓ 3 callersFunctionget_transformer
(model_path, device="cuda", weight_dtype=torch.bfloat16)
skyreels_v2_infer/modules/__init__.py:30
↓ 3 callersFunctionget_vae
(model_path, device="cuda", weight_dtype=torch.float32)
skyreels_v2_infer/modules/__init__.py:21
↓ 3 callersFunctionhalf
(x)
skyreels_v2_infer/modules/attention.py:61
↓ 3 callersFunctionhalf
(x)
skyreels_v2_infer/distributed/xdit_context_parallel.py:245
↓ 3 callersMethodprepare_latents
( self, shape: Tuple[int], dtype: Optional[torch.dtype] = None, device: Option
skyreels_v2_infer/pipelines/diffusion_forcing_pipeline.py:102
↓ 3 callersFunctionresizecrop
(image: Image.Image, th, tw)
skyreels_v2_infer/pipelines/image2video_pipeline.py:20
↓ 3 callersFunctionrope_params
(max_seq_len, dim, theta=10000)
skyreels_v2_infer/modules/transformer.py:39
↓ 2 callersMethod__init__
( self, vocab_size=250002, max_seq_len=514, type_size=1, pad_id=1,
skyreels_v2_infer/modules/xlm_roberta.py:77
↓ 2 callersMethod_threshold_sample
"Dynamic thresholding: At each sampling step we set s to a certain percentile absolute pixel value in xt0 (the prediction of x_0 at t
skyreels_v2_infer/scheduler/fm_solvers_unipc.py:217
↓ 2 callersFunctionbroadcast_should_calc
(should_calc: bool)
skyreels_v2_infer/distributed/xdit_context_parallel.py:63
↓ 2 callersFunctioncount_conv3d
(model)
skyreels_v2_infer/modules/vae.py:436
↓ 2 callersFunctiondownload_model
(model_id)
skyreels_v2_infer/modules/__init__.py:13
↓ 2 callersMethodencode
(self, x, scale)
skyreels_v2_infer/modules/vae.py:478
↓ 2 callersMethodencode_image
( self, image: PipelineImageInput, height: int, width: int, num_frames: int )
skyreels_v2_infer/pipelines/diffusion_forcing_pipeline.py:83
↓ 2 callersMethodforward
(self, x)
skyreels_v2_infer/modules/clip.py:102
↓ 2 callersMethodforward
(self, x)
skyreels_v2_infer/modules/vae.py:472
↓ 2 callersMethodindex_for_timestep
(self, timestep, schedule_timesteps=None)
skyreels_v2_infer/scheduler/fm_solvers_unipc.py:597
↓ 2 callersMethodinitialize_teacache
(self, enable_teacache=True, num_steps=25, teacache_thresh=0.15, use_ret_steps=False, ckpt_dir='')
skyreels_v2_infer/modules/transformer.py:578
↓ 2 callersFunctionqkv_fn
(x)
skyreels_v2_infer/distributed/xdit_context_parallel.py:249
↓ 2 callersMethodset_ar_attention
(self, causal_block_size)
skyreels_v2_infer/modules/transformer.py:801
↓ 2 callersFunctionsinusoidal_embedding_1d
(dim, position)
skyreels_v2_infer/modules/transformer.py:26
↓ 2 callersMethodunpatchify
r""" Reconstruct video tensors from patch embeddings. Args: x (List[Tensor]): List of patchified features
skyreels_v2_infer/modules/transformer.py:777
↓ 2 callersFunctionwhitespace_clean
(text)
skyreels_v2_infer/modules/tokenizers.py:18
↓ 1 callersMethod_clean
(self, text)
skyreels_v2_infer/modules/tokenizers.py:71
↓ 1 callersFunction_clip
( pretrained=False, pretrained_name=None, model_cls=XLMRobertaCLIP, return_transforms=False,
skyreels_v2_infer/modules/clip.py:420
↓ 1 callersMethod_init_step_index
Initialize the step_index counter for the scheduler.
skyreels_v2_infer/scheduler/fm_solvers_unipc.py:612
↓ 1 callersMethod_relative_position_bucket
(self, rel_pos)
skyreels_v2_infer/modules/t5.py:209
↓ 1 callersFunction_t5
( name, encoder_only=False, decoder_only=False, return_tokenizer=False, tokenizer_kwargs={
skyreels_v2_infer/modules/t5.py:360
↓ 1 callersFunction_video_vae
Autoencoder3d adapted from Stable Diffusion 1.x, 2.x and XL.
skyreels_v2_infer/modules/vae.py:544
↓ 1 callersFunctioncanonicalize
(text, keep_punctuation_exact_string=None)
skyreels_v2_infer/modules/tokenizers.py:24
↓ 1 callersMethodclean_struct_caption
(self, struct_caption, task)
skycaptioner_v1/scripts/vllm_fusion_caption.py:114
↓ 1 callersFunctionclip_xlm_roberta_vit_h_14
(pretrained=False, pretrained_name="open-clip-xlm-roberta-large-vit-huge-14", **kwargs)
skyreels_v2_infer/modules/clip.py:460
↓ 1 callersMethodconvert_model_output
r""" Convert the model output to the corresponding type the UniPC algorithm needs. Args: model_output (`torch.Tensor`):
skyreels_v2_infer/scheduler/fm_solvers_unipc.py:261
↓ 1 callersMethoddecode
(self, z, scale)
skyreels_v2_infer/modules/vae.py:503
↓ 1 callersMethodencode_video
(self, video)
skyreels_v2_infer/modules/clip.py:507
↓ 1 callersMethodextend_video
( self, prompt: Union[str, List[str]], negative_prompt: Union[str, List[str]] = "",
skyreels_v2_infer/pipelines/diffusion_forcing_pipeline.py:212
↓ 1 callersFunctionfast_rms_norm
(x, weight, eps)
skyreels_v2_infer/modules/transformer.py:79
↓ 1 callersMethodforward
r""" Args: x(Tensor): Shape [B, L1, C] e(Tensor): Shape [B, C]
skyreels_v2_infer/modules/transformer.py:363
↓ 1 callersFunctionget_image_encoder
(model_path, device="cuda", weight_dtype=torch.bfloat16)
skyreels_v2_infer/modules/__init__.py:61
↓ 1 callersMethodget_index
(self, video_size, num_frames, st=0)
skycaptioner_v1/scripts/vllm_struct_caption.py:73
↓ 1 callersMethodget_video_as_tensor
Loads a video from the given path and returns it as a tensor with proper channel ordering. Args: video_path (str): Path t
skyreels_v2_infer/pipelines/diffusion_forcing_pipeline.py:187
↓ 1 callersFunctionget_video_num_frames_moviepy
(video_path)
generate_video_df.py:18
↓ 1 callersMethodinit_weights
r""" Initialize model parameters using Xavier initialization.
skyreels_v2_infer/modules/transformer.py:807
↓ 1 callersFunctionmain
()
skycaptioner_v1/scripts/vllm_struct_caption.py:110
↓ 1 callersFunctionmain
()
skycaptioner_v1/scripts/gradio_struct_caption.py:34
↓ 1 callersFunctionmain
()
skycaptioner_v1/scripts/gradio_fusion_caption.py:86
↓ 1 callersMethodmultistep_uni_c_bh_update
One step for the UniC (B(h) version). Args: this_model_output (`torch.Tensor`): The model outputs at `x_
skyreels_v2_infer/scheduler/fm_solvers_unipc.py:460
↓ 1 callersMethodmultistep_uni_p_bh_update
One step for the UniP (B(h) version). Alternatively, `self.solver_p` is used if is specified. Args: model_output (`torch
skyreels_v2_infer/scheduler/fm_solvers_unipc.py:331
↓ 1 callersFunctionpad_freqs
(original_tensor, target_len)
skyreels_v2_infer/distributed/xdit_context_parallel.py:13
↓ 1 callersFunctionpos_interpolate
(pos, seq_len)
skyreels_v2_infer/modules/clip.py:23
↓ 1 callersMethodreparameterize
(self, mu, log_var)
skyreels_v2_infer/modules/vae.py:522
↓ 1 callersFunctionresult_writer
(indices_list: list, result_list: list, meta: pd.DataFrame, column)
skycaptioner_v1/scripts/vllm_struct_caption.py:85
↓ 1 callersFunctionresult_writer
(indices_list: list, result_list: list, meta: pd.DataFrame, column)
skycaptioner_v1/scripts/utils.py:4
↓ 1 callersMethodtime_shift
(self, mu: float, sigma: float, t: torch.Tensor)
skyreels_v2_infer/scheduler/fm_solvers_unipc.py:258
↓ 1 callersFunctionumt5_xxl
(**kwargs)
skyreels_v2_infer/modules/t5.py:404
Method__call__
(self, sequence, **kwargs)
skyreels_v2_infer/modules/tokenizers.py:49
Method__call__
( self, image: PipelineImageInput, prompt: Union[str, List[str]] = None, negat
skyreels_v2_infer/pipelines/image2video_pipeline.py:67
Method__call__
( self, prompt: Union[str, List[str]] = None, negative_prompt: Union[str, List[str]] =
skyreels_v2_infer/pipelines/text2video_pipeline.py:45
Method__call__
( self, prompt: Union[str, List[str]], negative_prompt: Union[str, List[str]] = "",
skyreels_v2_infer/pipelines/diffusion_forcing_pipeline.py:380
Method__call__
(self, prompt)
skyreels_v2_infer/pipelines/prompt_enhancer.py:34
Method__call__
(self, video_path)
skycaptioner_v1/scripts/gradio_struct_caption.py:19
Method__call__
(self, structural_caption, task='t2v')
skycaptioner_v1/scripts/gradio_fusion_caption.py:63
Method__getitem__
(self, index)
skycaptioner_v1/scripts/vllm_struct_caption.py:28
Method__getitem__
(self, index)
skycaptioner_v1/scripts/vllm_fusion_caption.py:83
Method__init__
( self, num_train_timesteps: int = 1000, solver_order: int = 2, prediction_typ
skyreels_v2_infer/scheduler/fm_solvers_unipc.py:77
Method__init__
(self, name, seq_len=None, clean=None, **kwargs)
skyreels_v2_infer/modules/tokenizers.py:39
Method__init__
(self, dim, num_heads, causal=False, attn_dropout=0.0, proj_dropout=0.0)
skyreels_v2_infer/modules/clip.py:57
Method__init__
( self, dim, mlp_ratio, num_heads, post_norm=False, causal=Fal
skyreels_v2_infer/modules/clip.py:109
Method__init__
(self, dim, mlp_ratio, num_heads, activation="gelu", proj_dropout=0.0, norm_eps=1e-5)
skyreels_v2_infer/modules/clip.py:155
Method__init__
( self, image_size=224, patch_size=16, dim=768, mlp_ratio=4, o
skyreels_v2_infer/modules/clip.py:203
Method__init__
(self, **kwargs)
skyreels_v2_infer/modules/clip.py:293
Method__init__
( self, embed_dim=1024, image_size=224, patch_size=14, vision_dim=1280
skyreels_v2_infer/modules/clip.py:317
Method__init__
(self, checkpoint_path, tokenizer_path)
skyreels_v2_infer/modules/clip.py:489
Method__init__
(self, dim, eps=1e-6)
skyreels_v2_infer/modules/t5.py:52
Method__init__
(self, dim, dim_attn, num_heads, dropout=0.1)
skyreels_v2_infer/modules/t5.py:66
Method__init__
(self, dim, dim_ffn, dropout=0.1)
skyreels_v2_infer/modules/t5.py:118
Method__init__
(self, dim, dim_attn, dim_ffn, num_heads, num_buckets, shared_pos=True, dropout=0.1)
skyreels_v2_infer/modules/t5.py:138
Method__init__
(self, dim, dim_attn, dim_ffn, num_heads, num_buckets, shared_pos=True, dropout=0.1)
skyreels_v2_infer/modules/t5.py:162
Method__init__
(self, num_buckets, num_heads, bidirectional, max_dist=128)
skyreels_v2_infer/modules/t5.py:189
Method__init__
(self, vocab, dim, dim_attn, dim_ffn, num_heads, num_layers, num_buckets, shared_pos=True, dropout=0.1)
skyreels_v2_infer/modules/t5.py:234
Method__init__
(self, vocab, dim, dim_attn, dim_ffn, num_heads, num_layers, num_buckets, shared_pos=True, dropout=0.1)
skyreels_v2_infer/modules/t5.py:271
Method__init__
( self, checkpoint_path=None, tokenizer_path=None, text_len=512, shard
skyreels_v2_infer/modules/t5.py:422
next →1–100 of 197, ranked by callers