MCPcopy Create free account

hub / github.com/aim-uofa/Framer / functions

Functions206 in github.com/aim-uofa/Framer

↓ 40 callersMethodhead_to_batch_dim
r""" Reshape the tensor from `[batch_size, seq_len, dim]` to `[batch_size, seq_len, heads, dim // heads]` `heads` is the number of hea
models_diffusers/attention_processor.py:547
↓ 16 callersMethod__init__
( self, in_channels: int, prev_output_channel: int, out_channels: int,
models_diffusers/unet_3d_blocks.py:831
↓ 13 callersMethodnorm_encoder_hidden_states
r""" Normalize the encoder hidden states. Requires `self.norm_cross` to be specified when constructing the `Attention` class.
models_diffusers/attention_processor.py:664
↓ 13 callersMethodprepare_attention_mask
r""" Prepare the attention mask for the attention computation. Args: attention_mask (`torch.Tensor`): The
models_diffusers/attention_processor.py:617
↓ 10 callersMethod__init__
( self, query_dim: int, cross_attention_dim: Optional[int] = None, heads: int
models_diffusers/attention_processor.py:89
↓ 10 callersMethodbatch_to_head_dim
r""" Reshape the tensor from `[batch_size, seq_len, dim]` to `[batch_size // heads, seq_len, dim * heads]`. `heads` is the number of h
models_diffusers/attention_processor.py:530
↓ 9 callersMethodset_processor
r""" Set the attention processor to use. Args: processor (`AttnProcessor`): The attention processor to us
models_diffusers/attention_processor.py:371
↓ 8 callersMethodwarning
(self, msg, *args, **kwargs)
gradio_demo/utils_drag.py:93
↓ 7 callersMethodget_attention_scores
r""" Compute the attention scores. Args: query (`torch.Tensor`): The query tensor. key (`torch.Tensor`): The
models_diffusers/attention_processor.py:570
↓ 7 callersMethodinfo
(self, msg, *args, **kwargs)
gradio_demo/utils_drag.py:89
↓ 5 callersFunctionzero_module
(module)
models_diffusers/controlnet_svd.py:785
↓ 3 callersMethod__init__
( self, dim: int, dim_out: Optional[int] = None, mult: int = 4, dropou
models_diffusers/attention.py:507
↓ 3 callersFunction_chunked_feed_forward
( ff: nn.Module, hidden_states: torch.Tensor, chunk_dim: int, chunk_size: int, lora_scale: Optional[float]
models_diffusers/attention.py:29
↓ 3 callersMethod_reshape
(hid_states, h)
models_diffusers/attention_processor.py:2242
↓ 3 callersFunctionensure_dirname
(dirname, override=False)
gradio_demo/utils_drag.py:181
↓ 3 callersMethodfrom_pretrained
r""" Instantiate a pretrained PyTorch model from a pretrained model configuration. The model is set in evaluation mode - `model.eval(
models_diffusers/unet_spatio_temporal_condition.py:584
↓ 3 callersMethodget_processor
r""" Get the attention processor in use. Args: return_deprecated_lora (`bool`, *optional*, defaults to `False`):
models_diffusers/attention_processor.py:406
↓ 3 callersFunctionimage2pil
(filename)
gradio_demo/utils_drag.py:241
↓ 2 callersMethod_encode_image
(self, image, device, num_videos_per_prompt, do_classifier_free_guidance)
pipelines/pipeline_stable_video_diffusion_interp_control.py:129
↓ 2 callersMethod_encode_vae_image
( self, image: torch.Tensor, device, num_videos_per_prompt, do_classif
pipelines/pipeline_stable_video_diffusion_interp_control.py:171
↓ 2 callersFunction_filter2d
(input, kernel)
pipelines/pipeline_stable_video_diffusion_interp_control.py:802
↓ 2 callersFunction_gaussian
(window_size: int, sigma)
pipelines/pipeline_stable_video_diffusion_interp_control.py:825
↓ 2 callersMethodcheck_inputs
(self, image, height, width)
pipelines/pipeline_stable_video_diffusion_interp_control.py:250
↓ 2 callersFunctioncombine_gifs_side_by_side
(gif_paths, output_path)
app.py:267
↓ 2 callersFunctionget_down_block
( down_block_type: str, num_layers: int, in_channels: int, out_channels: int, temb_channel
models_diffusers/unet_3d_blocks.py:41
↓ 2 callersFunctionpoint_tracking
( F0, F1, handle_points, handle_points_init, track_dist=5, )
models_diffusers/sift_match.py:203
↓ 2 callersMethodset_attn_processor
r""" Sets the attention processor to use to compute attention. Parameters: processor (`dict` of `AttentionProcessor` or o
models_diffusers/controlnet_svd.py:355
↓ 2 callersMethodset_chunk_feed_forward
(self, chunk_size: Optional[int], dim: int = 0)
models_diffusers/attention.py:242
↓ 2 callersFunctionsplit_filename
(filename)
gradio_demo/utils_drag.py:107
↓ 1 callersMethod__init__
( self, num_attention_heads: int = 16, attention_head_dim: int = 88, in_channe
models_diffusers/transformer_temporal.py:74
↓ 1 callersMethod__init__
( self, sample_size: Optional[int] = None, in_channels: int = 8, out_channels:
models_diffusers/controlnet_svd.py:158
↓ 1 callersFunction_append_dims
Appends dimensions to the end of a tensor until it has target_dims dimensions.
pipelines/pipeline_stable_video_diffusion_interp_control.py:45
↓ 1 callersFunction_compute_padding
Compute padding tuple.
pipelines/pipeline_stable_video_diffusion_interp_control.py:779
↓ 1 callersFunction_gaussian_blur2d
(input, kernel_size, sigma)
pipelines/pipeline_stable_video_diffusion_interp_control.py:841
↓ 1 callersMethod_get_add_time_ids
( self, fps, motion_bucket_id, noise_aug_strength, dtype, batc
pipelines/pipeline_stable_video_diffusion_interp_control.py:194
↓ 1 callersFunction_resize_with_antialiasing
(input, size, interpolation="bicubic", align_corners=True)
pipelines/pipeline_stable_video_diffusion_interp_control.py:750
↓ 1 callersFunctioncreate_gif
(image_list, gif_path, duration=100)
app.py:231
↓ 1 callersMethoddecode_latents
(self, latents, num_frames, decode_chunk_size=14)
pipelines/pipeline_stable_video_diffusion_interp_control.py:222
↓ 1 callersFunctiondraw_heatmap
(img, center_coordinate, heatmap_template, side, width, height)
models_diffusers/utils.py:35
↓ 1 callersFunctionframes_to_video
(frames_folder, output_video_path, fps=7)
app.py:206
↓ 1 callersFunctiongen_gaussian_heatmap
(imgSize=200)
app.py:114
↓ 1 callersFunctiongen_gaussian_heatmap
(imgSize=200)
models_diffusers/utils.py:15
↓ 1 callersFunctiongenerate_gassian_heatmap
(pred_tracks, pred_visibility=None, image_size=None, side=20)
models_diffusers/utils.py:53
↓ 1 callersFunctionget_args
()
app.py:45
↓ 1 callersFunctionget_concat_h
(im1, im2, gap=10)
app.py:296
↓ 1 callersFunctionget_logger
examples: logger = get_logger('try_logging.txt') logger.debug("Do something.") logger.info("Start print log.") l
gradio_demo/utils_drag.py:33
↓ 1 callersFunctionget_up_block
( up_block_type: str, num_layers: int, in_channels: int, out_channels: int, prev_output_ch
models_diffusers/unet_3d_blocks.py:169
↓ 1 callersFunctionget_vis_image
( target_size=(512 , 512), points=None, side=20, num_frames=14, # original_size=(512
app.py:132
↓ 1 callersFunctioninterpolate_trajectory
(points, n_points)
app.py:94
↓ 1 callersFunctioninterpolate_trajectory
(points_torch, num_frames, t=None)
models_diffusers/sift_match.py:166
↓ 1 callersFunctionpil2arr
(pil)
gradio_demo/utils_drag.py:250
↓ 1 callersMethodprepare_latents
( self, batch_size, num_frames, num_channels_latents, height,
pipelines/pipeline_stable_video_diffusion_interp_control.py:264
↓ 1 callersFunctionsave_gifs_side_by_side
( batch_output, validation_control_images, output_folder, target_size=(512 , 512), duratio
app.py:222
↓ 1 callersMethodset_attention_slice
r""" Enable sliced attention computation. When this option is enabled, the attention module splits the input tensor in slices to comp
models_diffusers/controlnet_svd.py:715
↓ 1 callersMethodset_attn_processor
r""" Sets the attention processor to use to compute attention. Parameters: processor (`dict` of `AttentionProcessor` or o
models_diffusers/unet_spatio_temporal_condition.py:319
↓ 1 callersFunctionsift_match
( img1, img2, thr=0.5, topk=5, method="max_dist", output_path="sift_matches.png", )
models_diffusers/sift_match.py:9
↓ 1 callersFunctiontensor2vid
(video: torch.Tensor, processor, output_type="np")
pipelines/pipeline_stable_video_diffusion_interp_control.py:53
↓ 1 callersFunctionvalidate_and_convert_image
(image, target_size=(512 , 512))
app.py:328
Method__call__
r""" The call function to the pipeline for generation. Args: image (`PIL.Image.Image` or `List[PIL.Image.Image]` or `torc
pipelines/pipeline_stable_video_diffusion_interp_control.py:314
Method__call__
( self, attn: Attention, hidden_states: torch.FloatTensor, encoder_hidden_stat
models_diffusers/attention_processor.py:699
Method__call__
( self, attn: Attention, hidden_states: torch.FloatTensor, encoder_hidden_stat
models_diffusers/attention_processor.py:814
Method__call__
( self, attn: Attention, hidden_states: torch.FloatTensor, encoder_hidden_stat
models_diffusers/attention_processor.py:879
Method__call__
( self, attn: Attention, hidden_states: torch.FloatTensor, encoder_hidden_stat
models_diffusers/attention_processor.py:949
Method__call__
( self, attn: Attention, hidden_states: torch.FloatTensor, encoder_hidden_stat
models_diffusers/attention_processor.py:1025
Method__call__
( self, attn: Attention, hidden_states: torch.FloatTensor, encoder_hidden_stat
models_diffusers/attention_processor.py:1096
Method__call__
( self, attn: Attention, hidden_states: torch.FloatTensor, encoder_hidden_stat
models_diffusers/attention_processor.py:1187
Method__call__
( self, attn: Attention, hidden_states: torch.FloatTensor, encoder_hidden_stat
models_diffusers/attention_processor.py:1317
Method__call__
( self, attn: Attention, hidden_states: torch.FloatTensor, encoder_hidden_stat
models_diffusers/attention_processor.py:1428
Method__call__
( self, attn: Attention, hidden_states: torch.FloatTensor, encoder_hidden_stat
models_diffusers/attention_processor.py:1509
Method__call__
( self, attn: "Attention", hidden_states: torch.FloatTensor, encoder_hidden_st
models_diffusers/attention_processor.py:1596
Method__call__
(self, attn: Attention, hidden_states: torch.FloatTensor, *args, **kwargs)
models_diffusers/attention_processor.py:1756
Method__call__
(self, attn: Attention, hidden_states: torch.FloatTensor, *args, **kwargs)
models_diffusers/attention_processor.py:1831
Method__call__
(self, attn: Attention, hidden_states: torch.FloatTensor, *args, **kwargs)
models_diffusers/attention_processor.py:1910
Method__call__
(self, attn: Attention, hidden_states: torch.FloatTensor, *args, **kwargs)
models_diffusers/attention_processor.py:1969
Method__call__
( self, attn, hidden_states, encoder_hidden_states=None, attention_mas
models_diffusers/attention_processor.py:2016
Method__call__
( self, attn, hidden_states, encoder_hidden_states=None, attention_mas
models_diffusers/attention_processor.py:2131
Method__call__
( self, attn, x, context, context_mask=None, )
models_diffusers/attention_processor.py:2247
Method__init__
(self, device, args, height, width, model_length, dtype=torch.float16, use_sift=False)
app.py:356
Method__init__
(self, logger)
gradio_demo/utils_drag.py:85
Method__init__
( self, vae: AutoencoderKLTemporalDecoder, image_encoder: CLIPVisionModelWithProjectio
pipelines/pipeline_stable_video_diffusion_interp_control.py:105
Method__init__
( self, train_kv: bool = True, train_q_out: bool = True, hidden_size: Optional
models_diffusers/attention_processor.py:788
Method__init__
(self)
models_diffusers/attention_processor.py:943
Method__init__
(self, attention_op: Optional[Callable] = None)
models_diffusers/attention_processor.py:1022
Method__init__
(self, attention_op: Optional[Callable] = None)
models_diffusers/attention_processor.py:1093
Method__init__
(self)
models_diffusers/attention_processor.py:1183
Method__init__
( self, train_kv: bool = True, train_q_out: bool = False, hidden_size: Optiona
models_diffusers/attention_processor.py:1289
Method__init__
( self, train_kv: bool = True, train_q_out: bool = True, hidden_size: Optional
models_diffusers/attention_processor.py:1402
Method__init__
(self, slice_size: int)
models_diffusers/attention_processor.py:1506
Method__init__
(self, slice_size)
models_diffusers/attention_processor.py:1593
Method__init__
( self, f_channels: int, zq_channels: int, )
models_diffusers/attention_processor.py:1686
Method__init__
( self, hidden_size: int, cross_attention_dim: Optional[int] = None, rank: int
models_diffusers/attention_processor.py:1722
Method__init__
( self, hidden_size: int, cross_attention_dim: Optional[int] = None, rank: int
models_diffusers/attention_processor.py:1795
Method__init__
( self, hidden_size: int, cross_attention_dim: int, rank: int = 4, att
models_diffusers/attention_processor.py:1874
Method__init__
( self, hidden_size: int, cross_attention_dim: Optional[int] = None, rank: int
models_diffusers/attention_processor.py:1949
Method__init__
(self, hidden_size, cross_attention_dim=None, num_tokens=4, scale=1.0)
models_diffusers/attention_processor.py:2005
Method__init__
(self, hidden_size, cross_attention_dim=None, num_tokens=4, scale=1.0)
models_diffusers/attention_processor.py:2115
Method__init__
( self, num_attention_heads: int = 16, attention_head_dim: int = 88, in_channe
models_diffusers/transformer_temporal.py:220
Method__init__
(self, query_dim: int, context_dim: int, n_heads: int, d_head: int)
models_diffusers/attention.py:66
Method__init__
( self, dim: int, num_attention_heads: int, attention_head_dim: int, d
models_diffusers/attention.py:132
Method__init__
( self, dim: int, time_mix_inner_dim: int, num_attention_heads: int, a
models_diffusers/attention.py:376
next →1–100 of 206, ranked by callers