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

↓ 11 callersMethodto_np
(self, image)
diffusers/tests/others/test_image_processor.py:48
↓ 11 callersFunctionunwrap_model
(model)
diffusers/examples/dreambooth/train_dreambooth.py:947
↓ 11 callersFunctionunwrap_model
(model)
diffusers/examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:990
↓ 10 callersMethod__init__
( self, query_dim: int, cross_attention_dim: Optional[int] = None, heads: int
diffusers/src/diffusers/models/attention_processor.py:94
↓ 10 callersMethodcheck_over_configs
(self, time_step=0, **config)
diffusers/tests/schedulers/test_scheduler_flax.py:384
↓ 10 callersFunctionconvert_vae_block_state_dict
(old_state_dict, prefix_from, new_state_dict, prefix_to)
diffusers/scripts/convert_amused.py:476
↓ 10 callersFunctiondisable_torch_init
Disable the redundant torch default initialization to accelerate model creation.
llava/utils.py:93
↓ 10 callersFunctionflow_warp
(feature, flow, mask=False, mode="bilinear", padding_mode="zeros")
diffusers/examples/community/fresco_v2v.py:115
↓ 10 callersMethodfrom_unet
r""" Instantiate a [`ControlNetModel`] from [`UNet2DConditionModel`]. Parameters: unet (`UNet2DConditionModel`):
diffusers/src/diffusers/models/controlnet.py:445
↓ 10 callersMethodget_dummy_components
(self)
diffusers/tests/pipelines/unidiffuser/test_unidiffuser.py:89
↓ 10 callersMethodget_dummy_inputs
(self, seed=0)
diffusers/tests/pipelines/stable_diffusion/test_onnx_stable_diffusion.py:42
↓ 10 callersMethodget_dummy_inputs
(self, device, seed=0)
diffusers/tests/pipelines/animatediff/test_animatediff_video2video.py:109
↓ 10 callersMethodget_inputs
(self, device, generator_device="cpu", dtype=torch.float32, seed=0)
diffusers/tests/pipelines/stable_diffusion/test_stable_diffusion_img2img.py:408
↓ 10 callersMethodget_scheduler_config
(self, **kwargs)
diffusers/tests/schedulers/test_scheduler_unipc.py:19
↓ 10 callersFunctionis_librosa_available
()
diffusers/src/diffusers/utils/import_utils.py:378
↓ 10 callersMethodload_lora_into_text_encoder
This will load the LoRA layers specified in `state_dict` into `text_encoder` Parameters: state_dict (`dict`):
diffusers/src/diffusers/loaders/lora.py:407
↓ 10 callersFunctionload_model_dict_into_meta
( model, state_dict: OrderedDict, device: Optional[Union[str, torch.device]] = None, dtype: Op
diffusers/src/diffusers/models/model_loading_utils.py:133
↓ 10 callersFunctionmake_image_grid
Prepares a single grid of images. Useful for visualization purposes.
diffusers/src/diffusers/utils/pil_utils.py:53
↓ 10 callersMethodpad_sequence
(self, input_ids, batch_first, padding_value)
llava/eval/lmms-eval/lmms_eval/models/llava.py:181
↓ 10 callersMethodpreprocess
(self, expression1, expression2)
llava/eval/lmms-eval/lmms_eval/tasks/olympiadbench/olympiadbench_evals.py:286
↓ 10 callersFunctionpreprocess_kps_pad
(kps, img_width, img_height, size)
C_score/utils/utils_dataset.py:13
↓ 10 callersMethodprogress_bar
(self, iterable=None, total=None)
diffusers/src/diffusers/pipelines/kandinsky/pipeline_kandinsky_combined.py:206
↓ 10 callersFunctionrenew_resnet_paths
Updates paths inside resnets to the new naming scheme (local renaming)
diffusers/scripts/convert_svd_to_diffusers.py:223
↓ 10 callersFunctionresize
(img, target_res=224, resize=True, to_pil=True, edge=False)
C_score/utils/utils_correspondence.py:75
↓ 10 callersFunctionrun_command
Runs `command` with `subprocess.check_output` and will potentially return the `stdout`. Will also properly capture if an error occurred while
diffusers/benchmarks/run_all.py:19
↓ 10 callersMethodset_chunk_feed_forward
(self, chunk_size: Optional[int], dim: int = 0)
diffusers/src/diffusers/models/transformers/hunyuan_transformer_2d.py:170
↓ 10 callersFunctionshave_segments
Removes segments. Positive values shave the first segments, negative shave the last segments.
diffusers/scripts/convert_ddpm_original_checkpoint_to_diffusers.py:9
↓ 10 callersMethodsigmoid
(theta0, theta1, theta2, alpha)
diffusers/examples/community/checkpoint_merger.py:273
↓ 9 callersFunction_add_variant
(weights_name: str, variant: Optional[str] = None)
diffusers/src/diffusers/utils/hub_utils.py:271
↓ 9 callersFunction_configure_library_root_logger
()
diffusers/src/diffusers/utils/logging.py:77
↓ 9 callersMethod_sigma_to_alpha_sigma_t
(self, sigma)
diffusers/src/diffusers/schedulers/scheduling_edm_dpmsolver_multistep.py:357
↓ 9 callersMethod_test_marigold_depth
( self, is_fp16: bool = True, device: str = "cuda", generator_seed: int = 0,
diffusers/tests/pipelines/marigold/test_marigold_depth.py:300
↓ 9 callersMethod_test_marigold_normals
( self, is_fp16: bool = True, device: str = "cuda", generator_seed: int = 0,
diffusers/tests/pipelines/marigold/test_marigold_normals.py:300
↓ 9 callersFunctionapply_freeu
Applies the FreeU mechanism as introduced in https: //arxiv.org/abs/2309.11497. Adapted from the official code repository: https://github.com/Chen
diffusers/src/diffusers/utils/torch_utils.py:124
↓ 9 callersFunctionbackend_manual_seed
(device: str, seed: int)
diffusers/src/diffusers/utils/testing_utils.py:965
↓ 9 callersMethodcheck_dims
(self, batch_size, image_height, image_width)
diffusers/examples/community/stable_diffusion_tensorrt_txt2img.py:258
↓ 9 callersMethodcheck_over_configs
(self, time_step=0, **config)
diffusers/tests/schedulers/test_scheduler_edm_dpmsolver_multistep.py:37
↓ 9 callersFunctionconvert_resnet
(checkpoint, new_checkpoint, old_prefix, new_prefix, has_skip=False)
diffusers/scripts/convert_consistency_to_diffusers.py:123
↓ 9 callersMethoddisable_lora
(self)
diffusers/src/diffusers/loaders/lora.py:1021
↓ 9 callersFunctiondoc_to_visual
(doc)
llava/eval/lmms-eval/lmms_eval/tasks/iconqa/utils.py:15
↓ 9 callersMethoddummy_cond_unet
(self, sample_size=32)
diffusers/tests/pipelines/test_pipelines.py:1094
↓ 9 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.py:302
↓ 9 callersMethodflush
(self)
llava/utils.py:87
↓ 9 callersMethodfull_loop
(self, scheduler=None, **config)
diffusers/tests/schedulers/test_scheduler_dpm_multi.py:103
↓ 9 callersMethodfuse_projections
(self, fuse=True)
diffusers/src/diffusers/models/attention_processor.py:735
↓ 9 callersMethodget_batched
Generates and yields batches from the reordered array. Parameters: - n (int): The size of each batch. Defaults to 1.
llava/eval/lmms-eval/lmms_eval/utils.py:791
↓ 9 callersFunctionget_down_block
( down_block_type: str, num_layers: int, in_channels: int, out_channels: int, temb_channel
diffusers/src/diffusers/models/unets/unet_1d_blocks.py:626
↓ 9 callersMethodget_dummy_components
(self)
diffusers/tests/pipelines/stable_diffusion_2/test_stable_diffusion_depth.py:81
↓ 9 callersMethodget_dummy_components
(self, seed=0)
diffusers/tests/pipelines/text_to_video_synthesis/test_text_to_video_zero_sdxl.py:54
↓ 9 callersMethodget_dummy_inputs
(self, device, seed=0)
diffusers/tests/pipelines/stable_diffusion_3/test_pipeline_stable_diffusion_3.py:103
↓ 9 callersMethodget_dummy_inputs
(self, device, seed=0)
diffusers/tests/pipelines/animatediff/test_animatediff.py:114
↓ 9 callersMethodget_dummy_inputs
(self, device, seed=0)
diffusers/tests/pipelines/pia/test_pia.py:118
↓ 9 callersMethodget_dummy_inputs
(self, device, seed=0)
diffusers/tests/pipelines/controlnet_xs/test_controlnetxs_sdxl.py:155
↓ 9 callersMethodget_inputs
(self, device, generator_device="cpu", dtype=torch.float32, seed=0)
diffusers/tests/pipelines/stable_diffusion_2/test_stable_diffusion.py:324
↓ 9 callersMethodget_inputs
(self, device, generator_device="cpu", dtype=torch.float32, seed=0)
diffusers/tests/pipelines/stable_diffusion/test_stable_diffusion_inpaint.py:608
↓ 9 callersMethodget_inputs
(self, device, generator_device="cpu", dtype=torch.float32, seed=0)
diffusers/tests/pipelines/stable_diffusion/test_stable_diffusion_inpaint.py:797
↓ 9 callersMethodget_scheduler_config
(self, **kwargs)
diffusers/tests/schedulers/test_scheduler_dpm_single.py:19
↓ 9 callersMethodget_scheduler_config
(self, **kwargs)
diffusers/tests/schedulers/test_scheduler_ddpm_parallel.py:25
↓ 9 callersMethodget_scheduler_config
(self, **kwargs)
diffusers/tests/schedulers/test_scheduler_dpm_multi.py:19
↓ 9 callersFunctionget_up_block
( up_block_type: str, num_layers: int, in_channels: int, out_channels: int, temb_channels: int, add_upsamp
diffusers/src/diffusers/models/unets/unet_1d_blocks.py:651
↓ 9 callersMethodget_vision_tower
(self)
llava/model/llava_arch.py:102
↓ 9 callersMethodlinear
(x)
diffusers/examples/community/dps_pipeline.py:203
↓ 9 callersFunctionload_state_dict
Reads a checkpoint file, returning properly formatted errors if they arise.
diffusers/src/diffusers/models/model_loading_utils.py:98
↓ 9 callersFunctionmmupd_results_eval
(results, args, upd_type, question_type)
llava/eval/lmms-eval/lmms_eval/tasks/mmupd/utils.py:139
↓ 9 callersMethodnumpy_to_pt
Convert a NumPy image to a PyTorch tensor.
diffusers/src/diffusers/image_processor.py:133
↓ 9 callersMethodprepare_extra_step_kwargs
(self, generator, eta)
diffusers/examples/community/fresco_v2v.py:1702
↓ 9 callersMethodprepare_init_args_and_inputs_for_common
(self)
diffusers/tests/models/unets/test_models_unet_motion.py:66
↓ 9 callersMethodremove_all_hooks
r""" Removes all hooks that were added when using `enable_sequential_cpu_offload` or `enable_model_cpu_offload`.
diffusers/src/diffusers/pipelines/pipeline_utils.py:1006
↓ 9 callersFunctionto_np
(tensor)
diffusers/tests/pipelines/text_to_video_synthesis/test_text_to_video_zero_sdxl.py:39
↓ 9 callersFunctionto_np
(tensor)
diffusers/tests/pipelines/animatediff/test_animatediff.py:29
↓ 9 callersFunctionto_np
(tensor)
diffusers/tests/pipelines/animatediff/test_animatediff_video2video.py:24
↓ 9 callersMethodto_np
(self, video)
diffusers/tests/others/test_video_processor.py:76
↓ 9 callersFunctiontokenize_prompt
(tokenizer, prompt)
diffusers/examples/dreambooth/train_dreambooth_sd3.py:832
↓ 9 callersFunctionunwrap_model
(model)
diffusers/examples/dreambooth/train_dreambooth_lora_sdxl.py:1208
↓ 9 callersFunctionunwrap_model
(model)
diffusers/examples/dreambooth/train_dreambooth_lora.py:933
↓ 9 callersFunctionunwrap_model
(model)
diffusers/examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1282
↓ 9 callersFunctionunwrap_model
(model)
diffusers/examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:976
↓ 8 callersMethod__init__
( self, in_channels: int = 3, channels: List[int] = [320, 640, 1280, 1280], nu
diffusers/src/diffusers/models/adapter.py:245
↓ 8 callersMethod__init__
( self, in_channels: int = 4, time_embedding_dim: int = 1536, groups: int = 32
diffusers/src/diffusers/models/unets/unet_kandinsky3.py:51
↓ 8 callersMethod_get_dummy_image_embeds
(self, cross_attention_dim: int = 32)
diffusers/tests/pipelines/test_pipelines_common.py:242
↓ 8 callersMethod_sigma_to_alpha_sigma_t
(self, sigma)
diffusers/src/diffusers/schedulers/scheduling_unipc_multistep.py:421
↓ 8 callersMethodcheck_inputs
( self, prompt, image, callback_steps, negative_prompt=None, p
diffusers/examples/community/fresco_v2v.py:1719
↓ 8 callersMethodcheck_over_configs
(self, time_step=0, **config)
diffusers/tests/schedulers/test_scheduler_unipc.py:33
↓ 8 callersFunctioncoco_aggregation_result
(results, metric, args)
llava/eval/lmms-eval/lmms_eval/tasks/coco_cap/utils.py:45
↓ 8 callersMethoddoc_to_target
(self, doc)
llava/eval/lmms-eval/lmms_eval/api/task.py:349
↓ 8 callersMethodenable_tiling
r""" Enable tiled VAE decoding. When this option is enabled, the VAE will split the input tensor into tiles to compute decoding and en
diffusers/src/diffusers/models/autoencoders/autoencoder_kl.py:136
↓ 8 callersMethodencode
(self, token_ids)
diffusers/src/diffusers/pipelines/deprecated/spectrogram_diffusion/midi_utils.py:127
↓ 8 callersFunctionfind_largest_factor
(number, max_factor)
diffusers/src/diffusers/models/controlnet_xs.py:1934
↓ 8 callersFunctionflickr_aggregation_result
(results, metric, args)
llava/eval/lmms-eval/lmms_eval/tasks/flickr30k/utils.py:43
↓ 8 callersMethodfull_loop
(self, scheduler=None, **config)
diffusers/tests/schedulers/test_scheduler_dpm_single.py:100
↓ 8 callersMethodget_default_height_width
This function return the height and width that are downscaled to the next integer multiple of `vae_scale_factor`. Args:
diffusers/src/diffusers/image_processor.py:426
↓ 8 callersMethodget_dummy_components
(self)
diffusers/tests/pipelines/stable_diffusion_xl/test_stable_diffusion_xl_img2img.py:524
↓ 8 callersMethodget_dummy_components
(self)
diffusers/tests/pipelines/musicldm/test_musicldm.py:68
↓ 8 callersMethodget_dummy_components
(self, time_cond_proj_dim=None)
diffusers/tests/pipelines/controlnet/test_controlnet_sdxl.py:78
↓ 8 callersMethodget_dummy_components
(self)
diffusers/tests/pipelines/kandinsky2_2/test_kandinsky_combined.py:60
↓ 8 callersMethodget_dummy_components
(self, time_cond_proj_dim=None)
diffusers/tests/pipelines/stable_diffusion/test_stable_diffusion_img2img.py:116
↓ 8 callersMethodget_dummy_components
(self)
diffusers/tests/pipelines/animatediff/test_animatediff_video2video.py:48
↓ 8 callersMethodget_dummy_components
(self)
diffusers/tests/pipelines/kandinsky/test_kandinsky_combined.py:55
↓ 8 callersMethodget_dummy_components
(self)
diffusers/tests/pipelines/audioldm2/test_audioldm2.py:73
↓ 8 callersMethodget_dummy_inputs
(self, device, seed=0, pil_image=True)
diffusers/tests/pipelines/unclip/test_unclip_image_variation.py:227
← previousnext →301–400 of 12,826, ranked by callers