MCPcopy Create free account

hub / github.com/AlayaLab/AlayaRenderer / functions

Functions1,613 in github.com/AlayaLab/AlayaRenderer

↓ 1 callersMethodon_epoch_end
(self, accelerator: Accelerator, model: torch.nn.Module, epoch_id)
game_editing/diffsynth/diffusion/logger.py:19
↓ 1 callersMethodon_step_end
(self, accelerator: Accelerator, model: torch.nn.Module, save_steps=None, **kwargs)
game_editing/diffsynth/diffusion/logger.py:13
↓ 1 callersMethodon_training_end
(self, accelerator: Accelerator, model: torch.nn.Module, save_steps=None)
game_editing/diffsynth/diffusion/logger.py:30
↓ 1 callersFunctionpad_freqs
(original_tensor, target_len)
game_editing/diffsynth/utils/xfuser/xdit_context_parallel.py:33
↓ 1 callersFunctionparse_args
()
game_editing/examples/wanvideo/model_inference/inference_gbuffer_caption.py:94
↓ 1 callersMethodparse_download_source
(self)
game_editing/diffsynth/core/loader/config.py:40
↓ 1 callersMethodparse_lora_encoder_inputs
(self, lora_encoder_inputs)
game_editing/diffsynth/pipelines/flux_image.py:856
↓ 1 callersMethodparse_lora_target_modules
(self, model, lora_target_modules)
game_editing/diffsynth/diffusion/training_module.py:181
↓ 1 callersFunctionparse_nccl_backend
(device_type)
game_editing/diffsynth/core/device/npu_compatible_device.py:97
↓ 1 callersMethodparse_original_file_pattern
(self)
game_editing/diffsynth/core/loader/config.py:32
↓ 1 callersMethodparse_path_or_model_id
(self, model_id_with_origin_path, default_value=None)
game_editing/diffsynth/diffusion/training_module.py:140
↓ 1 callersMethodparse_skip_download
(self)
game_editing/diffsynth/core/loader/config.py:49
↓ 1 callersFunctionpatch_tensor_constructor
(fn)
game_editing/diffsynth/models/flux_controlnet.py:32
↓ 1 callersFunctionpatchify
(x, patch_size)
game_editing/diffsynth/models/wan_video_vae.py:199
↓ 1 callersFunctionpatchify
Rearrange spatial dimensions into channels. Divides image into patch_size x patch_size blocks and moves pixels from each block into separate
game_editing/diffsynth/models/ltx2_video_vae.py:491
↓ 1 callersMethodpatchify
(self, x: torch.Tensor, control_camera_latents_input: Optional[torch.Tensor] = None)
game_editing/diffsynth/models/wan_video_dit.py:340
↓ 1 callersMethodpatchify_and_embed_omni
Patchify for omni mode: multiple images per batch item with noise masks.
game_editing/diffsynth/models/z_image_dit.py:852
↓ 1 callersMethodpatchify_controlnet
( self, all_image: List[torch.Tensor], patch_size: int = 2, f_patch_size: int
game_editing/diffsynth/models/z_image_dit.py:617
↓ 1 callersFunctionpos_interpolate
(pos, seq_len)
game_editing/diffsynth/models/wan_video_image_encoder.py:203
↓ 1 callersMethodprecompute_freqs_cis
(dim: List[int], end: List[int], theta: float = 256.0)
game_editing/diffsynth/models/z_image_dit.py:295
↓ 1 callersMethodprecompute_freqs_cis_3d
(self, grid_size)
game_editing/diffsynth/models/longcat_video_dit.py:83
↓ 1 callersMethodprepare_attention_mask
r""" Prepare the attention mask for the attention computation. Args: attention_mask (`torch.Tensor`): The
game_editing/diffsynth/models/flux2_vae.py:1088
↓ 1 callersMethodprepare_eligen
(self, pipe, prompt_emb_nega, eligen_entity_prompts, eligen_entity_masks, width, height, t5_sequence_length, e
game_editing/diffsynth/pipelines/flux_image.py:589
↓ 1 callersMethodprepare_eligen
(self, pipe, prompt_emb_nega, eligen_entity_prompts, eligen_entity_masks, width, height, enable_eligen_on_nega
game_editing/diffsynth/pipelines/qwen_image.py:458
↓ 1 callersMethodprepare_entity_inputs
(self, pipe, entity_prompts, entity_masks, width, height, t5_sequence_length=512)
game_editing/diffsynth/pipelines/flux_image.py:578
↓ 1 callersMethodprepare_entity_inputs
(self, pipe, entity_prompts, entity_masks, width, height)
game_editing/diffsynth/pipelines/qwen_image.py:448
↓ 1 callersMethodprepare_image_ids
(self, latents)
game_editing/diffsynth/models/flux_controlnet.py:82
↓ 1 callersMethodprepare_image_position_ids
(self, input_ids, generation_image_grid_thw, is_sampling_img, **model_kwargs)
game_editing/diffsynth/models/nexus_gen_ar_model.py:747
↓ 1 callersMethodprepare_infinite_you
(self, model, id_image, infinityou_guidance, device)
game_editing/diffsynth/pipelines/flux_image.py:831
↓ 1 callersMethodprepare_inputs_for_generation
( self, input_ids, past_key_values=None, attention_mask=None, inputs_e
game_editing/diffsynth/models/nexus_gen_ar_model.py:766
↓ 1 callersMethodprepare_latent_ids
(self, height, width)
game_editing/diffsynth/pipelines/flux2_image.py:541
↓ 1 callersMethodprepare_prefilled_image_embeds
(self, cur_image_tokens, num_img_tokens, is_sampling_img, **model_kwargs)
game_editing/diffsynth/models/nexus_gen_ar_model.py:725
↓ 1 callersMethodprepare_text_ids
( self, x: torch.Tensor, # (B, L, D) or (L, D) t_coord: Optional[torch.Tensor] = None
game_editing/diffsynth/pipelines/flux2_image.py:234
↓ 1 callersMethodprepare_text_ids
( self, x: torch.Tensor, # (B, L, D) or (L, D) t_coord: Optional[torch.Tensor] = None
game_editing/diffsynth/pipelines/flux2_image.py:367
↓ 1 callersMethodpreparing
(self)
game_editing/diffsynth/core/vram/layers.py:168
↓ 1 callersMethodpreparing
(self)
game_editing/diffsynth/core/vram/layers.py:386
↓ 1 callersMethodpreprocess
(self, controlnet_inputs: list[ControlNetInput], conditionings: list[torch.Tensor], **kwargs)
game_editing/diffsynth/pipelines/qwen_image.py:208
↓ 1 callersMethodpreprocess_masks
(self, pipe, masks, height, width, dim)
game_editing/diffsynth/pipelines/flux_image.py:570
↓ 1 callersMethodpreprocess_masks
(self, pipe, masks, height, width, dim)
game_editing/diffsynth/pipelines/qwen_image.py:440
↓ 1 callersMethodprocess
(self, pipe: WanVideoPipeline, inputs_shared, inputs_posi, inputs_nega)
game_editing/diffsynth/pipelines/wan_video.py:703
↓ 1 callersMethodprocess_attention
(self, hidden_states, image_rotary_emb, attn_mask=None, ipadapter_kwargs_list=None)
game_editing/diffsynth/models/flux_dit.py:228
↓ 1 callersMethodprocess_camera_coordinates
( self, direction: Literal["Left", "Right", "Up", "Down", "LeftUp", "LeftDown", "RightUp", "Ri
game_editing/diffsynth/models/wan_video_camera_controller.py:46
↓ 1 callersMethodprocess_controlnet_conditioning
(self, controlnet_conditioning)
game_editing/diffsynth/models/qwen_image_controlnet.py:52
↓ 1 callersMethodprocess_image_ids
(self, image_latents, scale=10)
game_editing/diffsynth/pipelines/flux2_image.py:496
↓ 1 callersMethodprocess_motion_frame_pack
(self, motion_latents, drop_motion_frames=False, add_last_motion=2)
game_editing/diffsynth/models/wan_video_dit_s2v.py:441
↓ 1 callersMethodprocess_motion_latents
(self, pipe: WanVideoPipeline, height, width, tiled, tile_size, tile_stride, motion_video=None)
game_editing/diffsynth/pipelines/wan_video.py:830
↓ 1 callersFunctionprocess_pose_file
(cam_params, width=672, height=384, original_pose_width=1280, original_pose_height=720, device='cpu', return_p
game_editing/diffsynth/models/wan_video_camera_controller.py:150
↓ 1 callersMethodprocess_single_controlnet
(self, controlnet_input: ControlNetInput, conditioning: torch.Tensor, **kwargs)
game_editing/diffsynth/pipelines/flux_image.py:30
↓ 1 callersMethodquickGELU
(self, x)
game_editing/diffsynth/models/flux_lora_encoder.py:106
↓ 1 callersMethodquickGELU
(self, x)
game_editing/diffsynth/models/sd_text_encoder.py:107
↓ 1 callersMethodquickGELU
(self, x)
game_editing/diffsynth/models/flux_text_encoder_clip.py:52
↓ 1 callersFunctionqwen_image_flash_attention
(q: torch.Tensor, k: torch.Tensor, v: torch.Tensor, num_heads: int, attention_mask = None, enable_fp8_attentio
game_editing/diffsynth/models/qwen_image_dit.py:14
↓ 1 callersMethodraw_data
(self)
game_editing/diffsynth/utils/data/__init__.py:96
↓ 1 callersFunctionray_condition
Copied from https://github.com/hehao13/CameraCtrl/blob/main/inference.py
game_editing/diffsynth/models/wan_video_camera_controller.py:114
↓ 1 callersMethodregister_grid_size
(self, grid_size)
game_editing/diffsynth/models/longcat_video_dit.py:77
↓ 1 callersMethodreparameterize
(self, mu, log_var)
game_editing/diffsynth/models/wan_video_vae.py:1036
↓ 1 callersMethodrequire_downloading
(self)
game_editing/diffsynth/core/loader/config.py:84
↓ 1 callersMethodreset_local_model_path
(self)
game_editing/diffsynth/core/loader/config.py:90
↓ 1 callersMethodreset_parameters
(self)
game_editing/diffsynth/models/ltx2_video_vae.py:249
↓ 1 callersMethodresize_image
(self, image, target_area=384*384)
game_editing/diffsynth/pipelines/qwen_image.py:345
↓ 1 callersMethodreturn_to_timestep
(self, timestep, sample, sample_stablized)
game_editing/diffsynth/diffusion/flow_match.py:213
↓ 1 callersMethodrope
(self, pos: torch.Tensor, dim: int, theta: int)
game_editing/diffsynth/models/flux_dit.py:22
↓ 1 callersFunctionrun_single
(args)
game_editing/examples/wanvideo/model_inference/inference_gbuffer_caption.py:127
↓ 1 callersFunctionsage_attention
(q: torch.Tensor, k: torch.Tensor, v: torch.Tensor, q_pattern="b n s d", k_pattern="b n s d", v_pattern="b n s
game_editing/diffsynth/core/attention/attention.py:92
↓ 1 callersMethodsample
(self, imgs, deterministic=False)
game_editing/diffsynth/models/wan_video_vae.py:1041
↓ 1 callersMethodsearch_direct_unit_ids
(self, units: list[PipelineUnit], model_names: list[str])
game_editing/diffsynth/diffusion/base_pipeline.py:362
↓ 1 callersMethodsearch_for_cached_data_files
(self, path)
game_editing/diffsynth/core/data/unified_dataset.py:60
↓ 1 callersFunctionsearch_for_images
(folder)
game_editing/diffsynth/utils/data/__init__.py:42
↓ 1 callersMethodsearch_related_unit_ids
(self, edges, start_unit_ids, direction="target")
game_editing/diffsynth/diffusion/base_pipeline.py:372
↓ 1 callersMethodsearch_updating_unit_ids
(self, units: list[PipelineUnit], chains, related_unit_ids)
game_editing/diffsynth/diffusion/base_pipeline.py:390
↓ 1 callersMethodset_adapter
(self)
game_editing/diffsynth/models/flux_ipadapter.py:73
↓ 1 callersMethodset_shape
(self, height, width)
game_editing/diffsynth/utils/data/__init__.py:105
↓ 1 callersMethodset_training_weight
(self)
game_editing/diffsynth/diffusion/flow_match.py:177
↓ 1 callersMethodsingle_decode
(self, hidden_state, device)
game_editing/diffsynth/models/wan_video_vae.py:1212
↓ 1 callersMethodsingle_encode
(self, video, device)
game_editing/diffsynth/models/wan_video_vae.py:1206
↓ 1 callersFunctionsinusoidal_embedding_1d
(dim, position)
game_editing/diffsynth/utils/xfuser/xdit_context_parallel.py:27
↓ 1 callersFunctionsplit_file_name
(file_name)
game_editing/diffsynth/utils/data/__init__.py:23
↓ 1 callersFunctionsplit_freqs_cis
(freqs: torch.Tensor, pad_size: int, num_attention_heads: int)
game_editing/diffsynth/models/ltx2_dit.py:390
↓ 1 callersFunctionsplit_in_temporal
(size: int, overlap: int)
game_editing/diffsynth/models/ltx2_video_vae.py:2264
↓ 1 callersMethodstage2_denoise
(self, inputs_shared, inputs_posi, inputs_nega, progress_bar_cmd=tqdm)
game_editing/diffsynth/pipelines/ltx2_audio_video.py:104
↓ 1 callersMethodstore
(self, hidden_states)
game_editing/diffsynth/pipelines/flux_image.py:942
↓ 1 callersMethodstore
(self, hidden_states)
game_editing/diffsynth/pipelines/wan_video.py:1064
↓ 1 callersMethodtiled_decode
(self, hidden_states, device, tile_size, tile_stride)
game_editing/diffsynth/models/wan_video_vae.py:1103
↓ 1 callersMethodtiled_decode
r""" Decode a batch of images using a tiled decoder. Args: z (`torch.Tensor`): Input batch of latent vectors.
game_editing/diffsynth/models/flux2_vae.py:2247
↓ 1 callersMethodtiled_encode
(self, video, device, tile_size, tile_stride)
game_editing/diffsynth/models/wan_video_vae.py:1155
↓ 1 callersMethodtiled_encode_video
Encode video using spatial tiling for memory efficiency. Splits the video into overlapping spatial tiles, encodes each tile separately,
game_editing/diffsynth/models/ltx2_video_vae.py:1490
↓ 1 callersMethodtiled_forward
(self, forward_fn, model_input, tile_size, tile_stride, tile_device="cpu", tile_dtype=torch.float32, border_wi
game_editing/diffsynth/pipelines/flux_image.py:974
↓ 1 callersMethodtiled_forward
(self, sample, tile_size=64, tile_stride=32)
game_editing/diffsynth/models/flux_vae.py:333
↓ 1 callersMethodtiled_forward
(self, sample, tile_size=64, tile_stride=32)
game_editing/diffsynth/models/flux_vae.py:401
↓ 1 callersMethodtiled_inference
(self, forward_fn, model_input, tile_batch_size, inference_device, inference_dtype, tile_device, tile_dtype)
game_editing/diffsynth/models/flux_vae.py:34
↓ 1 callersMethodtimestep_embedding
Create sinusoidal timestep embeddings. Args: t (torch.Tensor): a 1-D Tensor of N indices, one per batch element. These m
game_editing/diffsynth/models/step1x_connector.py:134
↓ 1 callersMethodtimestep_embedding
Create sinusoidal timestep embeddings. :param t: a 1-D Tensor of N indices, one per batch element. These ma
game_editing/diffsynth/models/longcat_video_dit.py:425
↓ 1 callersMethodtimestep_embedding
(t, dim, max_period=10000)
game_editing/diffsynth/models/z_image_dit.py:42
↓ 1 callersMethodtokenize_with_weights
Tokenize the given text and return token IDs and attention weights. Args: text (str): The input string to tokenize.
game_editing/diffsynth/models/ltx2_text_encoder.py:111
↓ 1 callersFunctiontorch_dfs
(model: nn.Module, parent_name='root')
game_editing/diffsynth/models/wan_video_dit_s2v.py:9
↓ 1 callersMethodtorch_forward
(self, hidden_states, encoder_hidden_states=None, attn_mask=None, ipadapter_kwargs=None, qkv_preprocessor=None
game_editing/diffsynth/models/flux_lora_encoder.py:37
↓ 1 callersMethodtorch_forward
(self, hidden_states, encoder_hidden_states=None, attn_mask=None, ipadapter_kwargs=None, qkv_preprocessor=None
game_editing/diffsynth/models/sd_text_encoder.py:38
↓ 1 callersMethodtrainable_modules
(self)
game_editing/diffsynth/diffusion/training_module.py:18
↓ 1 callersMethodtrainable_param_names
(self)
game_editing/diffsynth/diffusion/training_module.py:23
↓ 1 callersMethodtraining_target
(self, sample, noise, timestep)
game_editing/diffsynth/diffusion/flow_match.py:229
← previousnext →501–600 of 1,613, ranked by callers