MCPcopy Create free account

hub / github.com/KlingAIResearch/SynCamMaster / functions

Functions1,885 in github.com/KlingAIResearch/SynCamMaster

↓ 2 callersMethodclear_cache
(self)
diffsynth/models/cog_vae.py:175
↓ 2 callersMethodclear_cache
(self)
diffsynth/models/wan_video_vae.py:589
↓ 2 callersMethodconvert_state_dict
(self, state_dict, lora_prefix="lora_unet_", alpha=1.0)
diffsynth/models/lora.py:23
↓ 2 callersFunctionconvert_weights_to_lp
Convert applicable model parameters to low-precision (bf16 or fp16)
diffsynth/extensions/ImageQualityMetric/open_clip/model.py:308
↓ 2 callersFunctioncount_conv3d
(model)
diffsynth/models/wan_video_vae.py:484
↓ 2 callersFunctioncreate_model
( model_name: str, pretrained: Optional[str] = None, precision: str = 'fp32',
diffsynth/extensions/ImageQualityMetric/open_clip/factory.py:108
↓ 2 callersFunctioncreate_model_and_transforms
( model_name: str, pretrained: Optional[str] = None, precision: str = 'fp32',
diffsynth/extensions/ImageQualityMetric/open_clip/factory.py:309
↓ 2 callersMethodcrop_and_resize
(self, image)
train_syncammaster.py:42
↓ 2 callersMethodcropped_pos_embed
Crops positional embeddings for SD3 compatibility.
diffsynth/models/omnigen.py:426
↓ 2 callersMethoddecode_images
(self, images)
diffsynth/extensions/RIFE/__init__.py:144
↓ 2 callersMethoddecode_images
(self, images)
diffsynth/processors/RIFE.py:38
↓ 2 callersMethoddecode_small_video
(self, sample)
diffsynth/models/cog_vae.py:254
↓ 2 callersMethoddecode_video
(self, latents, tiled=False, tile_size=64, tile_stride=32)
diffsynth/pipelines/sdxl_video.py:78
↓ 2 callersMethoddecode_video
(self, latents, tiled=True, tile_size=(34, 34), tile_stride=(18, 16))
diffsynth/pipelines/wan_video_syncammaster.py:189
↓ 2 callersMethoddist_loss
(self, teacher_logits, student_logits)
diffsynth/extensions/ImageQualityMetric/open_clip/loss.py:236
↓ 2 callersFunctiondownload_pretrained_from_url
( url: str, cache_dir: Union[str, None] = None, )
diffsynth/extensions/ImageQualityMetric/open_clip/pretrained.py:283
↓ 2 callersMethodenable_auto_offload
(self, dtype=torch.bfloat16, device="cuda")
diffsynth/models/hunyuan_video_dit.py:664
↓ 2 callersMethodencode_image
(self, image, tiled=False, tile_size=64, tile_stride=32)
diffsynth/pipelines/flux_image.py:176
↓ 2 callersMethodencode_image
(self, image, tiled=False, tile_size=64, tile_stride=32)
diffsynth/pipelines/omnigen_image.py:157
↓ 2 callersMethodencode_prompt
(self, prompt, positive=True)
diffsynth/pipelines/step_video.py:135
↓ 2 callersMethodencode_prompt
(self, prompt, positive=True)
diffsynth/pipelines/wan_video_syncammaster.py:150
↓ 2 callersMethodencode_prompt
(self, prompt, positive=True, clip_sequence_length=77, llm_sequence_length=256, input_images=None)
diffsynth/pipelines/hunyuan_video.py:105
↓ 2 callersMethodencode_prompt
(self, prompt, positive=True)
diffsynth/pipelines/cog_video.py:52
↓ 2 callersMethodencode_prompt
(self, prompt, positive=True)
diffsynth/pipelines/wan_video.py:150
↓ 2 callersMethodencode_prompt
(self, prompt, clip_skip=1, device="cuda", positive=True)
diffsynth/prompters/sd_prompter.py:63
↓ 2 callersMethodencode_prompt_using_clip
(self, prompt, text_encoder, tokenizer, max_length, device)
diffsynth/prompters/sd3_prompter.py:39
↓ 2 callersMethodencode_prompt_using_signle_model
(self, prompt, text_encoder, tokenizer, max_length, clip_skip, device)
diffsynth/prompters/hunyuan_dit_prompter.py:34
↓ 2 callersMethodencode_small_video
(self, sample)
diffsynth/models/cog_vae.py:339
↓ 2 callersMethodencode_video
(self, processed_images, tiled=False, tile_size=64, tile_stride=32)
diffsynth/pipelines/sdxl_video.py:86
↓ 2 callersMethodencode_video
(self, frames, tile_size=(17, 30, 30), tile_stride=(12, 20, 20))
diffsynth/pipelines/hunyuan_video.py:125
↓ 2 callersMethodencode_video_with_vae
(self, video)
diffsynth/pipelines/svd_video.py:60
↓ 2 callersMethodevict_previous_layer
Moves the previous layer cache to the CPU
diffsynth/pipelines/omnigen_image.py:38
↓ 2 callersMethodextract_number_from_filenames
(self, file_names)
diffsynth/extensions/FastBlend/api.py:113
↓ 2 callersFunctionextract_weight_to_half
(weight: torch.Tensor, scale_list: torch.Tensor, source_bit_width: int)
diffsynth/models/kolors_text_encoder.py:122
↓ 2 callersMethodforward
diffsynth/models/omnigen.py:489
↓ 2 callersMethodforward
imgs: [B, 3, H, W] of torch.float32. - mean: [0.48145466, 0.4578275, 0.40821073] - std: [0.26862954, 0.2613025
diffsynth/models/wan_video_image_encoder.py:571
↓ 2 callersMethodforward
( self, input_ids=None, attention_mask=None, )
diffsynth/models/stepvideo_text_encoder.py:508
↓ 2 callersMethodforward
(self, x)
diffsynth/models/wan_video_vae.py:67
↓ 2 callersFunctionfp16_clamp
(x)
diffsynth/models/wan_video_text_encoder.py:8
↓ 2 callersMethodfrom_civitai
(self, state_dict)
diffsynth/models/sd3_dit.py:472
↓ 2 callersMethodfrom_diffusers
(self, state_dict)
diffsynth/models/sd3_dit.py:408
↓ 2 callersMethodfrom_diffusers
(self, state_dict)
diffsynth/models/cog_dit.py:347
↓ 2 callersMethodfrom_model_manager
(model_manager: ModelManager, controlnet_config_units: List[ControlNetConfigUnit]=[], prompt_refiner_classes=[
diffsynth/pipelines/sd_video.py:116
↓ 2 callersFunctiongate
(x, gate)
diffsynth/models/stepvideo_dit.py:615
↓ 2 callersMethodget_1d_rotary_pos_embed
(self, dim: int, pos, theta: float = 10000.0, use_real=False)
diffsynth/pipelines/hunyuan_image.py:97
↓ 2 callersFunctionget_1d_sincos_pos_embed_from_grid
embed_dim: output dimension for each position pos: a list of positions to be encoded: size (M,) out: (M, D)
diffsynth/models/omnigen.py:286
↓ 2 callersFunctionget_activation
Helper function to get activation function from string. Args: act_fn (str): Name of activation function. Returns: nn.Module:
diffsynth/models/stepvideo_dit.py:86
↓ 2 callersMethodget_block_name
(self, names)
diffsynth/models/svd_unet.py:423
↓ 2 callersFunctionget_cast_dtype
(precision: str)
diffsynth/extensions/ImageQualityMetric/open_clip/model.py:66
↓ 2 callersMethodget_cast_dtype
(self)
diffsynth/extensions/ImageQualityMetric/open_clip/transformer.py:310
↓ 2 callersMethodget_cos_sin
(self, D, seq_len, device, dtype)
diffsynth/models/stepvideo_dit.py:373
↓ 2 callersMethodget_error
(self, source_guide, target_guide, source_style, target_style, nnf)
diffsynth/extensions/FastBlend/patch_match.py:76
↓ 2 callersMethodget_extended_attention_mask
Makes broadcastable attention and causal masks so that future and masked tokens are ignored. Arguments: attention_mask (
diffsynth/extensions/ImageQualityMetric/BLIP/med.py:601
↓ 2 callersMethodget_ground_truth
(self, device, num_logits)
diffsynth/extensions/ImageQualityMetric/open_clip/loss.py:90
↓ 2 callersMethodget_name_dict
(self, lora_state_dict)
diffsynth/models/lora.py:205
↓ 2 callersFunctionget_pairs
Return set of symbol pairs in a word. Word is represented as tuple of symbols (symbols being variable-length strings).
diffsynth/extensions/ImageQualityMetric/open_clip/tokenizer.py:51
↓ 2 callersMethodget_patch_error
(self, source, nnf, target)
diffsynth/extensions/FastBlend/patch_match.py:53
↓ 2 callersFunctionget_pretrained_cfg
(model: str, tag: str)
diffsynth/extensions/ImageQualityMetric/open_clip/pretrained.py:271
↓ 2 callersFunctionget_pretrained_url
(model: str, tag: str)
diffsynth/extensions/ImageQualityMetric/open_clip/pretrained.py:278
↓ 2 callersFunctionget_timestep_embedding
This matches the implementation in Denoising Diffusion Probabilistic Models: Create sinusoidal timestep embeddings. :param timesteps: a 1-D
diffsynth/models/svd_unet.py:40
↓ 2 callersFunctionhas_hf_hub
(necessary=False)
diffsynth/extensions/ImageQualityMetric/open_clip/pretrained.py:329
↓ 2 callersFunctioninteract_with_ipadapter
(hidden_states, q, ip_k, ip_v, scale=1.0)
diffsynth/models/flux_dit.py:7
↓ 2 callersFunctioninterpolate_pos_embed
(pos_embed_checkpoint, visual_encoder)
diffsynth/extensions/ImageQualityMetric/BLIP/vit.py:277
↓ 2 callersFunctionlets_dance_with_long_video
( unet: SDUNet, motion_modules: SDMotionModel = None, controlnet: MultiControlNetManager = None,
diffsynth/pipelines/sd_video.py:14
↓ 2 callersFunctionload_checkpoint
(model, checkpoint_path, strict=True)
diffsynth/extensions/ImageQualityMetric/open_clip/factory.py:98
↓ 2 callersFunctionload_model_from_huggingface_folder
(file_path, model_names, model_classes, torch_dtype, device)
diffsynth/models/model_manager.py:82
↓ 2 callersFunctionload_patch_model_from_single_file
(state_dict, model_names, model_classes, extra_kwargs, model_manager, torch_dtype, device)
diffsynth/models/model_manager.py:112
↓ 2 callersMethodload_video
(self, video_file, image_folder, height, width, start_frame_id, end_frame_id)
diffsynth/pipelines/pipeline_runner.py:53
↓ 2 callersMethodmatch_filenames
(self, file_names_a, file_names_b)
diffsynth/extensions/FastBlend/api.py:143
↓ 2 callersMethodmix
(self, x, smooth_scale = 0.6)
diffsynth/models/stepvideo_vae.py:1014
↓ 2 callersFunctionmodel_fn_wan_video
( dit: WanModel, x: torch.Tensor, timestep: torch.Tensor, cam_emb: torch.Tensor, context:
diffsynth/pipelines/wan_video_syncammaster.py:350
↓ 2 callersFunctionmodel_fn_wan_video
( dit: WanModel, x: torch.Tensor, timestep: torch.Tensor, context: torch.Tensor, clip_feat
diffsynth/pipelines/wan_video.py:341
↓ 2 callersFunctionmodulate
(x, scale, shift)
diffsynth/models/stepvideo_dit.py:610
↓ 2 callersFunctionpatch_device
(module)
diffsynth/extensions/ImageQualityMetric/open_clip/openai.py:97
↓ 2 callersFunctionpatch_float
(module)
diffsynth/extensions/ImageQualityMetric/open_clip/openai.py:121
↓ 2 callersMethodpatchify
(self, hidden_states)
diffsynth/models/flux_controlnet.py:46
↓ 2 callersMethodprepare_controlnet_input
(self, controlnet_image, controlnet_inpaint_mask, tiler_kwargs)
diffsynth/pipelines/flux_image.py:218
↓ 2 callersMethodprepare_rotary_positional_embeddings
( self, height: int, width: int, num_frames: int, device: torch.device
diffsynth/models/cog_dit.py:202
↓ 2 callersMethodprocess
(self)
diffsynth/prompters/omost.py:198
↓ 2 callersMethodprocess_entity_masks
(self, hidden_states, prompt_emb, entity_prompt_emb, entity_masks, text_ids, image_ids)
diffsynth/models/flux_dit.py:376
↓ 2 callersMethodprocess_ff
(self, hidden_states, attn_output, mod, mod_tr=None, tr_token=None)
diffsynth/models/hunyuan_video_dit.py:444
↓ 2 callersMethodprocess_images
(self, images)
diffsynth/extensions/RIFE/__init__.py:139
↓ 2 callersMethodprocess_images
(self, images)
diffsynth/processors/RIFE.py:33
↓ 2 callersMethodprocess_qkv
(self, hidden_states, to_qkv, norm_q, norm_k)
diffsynth/models/sd3_dit.py:122
↓ 2 callersMethodprocess_response
(self, output, history)
diffsynth/models/kolors_text_encoder.py:1257
↓ 2 callersMethodprocess_tensors
(self, input_tensor, scale=1.0, batch_size=4)
diffsynth/extensions/RIFE/__init__.py:208
↓ 2 callersMethodprocess_tensors
(self, input_tensor, scale=1.0, batch_size=4)
diffsynth/processors/RIFE.py:43
↓ 2 callersFunctionquantize
Replace fp16 linear with quantized linear
diffsynth/models/kolors_text_encoder.py:187
↓ 2 callersMethodraw_data
(self)
diffsynth/extensions/FastBlend/data.py:110
↓ 2 callersFunctionreshape_for_broadcast
( freqs_cis, x: torch.Tensor, head_first=False, )
diffsynth/models/hunyuan_video_dit.py:301
↓ 2 callersFunctionresize_pos_embed
(state_dict, model, interpolation: str = 'bicubic', antialias: bool = True)
diffsynth/extensions/ImageQualityMetric/open_clip/model.py:430
↓ 2 callersFunctionrope_apply
(x, freqs, num_heads)
diffsynth/models/wan_video_dit.py:90
↓ 2 callersFunctionrotate_half
(x)
diffsynth/models/hunyuan_video_dit.py:347
↓ 2 callersMethodrotate_half
(self, x)
diffsynth/models/hunyuan_dit.py:21
↓ 2 callersMethodsave_pretrained
(self, dest)
diffsynth/extensions/ImageQualityMetric/open_clip/tokenizer.py:195
↓ 2 callersFunctionsave_video
(frames, save_path, fps, quality=9, ffmpeg_params=None)
diffsynth/data/video.py:138
↓ 2 callersFunctionsave_video
(frames_path, video_path, num_frames, fps)
diffsynth/extensions/FastBlend/data.py:23
↓ 2 callersFunctionsearch_parameter
(param, state_dict)
diffsynth/models/utils.py:101
↓ 2 callersMethodset_grad_checkpointing
(self, enable=True)
diffsynth/extensions/ImageQualityMetric/open_clip/model.py:224
↓ 2 callersMethodset_length
(self, length)
diffsynth/extensions/FastBlend/data.py:116
← previousnext →201–300 of 1,885, ranked by callers