MCPcopy Create free account

hub / github.com/bronyayang/Law_of_Vision_Representation_in_MLLMs / functions

Functions12,826 in github.com/bronyayang/Law_of_Vision_Representation_in_MLLMs

↓ 4 callersFunctionvqvae_resnet_to_diffusers_checkpoint
(resnet, checkpoint, *, diffusers_resnet_prefix, resnet_prefix)
diffusers/scripts/convert_vq_diffusion_to_diffusers.py:406
↓ 3 callersMethod__call__
r""" Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[str]`, *optional*):
diffusers/examples/community/rerender_a_video.py:589
↓ 3 callersMethod__call__
r""" Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[str]`): The
diffusers/examples/community/lpw_stable_diffusion_onnx.py:654
↓ 3 callersMethod__call__
r""" Function invoked when calling the pipeline for generation. Args: prompt (`str`): The prompt to guid
diffusers/examples/community/lpw_stable_diffusion_xl.py:1375
↓ 3 callersMethod__call__
r""" Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[str]`): The
diffusers/examples/community/lpw_stable_diffusion.py:766
↓ 3 callersMethod__init__
(self, *, dim, dim_head=64, heads=8)
llava/model/multimodal_projector/perceiver_helpers.py:26
↓ 3 callersMethod__init__
( self, do_resize: bool = True, vae_scale_factor: int = 8, vae_latent_channels
diffusers/src/diffusers/image_processor.py:85
↓ 3 callersMethod__init__
Initialize an empty AttentionStore :param step_index: used to visualize only a specific step in the diffusion process
diffusers/src/diffusers/pipelines/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:122
↓ 3 callersMethod__init__
( self, channels: int, use_conv: bool = False, out_channels: Optional[int] = N
diffusers/src/diffusers/models/downsampling.py:42
↓ 3 callersMethod__init__
( self, channels: int, use_conv: bool = False, use_conv_transpose: bool = Fals
diffusers/src/diffusers/models/upsampling.py:41
↓ 3 callersMethod__init__
(self, dim_in: int, dim_out: int, approximate: str = "none", bias: bool = True)
diffusers/src/diffusers/models/activations.py:76
↓ 3 callersMethod__init__
( self, dim=1024, depth=8, dim_head=64, heads=16, num_queries=
diffusers/examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:124
↓ 3 callersMethod__init__
(self, model, device, max_batch_size, embedding_dim)
diffusers/examples/community/stable_diffusion_tensorrt_txt2img.py:538
↓ 3 callersMethod__init__
Initialize an empty AttentionStore :param step_index: used to visualize only a specific step in the diffusion process
diffusers/examples/community/pipeline_stable_diffusion_boxdiff.py:240
↓ 3 callersMethod__init__
(self, num_tok, dim, dim_out, mult=2)
diffusers/examples/community/gluegen.py:30
↓ 3 callersMethod__init__
( self, dim=1024, depth=8, dim_head=64, heads=16, num_queries=
diffusers/examples/community/pipeline_stable_diffusion_xl_instantid.py:124
↓ 3 callersMethod_aggregate_and_get_max_attention_per_token
Aggregates the attention for each token and computes the max activation value for each token to alter.
diffusers/src/diffusers/pipelines/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:629
↓ 3 callersMethod_aggregate_and_get_max_attention_per_token
Aggregates the attention for each token and computes the max activation value for each token to alter.
diffusers/examples/community/pipeline_stable_diffusion_boxdiff.py:1116
↓ 3 callersMethod_alpha_cumprod
(self, t, device)
diffusers/src/diffusers/schedulers/scheduling_ddpm_wuerstchen.py:118
↓ 3 callersMethod_cast_floating_to
Helper method to cast floating-point values of given parameter `PyTree` to given `dtype`.
diffusers/src/diffusers/models/modeling_flax_utils.py:71
↓ 3 callersMethod_combine_joint
r""" Combines a latent image img_vae of shape (B, C, H, W), a CLIP-embedded image img_clip of shape (B, L_img, clip_img_dim), and a te
diffusers/src/diffusers/pipelines/unidiffuser/pipeline_unidiffuser.py:818
↓ 3 callersMethod_compute_loss
Computes the attend-and-excite loss using the maximum attention value for each token.
diffusers/src/diffusers/pipelines/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:644
↓ 3 callersFunction_device_agnostic_dispatch
(device: str, dispatch_table: Dict[str, Callable], *args, **kwargs)
diffusers/src/diffusers/utils/testing_utils.py:950
↓ 3 callersMethod_encode_vae_image
(self, image: torch.Tensor, generator: torch.Generator)
diffusers/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:739
↓ 3 callersFunction_flash_attn_backward
(do, q, k, v, o, lse, dq, dk, dv, bias=None, causal=False, softmax_scale=None)
llava/model/language_model/mpt/flash_attn_triton.py:366
↓ 3 callersFunction_flash_attn_forward
(q, k, v, bias=None, causal=False, softmax_scale=None)
llava/model/language_model/mpt/flash_attn_triton.py:329
↓ 3 callersMethod_get_dummy_components
(self)
diffusers/tests/pipelines/deepfloyd_if/__init__.py:19
↓ 3 callersMethod_get_hook
generate a hook method for a specific block and facet.
C_score/model_utils/extractor_dino.py:198
↓ 3 callersMethod_get_superresolution_dummy_components
(self)
diffusers/tests/pipelines/deepfloyd_if/__init__.py:76
↓ 3 callersMethod_get_variance
(self, t, predicted_variance=None, variance_type=None)
diffusers/src/diffusers/schedulers/scheduling_ddpm.py:326
↓ 3 callersMethod_get_variance
(self, t, predicted_variance=None, variance_type=None)
diffusers/src/diffusers/schedulers/scheduling_ddpm_parallel.py:337
↓ 3 callersMethod_get_variance
(self, timestep, prev_timestep)
diffusers/examples/community/latent_consistency_txt2img.py:517
↓ 3 callersMethod_optionally_disable_offloading
Optionally removes offloading in case the pipeline has been already sequentially offloaded to CPU. Args: _pipeline (`Dif
diffusers/src/diffusers/loaders/lora.py:336
↓ 3 callersMethod_resize
(cls, sample, target=None, scale_factor=1, mode="bicubic")
diffusers/examples/community/kohya_hires_fix.py:55
↓ 3 callersFunction_sacreformat
Format refs and preds for sacrebleu corpus calculation. It is very particular
llava/eval/lmms-eval/lmms_eval/api/metrics.py:340
↓ 3 callersMethod_save
(self, output_dir: Optional[str] = None, state_dict=None)
llava/train/llava_trainer.py:206
↓ 3 callersMethod_split
r""" Splits a flattened embedding x of shape (B, C * H * W + clip_img_dim) into two tensors of shape (B, C, H, W) and (B, 1, clip_img_
diffusers/src/diffusers/pipelines/unidiffuser/pipeline_unidiffuser.py:774
↓ 3 callersMethod_split_joint
r""" Splits a flattened embedding x of shape (B, C * H * W + clip_img_dim + text_seq_len * text_dim] into (img_vae, img_clip, text) wh
diffusers/src/diffusers/pipelines/unidiffuser/pipeline_unidiffuser.py:799
↓ 3 callersFunction_unwrap_model
Unwraps a model.
diffusers/src/diffusers/pipelines/pipeline_loading_utils.py:230
↓ 3 callersFunctionadain
(feat: torch.Tensor)
diffusers/examples/community/pipeline_sdxl_style_aligned.py:160
↓ 3 callersMethodaggregation
:returns: {str: [metric_score] -> float} A dictionary where keys are the names of submetrics and values are functions
llava/eval/lmms-eval/lmms_eval/api/task.py:420
↓ 3 callersFunctionattention_to_diffusers_checkpoint
(checkpoint, *, diffusers_attention_prefix, attention_prefix, num_head_channels)
diffusers/scripts/convert_kandinsky_to_diffusers.py:777
↓ 3 callersFunctionattention_to_diffusers_checkpoint
(checkpoint, *, diffusers_attention_prefix, attention_prefix, num_head_channels)
diffusers/scripts/convert_kakao_brain_unclip_to_diffusers.py:826
↓ 3 callersMethodbackward_loop
Perform backward process given list of time steps Args: latents: Latents at time timesteps[0].
diffusers/src/diffusers/pipelines/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:834
↓ 3 callersMethodbackward_loop
Perform backward process given list of time steps. Args: latents: Latents at time timesteps[0].
diffusers/src/diffusers/pipelines/text_to_video_synthesis/pipeline_text_to_video_zero.py:368
↓ 3 callersMethodbatch_step_no_noise
Batched version of the `step` function, to be able to reverse the SDE for multiple samples/timesteps at once. Also, does not add any
diffusers/src/diffusers/schedulers/scheduling_ddim_parallel.py:487
↓ 3 callersMethodbinarize
Create a mask. Args: image (`PIL.Image.Image`): The image input, should be a PIL image. Returns
diffusers/src/diffusers/image_processor.py:409
↓ 3 callersFunctionbuild_filter_ensemble
Create a filtering pipeline.
llava/eval/lmms-eval/lmms_eval/filters/__init__.py:31
↓ 3 callersFunctioncalculate_patch_indices_and_loss
Calculate patch indices and corresponding loss. Args: - kps_1, kps_2: Keypoints for the two images. - desc_1, desc_2: Descriptor
C_score/utils/utils_losses.py:91
↓ 3 callersMethodcan_infer
(self, answer, choices, question_type=None, valid_option=None)
llava/eval/lmms-eval/lmms_eval/tasks/mmupd/mmupd_evals.py:400
↓ 3 callersMethodcan_infer
(self, answer, choices)
llava/eval/lmms-eval/lmms_eval/tasks/mmbench/mmbench_evals.py:126
↓ 3 callersFunctioncheck_if_lora_correctly_set
Checks if the LoRA layers are correctly set with peft
diffusers/tests/models/unets/test_models_unet_2d_condition.py:79
↓ 3 callersMethodcheck_image
(self, image, prompt, prompt_embeds)
diffusers/src/diffusers/pipelines/controlnet/pipeline_controlnet.py:758
↓ 3 callersMethodcheck_image
(self, image, prompt, prompt_embeds)
diffusers/examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:722
↓ 3 callersMethodcheck_inputs
( self, prompt, strength, callback_steps, negative_prompt=None,
diffusers/src/diffusers/pipelines/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:635
↓ 3 callersMethodcheck_over_forward
(self, time_step=0, **forward_kwargs)
diffusers/tests/schedulers/test_scheduler_flax.py:440
↓ 3 callersFunctioncheck_size
(image, height, width)
diffusers/examples/community/img2img_inpainting.py:38
↓ 3 callersFunctioncheckout_commit
Context manager that checks out a given commit when entered, but gets back to the reference it was at on exit. Args: repo (`git.Repo
diffusers/utils/tests_fetcher.py:88
↓ 3 callersFunctioncheckpoint
(step=None)
diffusers/examples/dreambooth/train_dreambooth_flax.py:629
↓ 3 callersFunctionclean_doc_toc
Cleans the table of content of the model documentation by removing duplicates and sorting models alphabetically.
diffusers/utils/check_doc_toc.py:25
↓ 3 callersFunctionclear_cache
()
diffusers/examples/community/fresco_v2v.py:52
↓ 3 callersFunctioncompute_text_embeddings
(prompt, text_encoders, tokenizers)
diffusers/examples/dreambooth/train_dreambooth_lora_sdxl.py:1451
↓ 3 callersFunctioncompute_text_embeddings
(prompt, text_encoders, tokenizers)
diffusers/examples/dreambooth/train_dreambooth_sd3.py:1344
↓ 3 callersFunctioncompute_text_embeddings
(prompt, text_encoders, tokenizers)
diffusers/examples/dreambooth/train_dreambooth_lora_sd3.py:1320
↓ 3 callersFunctioncompute_text_embeddings
(prompt, text_encoders, tokenizers)
diffusers/examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1755
↓ 3 callersFunctioncompute_text_embeddings
(prompt, text_encoders, tokenizers)
diffusers/examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1466
↓ 3 callersFunctioncompute_text_embeddings
(prompt, text_encoders, tokenizers)
diffusers/examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1525
↓ 3 callersFunctionconcat_first
(feat: torch.Tensor, dim: int = 2, scale: float = 1.0)
diffusers/examples/community/pipeline_sdxl_style_aligned.py:149
↓ 3 callersFunctionconditional_loss
( model_pred: torch.Tensor, target: torch.Tensor, reduction: str = "mean", loss_type: str = "l
diffusers/examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:827
↓ 3 callersFunctionconditional_loss
( model_pred: torch.Tensor, target: torch.Tensor, reduction: str = "mean", loss_type: str = "l
diffusers/examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:982
↓ 3 callersFunctionconditional_loss
( model_pred: torch.Tensor, target: torch.Tensor, reduction: str = "mean", loss_type: str = "l
diffusers/examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:755
↓ 3 callersFunctionconvert_attention
(checkpoint, new_checkpoint, old_prefix, new_prefix, attention_dim=None)
diffusers/scripts/convert_consistency_to_diffusers.py:142
↓ 3 callersFunctionconvert_ldm_unet_checkpoint
Takes a state dict and a config, and returns a converted checkpoint.
diffusers/examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:390
↓ 3 callersMethodconvert_model_output
Convert the model output to the corresponding type the data_prediction/noise_prediction algorithm needs. Noise_prediction is designed
diffusers/src/diffusers/schedulers/scheduling_sasolver.py:398
↓ 3 callersFunctionconvert_open_clip_checkpoint
( text_model, checkpoint, prefix="cond_stage_model.model.", )
diffusers/src/diffusers/loaders/single_file_utils.py:1256
↓ 3 callersFunctionconvert_state_dict_to_peft
r""" Converts a state dict to the PEFT format The state dict can be from previous diffusers format (`OLD_DIFFUSERS`), or new diffusers format
diffusers/src/diffusers/utils/state_dict_utils.py:174
↓ 3 callersFunctionconvert_uvit_block_to_diffusers_block
Maps the keys in a UniDiffuser transformer block (`Block`) to the keys in a diffusers transformer block (`UTransformerBlock`/`UniDiffuserBloc
diffusers/scripts/convert_unidiffuser_to_diffusers.py:496
↓ 3 callersFunctioncreate_custom_diffusion_layers
(model, mock_weights: bool = True)
diffusers/tests/models/unets/test_models_unet_2d_condition.py:303
↓ 3 callersMethodcreate_model
:param model_type: a string specifying which model to load. [dino_vits8 | dino_vits16 | dino_vitb8 | dino_vitb16 |
C_score/model_utils/extractor_dino.py:57
↓ 3 callersMethodcreate_options_prompt
(self, row_data, option_candidate)
llava/eval/lmms-eval/lmms_eval/tasks/mmbench/mmbench_evals.py:25
↓ 3 callersFunctioncreate_unet_diffusers_config
Creates a config for the diffusers based on the config of the LDM model.
diffusers/examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:237
↓ 3 callersFunctiondelete_adapter_layers
(model, adapter_name)
diffusers/src/diffusers/utils/peft_utils.py:216
↓ 3 callersMethoddelete_adapters
Args: Deletes the LoRA layers of `adapter_name` for the unet and text-encoder(s). adapter_names (`Union[List[str], str]`)
diffusers/src/diffusers/loaders/lora.py:1049
↓ 3 callersFunctiondetect_language
helper function to detect language(s) of prompt
diffusers/examples/community/multilingual_stable_diffusion.py:26
↓ 3 callersMethoddevice
(self)
llava/eval/lmms-eval/lmms_eval/models/xcomposer2_4KHD.py:124
↓ 3 callersMethoddevice
(self)
llava/eval/lmms-eval/lmms_eval/models/fuyu.py:135
↓ 3 callersMethoddisable_adapters
r""" Disable all adapters attached to the model and fallback to inference with the base model only. If you are not familiar with adap
diffusers/src/diffusers/loaders/peft.py:123
↓ 3 callersMethoddisable_attention_slicing
r""" Disable sliced attention computation. If `enable_attention_slicing` was previously called, attention is computed in one step.
diffusers/src/diffusers/pipelines/pipeline_utils.py:1743
↓ 3 callersMethoddisable_free_init
Disables the FreeInit mechanism if enabled.
diffusers/src/diffusers/pipelines/free_init_utils.py:66
↓ 3 callersMethoddisable_interattn
(self)
diffusers/examples/community/fresco_v2v.py:936
↓ 3 callersMethoddisable_intraattn
(self)
diffusers/examples/community/fresco_v2v.py:913
↓ 3 callersFunctiondisplayQuestion
(index)
llava/eval/webpage/script.js:110
↓ 3 callersMethoddpm_solver_first_order_update
One step for the first-order DPMSolver (equivalent to DDIM). Args: model_output (`torch.Tensor`): The di
diffusers/src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:612
↓ 3 callersMethoddummy_model
(self)
diffusers/tests/schedulers/test_scheduler_flax.py:66
↓ 3 callersMethodenable_forward_chunking
Sets the attention processor to use [feed forward chunking](https://huggingface.co/blog/reformer#2-chunked-feed-forward-layers).
diffusers/src/diffusers/models/unets/unet_i2vgen_xl.py:381
↓ 3 callersMethodenable_free_init
Enables the FreeInit mechanism as in https://arxiv.org/abs/2312.07537. This implementation has been adapted from the [official repository](ht
diffusers/src/diffusers/pipelines/free_init_utils.py:27
↓ 3 callersMethodencode
(self, prefix)
diffusers/src/diffusers/pipelines/unidiffuser/modeling_text_decoder.py:166
↓ 3 callersMethodencode
Reverse the denoising step process to recover a noisy image from the generated image. Args: images (`List[PIL Image]`):
diffusers/src/diffusers/pipelines/deprecated/audio_diffusion/pipeline_audio_diffusion.py:271
↓ 3 callersFunctionencode_prompt
(text_encoder, input_ids)
diffusers/examples/amused/train_amused.py:412
↓ 3 callersMethodencode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
diffusers/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:205
← previousnext →901–1,000 of 12,826, ranked by callers