MCPcopy Create free account

hub / github.com/KlingAIResearch/ReCamMaster / functions

Functions1,885 in github.com/KlingAIResearch/ReCamMaster

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_opensource_format
(state_dict, alpha=1.0)
diffsynth/models/lora.py:280
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_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:495
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:475
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:486
Methodchat
(self, tokenizer, query: str, history: List[Tuple[str, str]] = None, role: str = "user", max_leng
diffsynth/models/kolors_text_encoder.py:1279
Methodconfigure_optimizers
(self)
train_recammaster.py:370
Methodconfigure_optimizers
(self)
diffsynth/trainers/text_to_image.py:98
Methodconfigure_optimizers
(self)
diffsynth/extensions/ImageQualityMetric/aesthetic.py:48
Methodconvert_tokens_to_string
(self, tokens: List[str])
diffsynth/prompters/kolors_prompter.py:161
Methodcreate_custom_forward
(module)
diffsynth/extensions/ImageQualityMetric/BLIP/med.py:421
Methodcreate_custom_forward
(module)
diffsynth/models/sdxl_unet.py:114
Methodcreate_custom_forward
(module)
diffsynth/models/hunyuan_video_vae_decoder.py:335
Methodcreate_custom_forward
(module)
diffsynth/models/sd3_dit.py:360
Methodcreate_custom_forward
(module)
diffsynth/models/hunyuan_video_vae_encoder.py:133
Methodcreate_custom_forward
(module)
diffsynth/models/wan_video_dit.py:341
Methodcreate_custom_forward
(module)
diffsynth/models/svd_unet.py:392
Methodcreate_custom_forward
(module)
diffsynth/models/hunyuan_dit.py:363
Methodcreate_custom_forward
(module)
diffsynth/models/cog_dit.py:302
Methodcreate_custom_forward
(module)
diffsynth/models/flux_dit.py:440
Functioncreate_loss
(args)
diffsynth/extensions/ImageQualityMetric/open_clip/factory.py:244
Methodcustom_forward
(*inputs)
diffsynth/extensions/ImageQualityMetric/BLIP/med.py:422
Methodcustom_forward
(*inputs)
diffsynth/models/sdxl_unet.py:115
Methodcustom_forward
(*inputs)
diffsynth/models/hunyuan_video_vae_decoder.py:337
Methodcustom_forward
(*inputs)
diffsynth/models/sd3_dit.py:361
Methodcustom_forward
(*inputs)
diffsynth/models/hunyuan_video_vae_encoder.py:135
Methodcustom_forward
(*inputs)
diffsynth/models/wan_video_dit.py:342
Methodcustom_forward
(*inputs)
diffsynth/models/svd_unet.py:393
Methodcustom_forward
(*inputs)
diffsynth/models/hunyuan_dit.py:364
Methodcustom_forward
(*inputs)
diffsynth/models/cog_dit.py:303
Methodcustom_forward
(*inputs)
diffsynth/models/flux_dit.py:441
Methodcustomize_legend
(self, list_label)
vis_cam.py:41
Methoddecode
(self, hidden_states, device, tiled=False, tile_size=(34, 34), tile_stride=(16, 16), smooth_scale=0.6)
diffsynth/models/stepvideo_vae.py:1103
Methoddecode
(self, hidden_states, device, tiled=False, tile_size=(34, 34), tile_stride=(18, 16))
diffsynth/models/wan_video_vae.py:776
Methoddecode_original
(self, z)
diffsynth/models/stepvideo_vae.py:989
Methoddecode_video
(self, latents, tile_size=(17, 32, 32), tile_stride=(12, 24, 24))
diffsynth/models/hunyuan_video_vae_decoder.py:488
Methoddecode_video
(self, sample, tiled=True, tile_size=(60, 90), tile_stride=(30, 45), progress_bar=lambda x:x)
diffsynth/models/cog_vae.py:238
Methoddecode_video
( self, sample, batch_time=8, batch_height=128, batch_width=128, stride_time=4, stride
diffsynth/models/svd_vae_decoder.py:165
Functiondefault_bert
()
diffsynth/extensions/ImageQualityMetric/BLIP/blip.py:16
Functiondefault_init
(cls, *args, **kwargs)
diffsynth/models/kolors_text_encoder.py:307
Methoddenoising_model
(self)
diffsynth/pipelines/wan_video_recammaster.py:146
Methoddenoising_model
(self)
diffsynth/pipelines/flux_image.py:136
Methoddenoising_model
(self)
diffsynth/pipelines/sd3_image.py:26
Methoddenoising_model
(self)
diffsynth/pipelines/hunyuan_image.py:141
Methoddenoising_model
(self)
diffsynth/pipelines/omnigen_image.py:135
Methoddenoising_model
(self)
diffsynth/pipelines/sdxl_image.py:35
Methoddenoising_model
(self)
diffsynth/pipelines/wan_video.py:146
Functiondetect_frames
(frames_path, keyframes_path)
diffsynth/extensions/FastBlend/api.py:151
Methoddetokenize
(self, token_ids: List[int])
diffsynth/models/stepvideo_text_encoder.py:180
Functiondownload_customized_models
( model_id, origin_file_path, local_dir, downloading_priority: List[Preset_model_website] = ["
diffsynth/models/downloader.py:53
Functiondownload_from_huggingface
(model_id, origin_file_path, local_dir)
diffsynth/models/downloader.py:24
Functiondownload_from_modelscope
(model_id, origin_file_path, local_dir)
diffsynth/models/downloader.py:9
Functiondownload_preference_model
(model_name: preference_model_id, cache_dir="models")
diffsynth/extensions/ImageQualityMetric/__init__.py:136
Methodenable_auto_offload
(self, **kwargs)
diffsynth/models/hunyuan_video_text_encoder.py:12
Methodenable_auto_offload
(self, **kwargs)
diffsynth/models/hunyuan_video_text_encoder.py:58
Methodenable_block_wise_offload
(self, warm_device="cuda", cold_device="cpu")
diffsynth/models/hunyuan_video_dit.py:616
Methodenable_vram_management
(self, num_persistent_param_in_dit=None)
diffsynth/pipelines/wan_video_recammaster.py:38
Methodenable_vram_management
(self, num_persistent_param_in_dit=None)
diffsynth/pipelines/step_video.py:33
Methodenable_vram_management
(self, num_persistent_param_in_dit=None)
diffsynth/pipelines/flux_image.py:37
Methodenable_vram_management
(self, num_persistent_param_in_dit=None)
diffsynth/pipelines/wan_video.py:38
Methodencode
(self, x)
diffsynth/models/stepvideo_vae.py:973
Methodencode
(self, videos, device, tiled=False, tile_size=(34, 34), tile_stride=(18, 16))
diffsynth/models/wan_video_vae.py:758
Methodencode_image
(self, image, tiled=False, tile_size=64, tile_stride=32)
diffsynth/pipelines/hunyuan_image.py:166
Methodencode_image
(self, images, normalize=True)
diffsynth/extensions/ImageQualityMetric/open_clip/coca_model.py:142
Methodencode_image
(self, videos)
diffsynth/models/wan_video_image_encoder.py:864
Methodencode_prompt
(self, prompt, clip_skip=1, positive=True)
diffsynth/pipelines/omnigen_image.py:173
← previousnext →1,201–1,300 of 1,885, ranked by callers