MCPcopy Create free account

hub / github.com/TMElyralab/MuseV / functions

Functions388 in github.com/TMElyralab/MuseV

Methodfn_recursive_retrieve_sliceable_dims
(module: torch.nn.Module)
musev/models/unet_3d_condition.py:658
Functionfn_recursive_search
( name: str, module: torch.nn.Module, target: str, print_method=print, print_name: str = "
musev/utils/util.py:346
Methodfn_recursive_set_attention_slice
( module: torch.nn.Module, slice_size: List[int] )
musev/models/unet_3d_condition.py:700
Methodfn_recursive_set_mem_eff
(module: torch.nn.Module)
musev/models/unet_3d_condition.py:1650
Methodforward
_summary_ Args: sample (torch.FloatTensor): _description_ timestep (Union[torch.Tensor, float, int]): _description_
musev/models/unet_3d_condition.py:773
Methodforward
fuse referencenet emb b c t2 h2 w2 into unet latents b c t1 h1 w1 with attn refer to musev/models/attention_processor.py::NonParamT2ISelfRefe
musev/models/attention_processor.py:629
Methodforward
Args: hidden_states ( When discrete, `torch.LongTensor` of shape `(batch size, num latent pixels)`. When continou
musev/models/temporal_transformer.py:189
Methodforward
The [`Transformer2DModel`] forward method. Args: hidden_states (`torch.LongTensor` of shape `(batch size, num latent pix
musev/models/transformer_2d.py:172
Methodforward
(self, x)
musev/models/controlnet.py:309
Methodforward
( self, hidden_states: torch.FloatTensor, attention_mask: Optional[torch.FloatTensor]
musev/models/attention.py:172
Methodforward
( self, hidden_states: torch.FloatTensor, temb: Optional[torch.FloatTensor] = None,
musev/models/unet_2d_blocks.py:636
Methodforward
( self, hidden_states: torch.FloatTensor, temb: Optional[torch.FloatTensor] = None,
musev/models/unet_2d_blocks.py:753
Methodforward
( self, hidden_states: torch.FloatTensor, temb: Optional[torch.FloatTensor] = None,
musev/models/unet_2d_blocks.py:905
Methodforward
( self, hidden_states: torch.FloatTensor, temb: Optional[torch.FloatTensor] = None,
musev/models/unet_2d_blocks.py:1048
Methodforward
( self, hidden_states: torch.FloatTensor, temb: Optional[torch.FloatTensor] = None,
musev/models/unet_2d_blocks.py:1191
Methodforward
( self, hidden_states: torch.FloatTensor, res_hidden_states_tuple: Tuple[torch.FloatTe
musev/models/unet_2d_blocks.py:1328
Methodforward
( self, hidden_states: torch.FloatTensor, res_hidden_states_tuple: Tuple[torch.FloatTe
musev/models/unet_2d_blocks.py:1475
Methodforward
r""" The [`UNet2DConditionModel`] forward method. Args: sample (`torch.FloatTensor`): The noisy input ten
musev/models/referencenet.py:640
Methodforward
( self, hidden_states, temb=None, femb=None, encoder_hidden_states=Non
musev/models/unet_3d_blocks.py:364
Methodforward
( self, hidden_states: torch.FloatTensor, temb: Optional[torch.FloatTensor] = None,
musev/models/unet_3d_blocks.py:594
Methodforward
( self, hidden_states, temb=None, num_frames=1, sample_index: torch.Lo
musev/models/unet_3d_blocks.py:884
Methodforward
( self, hidden_states: torch.FloatTensor, res_hidden_states_tuple: Tuple[torch.FloatTe
musev/models/unet_3d_blocks.py:1106
Methodforward
( self, hidden_states, res_hidden_states_tuple, temb=None, upsample_si
musev/models/unet_3d_blocks.py:1324
Methodforward
_summary_ Args: unet_params (Dict): _description_ encoder_hidden_states (torch.Tensor): b t n d reference
musev/models/super_model.py:72
Methodforward
( self, hidden_states, num_frames=1, sample_index: torch.LongTensor = None,
musev/models/resnet.py:95
Methodforward
( self, texts, text_params: Dict = None, )
musev/models/text_model.py:11
Functiongenerate_meshgrid_2d
(h: int, w: int, device)
musev/utils/tensor_util.py:5
Functiongenerate_sparse_causcal_attn_mask
generate b (n expand) (n expand) mask, where value of diag (0<=<=n_near) and first column of shape mat (n n) is set as big_value, others as s
musev/utils/attention_util.py:29
Functiongenerate_tasks_of_dir
covert video directory into tasks Args: path (str): _description_ output_dir (str): _description_ exts (Tuple[str]): _des
musev/data/data_util.py:13
Functionget_down_block
( down_block_type, num_layers, in_channels, out_channels, temb_channels, femb_channels
musev/models/unet_3d_blocks.py:50
Functionget_total_steps
( scheduler, timesteps: List[int], num_steps: Optional[int] = None, num_frames: int = ...,
musev/pipelines/context.py:78
Functionget_up_block
( up_block_type, num_layers, in_channels, out_channels, prev_output_channel, temb_chan
musev/models/unet_3d_blocks.py:144
Functionhf_online_t2v_inference
( prompt, image_np, seed, fps, w, h, video_len, img_edge_ratio, )
scripts/gradio/app_docker_space.py:42
Functionhf_online_t2v_inference
( prompt, image_np, seed, fps, w, h, video_len, img_edge_ratio, )
scripts/gradio/app_gradio_space.py:75
Functionhf_online_t2v_inference
( prompt, image_np, seed, fps, w, h, video_len, img_edge_ratio, )
scripts/gradio/app.py:40
Functionhg_online_v2v_inference
( prompt, image_np, video, processor, seed, fps, w, h, video_length, i
scripts/gradio/app_docker_space.py:63
Functionhg_online_v2v_inference
( prompt, image_np, video, processor, seed, fps, w, h, video_length, i
scripts/gradio/app_gradio_space.py:96
Functionhg_online_v2v_inference
( prompt, image_np, video, processor, seed, fps, w, h, video_length, i
scripts/gradio/app.py:61
Functionhis_match
(src, dst)
musev/utils/tensor_util.py:13
Functioninsert_spatial_self_attn_idx
(unet)
musev/models/unet_3d_condition.py:162
Functioninterwine_two_tensor
( data1: torch.Tensor, data2: torch.Tensor, dim: int, return_index: bool = False, )
musev/data/data_util.py:295
Functionlimit_length
limite generation video frames numer to avoid gpu memory overflow
scripts/gradio/app_docker_space.py:126
Functionlimit_length
limite generation video frames numer to avoid gpu memory overflow
scripts/gradio/app_gradio_space.py:159
Functionlimit_length
limite generation video frames numer to avoid gpu memory overflow
scripts/gradio/app.py:124
Functionload_ip_adapter_vision_clip_encoder_by_name
( model_name: str, ip_ckpt: Tuple[str, nn.Module], ip_image_encoder: Tuple[str, nn.Module] = None,
musev/models/ip_adapter_loader.py:143
Functionload_motion_lora_weights
( animation_pipeline, motion_module_lora_configs=[], )
musev/utils/model_util.py:478
Functionload_unet_custom_unet
通过模型名字 初始化Unet,载入预训练参数. init unet with model_name. 该部分都是通过 不通过models.unet_3d_condition.py:UNet3DConditionModel 定义、训练的模型 model is not defi
musev/models/unet_loader.py:167
Functionload_yaml
(path)
scripts/gradio/gradio_video2video.py:438
Functionload_yaml
(path)
scripts/gradio/gradio_text2video.py:410
Functionnot_use_xformers_anyway
( use_memory_efficient_attention_xformers: bool, attention_op: Optional[Callable] = None, )
musev/models/attention.py:44
Functionprocess_input
(new_choice)
scripts/gradio/app_docker_space.py:149
Functionprocess_input
(new_choice)
scripts/gradio/app_gradio_space.py:182
Functionprocess_input
(new_choice)
scripts/gradio/app.py:147
Methodregister
Decorator to register a function or class.
musev/utils/register.py:23
Functionrescale_noise_cfg
Rescale `noise_cfg` according to `guidance_rescale`. Based on findings of [Common Diffusion Noise Schedules and Sample Steps are Flawed](http
musev/utils/util.py:368
Methodreshape_return_emb
(tmp_emb)
musev/models/referencenet.py:1018
Methodrun_pipe_middle2video_with_middle
(self, middle: Tuple[str, Iterable])
musev/pipelines/pipeline_controlnet_predictor.py:757
Methodrun_pipe_with_latent_input
( self, )
musev/pipelines/pipeline_controlnet_predictor.py:752
Functionsample_tensor_by_idx
sample sub_tensor Args: tensor (Union[torch.Tensor, np.ndarray]): _description_ n_sample (int): _description_ sample_rate
musev/data/data_util.py:129
Functionsave_videos_grid
( videos: torch.Tensor, path: str, rescale=False, n_rows=4, # 一行多少个视频 fps=8, save_typ
musev/utils/util.py:31
Methodscale_model_input
Scales the denoising model input by `(sigma**2 + 1) ** 0.5` to match the Euler algorithm. Args: sample (`torch.FloatTens
musev/schedulers/scheduling_euler_ancestral_discrete.py:172
Methodset_default_attn_processor
Disables custom attention processors and sets the default attention implementation.
musev/models/unet_3d_condition.py:761
Methodset_timesteps
Sets the timesteps used for the diffusion chain. Supporting function to be run before inference. Args: num_inference_ste
musev/schedulers/scheduling_euler_ancestral_discrete.py:193
Methodset_use_memory_efficient_attention_xformers
( self, use_memory_efficient_attention_xformers: bool, attention_op: Callable[..., Any
musev/models/attention_processor.py:137
Methodspatial_cross_attns
( self, )
musev/models/unet_3d_condition.py:1689
Methodspatial_self_attns
( self, )
musev/models/unet_3d_condition.py:1678
Methodspatial_self_attns
( self, )
musev/models/referencenet.py:1158
Functionsplit_tensor
( tensor: torch.Tensor, dim: int, n_first=None, n_last=None, method: Literal[ "fir
musev/data/data_util.py:370
Functionstable_unclip_image_encoder
Returns the image processor and clip image encoder for the img2img unclip pipeline. We currently know of two types of stable unclip models w
musev/utils/convert_from_ckpt.py:869
Functionstable_unclip_image_noising_components
Returns the noising components for the img2img and txt2img unclip pipelines. Converts the stability noise augmentor into 1. a `StableUnC
musev/utils/convert_from_ckpt.py:902
Methodstep
Predict the sample from the previous timestep by reversing the SDE. This function propagates the diffusion process from the learned m
musev/schedulers/scheduling_ddpm.py:124
Methodstep
Predict the sample at the previous timestep by reversing the SDE. Core function to propagate the diffusion process from the learned m
musev/schedulers/scheduling_euler_ancestral_discrete.py:220
Methodstep
Predict the sample from the previous timestep by reversing the SDE. This function propagates the diffusion process from the learned m
musev/schedulers/scheduling_euler_discrete.py:47
Methodstep
Step function propagating the sample with the multistep DPM-Solver. Args: model_output (`torch.FloatTensor`): direct out
musev/schedulers/scheduling_dpmsolver_multistep.py:655
Methodstep
Predict the sample from the previous timestep by reversing the SDE. This function propagates the diffusion process from the learned m
musev/schedulers/scheduling_ddim.py:136
Methodstep_bk
Predict the sample from the previous timestep by reversing the SDE. This function propagates the diffusion process from the learned m
musev/schedulers/scheduling_lcm.py:203
Methodstep_bk
Predict the sample at the previous timestep by reversing the SDE. Core function to propagate the diffusion process from the learned m
musev/schedulers/scheduling_euler_discrete.py:175
Functiontorch_dfs
(model: torch.nn.Module)
musev/pipelines/pipeline_controlnet.py:80
Functionuniform
( step: int = ..., num_steps: Optional[int] = None, num_frames: int = ..., context_size: Optio
musev/pipelines/context.py:21
Functionuniform_v2
( step: int = ..., num_steps: Optional[int] = None, num_frames: int = ..., context_size: Optio
musev/pipelines/context.py:51
Functionunload_lora
(unload_dict: List[Dict[str, nn.Module]])
musev/utils/model_util.py:468
Methodunload_lora
(self)
musev/pipelines/pipeline_controlnet_predictor.py:320
Methodupdate_controlnet
(self, controlnet_name=Union[str, List[str]])
musev/pipelines/pipeline_controlnet_predictor.py:351
Functionupdate_pipeline_lora_model_old
使用 lora 更新pipeline中的unet相关参数 Args: pipeline (DiffusionPipeline): _description_ lora (Union[str, Dict]): _description_ alp
musev/utils/model_util.py:265
Methodupdate_sd_model
(self, model_path: str, text_model_path: str)
musev/pipelines/pipeline_controlnet_predictor.py:332
Methodupdate_sd_model_and_unet
( self, lora_sd_path: str, lora_path: str, sd_model_path: str = None )
musev/pipelines/pipeline_controlnet_predictor.py:340
Methodupdate_unet
(self, unet: nn.Module)
musev/pipelines/pipeline_controlnet_predictor.py:329
Functionupdate_unet_facein_cross_attn_param
use independent ip_adapter attn 中的 to_k, to_v in unet ip_adapter: like ['1.to_k_ip.weight', '1.to_v_ip.weight', '3.to_k_ip.weight']的字典 Args:
musev/models/facein_loader.py:109
← previous301–388 of 388, ranked by callers