MCPcopy Create free account

hub / github.com/OpenImagingLab/FlashVSR / functions

Functions2,110 in github.com/OpenImagingLab/FlashVSR

Method__init__
( self, num_layers=28, padded_vocab_size=65024, hidden_size=4096, ffn_
diffsynth/models/kolors_text_encoder.py:229
Method__init__
(self, config: ChatGLMConfig)
diffsynth/models/kolors_text_encoder.py:326
Method__init__
(self, dim, original_impl=False, device=None, dtype=None)
diffsynth/models/kolors_text_encoder.py:380
Method__init__
(self, normalized_shape, eps=1e-5, device=None, dtype=None, **kwargs)
diffsynth/models/kolors_text_encoder.py:440
Method__init__
(self, config: ChatGLMConfig, layer_number)
diffsynth/models/kolors_text_encoder.py:454
Method__init__
(self, config: ChatGLMConfig, layer_number, device=None)
diffsynth/models/kolors_text_encoder.py:578
Method__init__
(self, config: ChatGLMConfig, layer_number, device=None)
diffsynth/models/kolors_text_encoder.py:770
Method__init__
(self, config: ChatGLMConfig, device=None)
diffsynth/models/kolors_text_encoder.py:840
Method__init__
(self, config: ChatGLMConfig, device=None)
diffsynth/models/kolors_text_encoder.py:966
Method__init__
(self, config: ChatGLMConfig, device=None, empty_init=True)
diffsynth/models/kolors_text_encoder.py:992
Method__init__
(self, config: ChatGLMConfig, empty_init=True, device=None)
diffsynth/models/kolors_text_encoder.py:1110
Method__init__
(self, config: ChatGLMConfig, empty_init=True, device=None)
diffsynth/models/kolors_text_encoder.py:1469
Method__init__
(self, config)
diffsynth/models/flux_text_encoder.py:8
Method__init__
(self)
diffsynth/models/flux_text_encoder.py:24
Method__init__
(self, freq_dim=256, dim=1536)
diffsynth/models/wan_video_motion_controller.py:8
Method__init__
(self)
diffsynth/models/wan_video_motion_controller.py:36
Method__init__
(self, dim, theta, axes_dim)
diffsynth/models/flux_dit.py:16
Method__init__
(self, dim_a, dim_b, num_heads, head_dim, only_out_a=False)
diffsynth/models/flux_dit.py:47
Method__init__
(self, dim, num_attention_heads)
diffsynth/models/flux_dit.py:110
Method__init__
(self, dim_a, dim_b, num_heads, head_dim)
diffsynth/models/flux_dit.py:154
Method__init__
(self, dim)
diffsynth/models/flux_dit.py:191
Method__init__
(self, dim, num_attention_heads)
diffsynth/models/flux_dit.py:207
Method__init__
(self, dim)
diffsynth/models/flux_dit.py:264
Method__init__
(self, *args, **kwargs)
diffsynth/models/flux_dit.py:512
Method__init__
(self, module)
diffsynth/models/flux_dit.py:520
Method__init__
(self)
diffsynth/models/flux_dit.py:560
Method__init__
( self, inference_mode="fast", batch_size=8, window_size=60, minimum_patch_size=5, thr
diffsynth/processors/FastBlend.py:11
Method__init__
(self)
diffsynth/processors/base.py:2
Method__init__
(self, rate=1.5)
diffsynth/processors/PILEditor.py:6
Method__init__
(self, rate=1.5)
diffsynth/processors/PILEditor.py:19
Method__init__
(self)
diffsynth/processors/sequencial_processor.py:5
Method__init__
(self, processors=[])
diffsynth/processors/sequencial_processor.py:27
Method__init__
(self, model, device="cuda", scale=1.0, batch_size=4, interpolate=True)
diffsynth/processors/RIFE.py:8
Method__init__
(self, *args, **kwargs)
examples/WanVSR/utils/utils.py:35
Method__init__
(self, ff, hh, ww)
examples/WanVSR/utils/utils.py:55
Method__init__
(self, in_dim, out_dim, layer_num=30)
examples/WanVSR/utils/utils.py:69
Method__init__
(self, in_dim, out_dim, layer_num=30)
examples/WanVSR/utils/utils.py:168
Method__init__
(self, C, kernel_size=3, bias=False)
examples/WanVSR/utils/TCDecoder.py:26
Method__init__
(self, n_in, n_out)
examples/WanVSR/utils/TCDecoder.py:42
Method__init__
(self, n_f, stride)
examples/WanVSR/utils/TCDecoder.py:64
Method__init__
(self, ff, hh, ww)
examples/WanVSR/utils/TCDecoder.py:74
Method__init__
Initialize TAEHV (decoder-only) with built-in deepening after every ReLU. Deepening config: how_many_each=1, k=3 (fixed as requested).
examples/WanVSR/utils/TCDecoder.py:172
Method__init__
(self, pretrained_path=None, channels = [256, 128, 64, 64])
examples/WanVSR/utils/TCDecoder.py:280
Method__len__
(self)
diffsynth/data/simple_text_image.py:40
Method__len__
(self)
diffsynth/data/video.py:11
Method__len__
(self)
diffsynth/data/video.py:55
Method__len__
(self)
diffsynth/extensions/FastBlend/data.py:36
Method__len__
(self)
diffsynth/extensions/FastBlend/data.py:86
Method__torch_function__
(self, func, types, args=(), kwargs=None)
diffsynth/models/stepvideo_text_encoder.py:34
Method_allocate_memory
(self, inference_max_sequence_len, batch_size, device=None, dtype=None)
diffsynth/models/kolors_text_encoder.py:607
Method_basic_init
(module)
diffsynth/models/omnigen.py:384
Function_convert_image_to_rgb
(image)
diffsynth/extensions/ImageQualityMetric/imagereward.py:12
Function_convert_to_rgb_or_rgba
(image)
diffsynth/extensions/ImageQualityMetric/open_clip/transform.py:52
Method_convert_token_to_id
Converts a token (str) in an id using the vocab.
diffsynth/prompters/kolors_prompter.py:153
Function_convert_weights
(l)
diffsynth/extensions/ImageQualityMetric/open_clip/model.py:311
Method_init_weights
(self, m)
diffsynth/extensions/ImageQualityMetric/BLIP/vit.py:163
Method_init_weights
Initialize the weights
diffsynth/extensions/ImageQualityMetric/BLIP/med.py:550
Method_init_weights
Initialize the weights.
diffsynth/models/kolors_text_encoder.py:931
Method_pad
Pad encoded inputs (on left/right and up to predefined length or max length in the batch) Args: encoded_inputs:
diffsynth/prompters/kolors_prompter.py:241
Method_prune_heads
Prunes heads of the model. heads_to_prune: dict of {layer_num: list of heads to prune in this layer} See base class PreTrainedModel
diffsynth/extensions/ImageQualityMetric/BLIP/med.py:592
Method_reorder_cache
(self, past, beam_idx)
diffsynth/extensions/ImageQualityMetric/BLIP/med.py:943
Method_reorder_cache
This function is used to re-order the `past_key_values` cache if [`~PreTrainedModel.beam_search`] or [`~PreTrainedModel.beam_sample`]
diffsynth/models/kolors_text_encoder.py:1239
Method_set_gradient_checkpointing
(self, module, value=False)
diffsynth/models/kolors_text_encoder.py:958
Method_tokenize
(self, text, **kwargs)
diffsynth/prompters/kolors_prompter.py:150
Method_tokenize
(caption)
diffsynth/extensions/ImageQualityMetric/mps.py:55
Method_unlock
(x)
diffsynth/extensions/ImageQualityMetric/open_clip/transformer.py:415
Functionadd_general_parsers
(parser)
diffsynth/trainers/text_to_image.py:119
Methodadd_local_description
(self, location: str, offset: str, area: str, distance_to_viewer: float, description: str,
diffsynth/prompters/omost.py:153
Methodadd_lora_to_model
(self, model, lora_rank=4, lora_alpha=4, lora_target_modules="to_q,to_k,to_v,to_out", init_lora_weights="gauss
diffsynth/trainers/text_to_image.py:37
Functionadd_model_config
add model config path or file and update registry
diffsynth/extensions/ImageQualityMetric/open_clip/factory.py:62
Methodadd_noise
(self, original_samples, noise, timestep)
diffsynth/schedulers/continuous_ode.py:41
Methodadd_noise
(self, original_samples, noise, timestep)
diffsynth/schedulers/flow_match.py:62
Methodalign_to_diffsynth_format
(state_dict)
diffsynth/models/lora.py:323
Methodalign_to_diffsynth_format
(state_dict, **kwargs)
diffsynth/models/lora.py:380
Methodalign_to_opensource_format
(state_dict, alpha=1.0)
diffsynth/models/lora.py:280
Methodalign_to_opensource_format
(state_dict, **kwargs)
diffsynth/models/lora.py:375
Methodapply_nnf_to_image
(self, nnf, image)
diffsynth/extensions/FastBlend/patch_match.py:276
Methodbackward
(ctx, grad_output: torch.Tensor)
diffsynth/models/kolors_text_encoder.py:92
Methodbezier_step
(self, nnf, r)
diffsynth/extensions/FastBlend/patch_match.py:145
Functionblock_causal_mask
(x, block_size)
diffsynth/models/wan_video_vae.py:19
Methodblock_forward
(self, x, **kwargs)
diffsynth/models/hunyuan_video_dit.py:719
Methodblock_tile_forward
(x)
diffsynth/models/sd_unet.py:175
Methodbroadcast
(tensors, dim=-1)
diffsynth/models/cog_dit.py:168
Methodbuild_inputs_with_special_tokens
Build model inputs from a sequence or a pair of sequence for sequence classification tasks by concatenating and adding special tokens
diffsynth/prompters/kolors_prompter.py:216
Methodbuild_layer
(layer_number)
diffsynth/models/kolors_text_encoder.py:850
Functionbuild_local_block_mask_shifted_vec
(block_h: int, block_w: int, win
diffsynth/models/wan_video_dit.py:39
Functionbuild_rename_dict
(source_state_dict, target_state_dict, split_qkv=False)
diffsynth/models/utils.py:113
Methodcast_bias_weight
(s, input=None, dtype=None, device=None, bias_dtype=None)
diffsynth/models/hunyuan_video_dit.py:685
Methodcast_bias_weight
(s, input=None, dtype=None, device=None, bias_dtype=None)
diffsynth/models/flux_controlnet.py:130
Methodcast_bias_weight
(s, input=None, dtype=None, device=None, bias_dtype=None)
diffsynth/models/flux_dit.py:497
Methodcast_to
(weight, dtype=None, device=None, copy=False)
diffsynth/models/hunyuan_video_dit.py:665
Methodcast_to
(weight, dtype=None, device=None, copy=False)
diffsynth/models/flux_controlnet.py:110
Methodcast_to
(weight, dtype=None, device=None, copy=False)
diffsynth/models/flux_dit.py:477
Methodcast_weight
(s, input=None, dtype=None, device=None)
diffsynth/models/hunyuan_video_dit.py:676
Methodcast_weight
(s, input=None, dtype=None, device=None)
diffsynth/models/flux_controlnet.py:121
Methodcast_weight
(s, input=None, dtype=None, device=None)
diffsynth/models/flux_dit.py:488
Methodchat
(self, tokenizer, query: str, history: List[Tuple[str, str]] = None, role: str = "user", max_leng
diffsynth/models/kolors_text_encoder.py:1279
Methodclean_mem
(self)
examples/WanVSR/utils/TCDecoder.py:296
Methodclear_cache
(self)
diffsynth/models/wan_video_vae.py:820
Methodclear_cross_kv
(self)
diffsynth/models/wan_video_dit.py:568
← previousnext →1,301–1,400 of 2,110, ranked by callers