MCPcopy Create free account

hub / github.com/YesianRohn/TextSSR / functions

Functions13,352 in github.com/YesianRohn/TextSSR

↓ 11 callersFunction_add_variant
(weights_name: str, variant: Optional[str] = None)
diffusers/src/diffusers/utils/hub_utils.py:271
↓ 11 callersMethod_sigma_to_alpha_sigma_t
(self, sigma)
diffusers/src/diffusers/schedulers/scheduling_deis_multistep.py:360
↓ 11 callersMethod_test_inference_batch_consistent
( self, batch_sizes=[2], additional_params_copy_to_batched_inputs=["num_inference_steps"], batch_gener
diffusers/tests/pipelines/test_pipelines_common.py:1060
↓ 11 callersMethod_test_marigold_depth
( self, generator_seed: int = 0, expected_slice: np.ndarray = None, atol: floa
diffusers/tests/pipelines/marigold/test_marigold_depth.py:143
↓ 11 callersMethod_test_marigold_normals
( self, generator_seed: int = 0, expected_slice: np.ndarray = None, atol: floa
diffusers/tests/pipelines/marigold/test_marigold_normals.py:142
↓ 11 callersMethodcheck_over_configs
(self, time_step=0, **config)
diffusers/tests/schedulers/test_scheduler_dpm_single.py:39
↓ 11 callersFunctioncheck_qkv_fusion_matches_attn_procs_length
(model, original_attn_processors)
diffusers/tests/pipelines/test_pipelines_common.py:74
↓ 11 callersFunctioncheck_qkv_fusion_processors_exist
(model)
diffusers/tests/pipelines/test_pipelines_common.py:79
↓ 11 callersMethoddownsample
Downsamples the provided mask tensor to match the expected dimensions for scaled dot-product attention. If the aspect ratio of the ma
diffusers/src/diffusers/image_processor.py:970
↓ 11 callersMethodenable_slicing
r""" Enable sliced VAE decoding. When this option is enabled, the VAE will split the input tensor in slices to compute decoding in sev
diffusers/src/diffusers/models/autoencoders/autoencoder_kl.py:159
↓ 11 callersMethodget_dummy_inputs
(self, device, seed=0)
diffusers/tests/pipelines/controlnet/test_controlnet_sdxl_img2img.py:154
↓ 11 callersMethodget_dummy_inputs
(self, device, seed=0)
diffusers/tests/pipelines/pia/test_pia.py:126
↓ 11 callersMethodget_dummy_inputs
(self, device, seed=0)
diffusers/tests/pipelines/pag/test_pag_hunyuan_dit.py:89
↓ 11 callersMethodget_dummy_inputs
(self, device, seed=0)
diffusers/tests/pipelines/pag/test_pag_sd3.py:111
↓ 11 callersMethodget_encoder_hidden_states
(self, seed=0, shape=(4, 77, 768), fp16=False)
diffusers/tests/models/unets/test_models_unet_2d_condition.py:1313
↓ 11 callersMethodget_latents
(self, seed=0, shape=(4, 4, 64, 64), fp16=False)
diffusers/tests/models/unets/test_models_unet_2d_condition.py:1215
↓ 11 callersMethodget_scheduler_config
(self, **kwargs)
diffusers/tests/schedulers/test_scheduler_lcm.py:16
↓ 11 callersMethodget_unet_model
(self, fp16=False, model_id="CompVis/stable-diffusion-v1-4")
diffusers/tests/models/unets/test_models_unet_2d_condition.py:1220
↓ 11 callersFunctionis_accelerate_version
Compares the current Accelerate version to a given reference with an operation. Args: operation (`str`): A string repres
diffusers/src/diffusers/utils/import_utils.py:718
↓ 11 callersMethodlinear
(x)
diffusers/examples/community/dps_pipeline.py:203
↓ 11 callersFunctionmake_image_grid
Prepares a single grid of images. Useful for visualization purposes.
diffusers/src/diffusers/utils/pil_utils.py:53
↓ 11 callersMethodprogress_bar
(self, iterable=None, total=None)
diffusers/src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_combined.py:193
↓ 11 callersMethodset_attention_slice
r""" Enable sliced attention computation. When this option is enabled, the attention module splits the input tensor in slices to comp
diffusers/src/diffusers/models/controlnet.py:597
↓ 11 callersMethodset_chunk_feed_forward
(self, chunk_size: Optional[int], dim: int = 0)
diffusers/src/diffusers/models/transformers/hunyuan_transformer_2d.py:161
↓ 11 callersFunctionto_np
(tensor)
diffusers/tests/pipelines/animatediff/test_animatediff_sparsectrl.py:34
↓ 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, config: ChatGLMConfig, device=None)
diffusers/src/diffusers/pipelines/kolors/text_encoder.py:441
↓ 10 callersMethod_apply_free_init
( self, latents: torch.Tensor, free_init_iteration: int, num_inference_steps:
diffusers/src/diffusers/pipelines/free_init_utils.py:138
↓ 10 callersFunction_convert_to_ai_toolkit
(sds_sd, ait_sd, sds_key, ait_key)
diffusers/src/diffusers/loaders/lora_conversion_utils.py:337
↓ 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 callersMethoddisable_free_noise
r"""Disable the FreeNoise sampling mechanism.
diffusers/src/diffusers/pipelines/free_noise_utils.py:518
↓ 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 callersFunctionget_adapter_name
(model)
diffusers/src/diffusers/utils/peft_utils.py:195
↓ 10 callersMethodget_crop_region
Finds a rectangular region that contains all masked ares in an image, and expands region to match the aspect ratio of the original im
diffusers/src/diffusers/image_processor.py:193
↓ 10 callersMethodget_dummy_components
(self)
diffusers/tests/pipelines/unidiffuser/test_unidiffuser.py:89
↓ 10 callersMethodget_dummy_inputs
(self, device, seed=0)
diffusers/tests/pipelines/pixart_sigma/test_pixart.py:95
↓ 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: int = 0, num_frames: int = 2)
diffusers/tests/pipelines/animatediff/test_animatediff_sparsectrl.py:136
↓ 10 callersMethodget_dummy_inputs
(self, device, seed: int = 0, num_frames: int = 8)
diffusers/tests/pipelines/cogvideo/test_cogvideox_video2video.py:114
↓ 10 callersMethodget_dummy_inputs
(self, device, seed=0)
diffusers/tests/pipelines/cogvideo/test_cogvideox_image2video.py:127
↓ 10 callersMethodget_dummy_inputs
(self, device, seed=0)
diffusers/tests/pipelines/cogvideo/test_cogvideox.py:120
↓ 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 callersFunctionget_peft_kwargs
(rank_dict, network_alpha_dict, peft_state_dict, is_unet=True)
diffusers/src/diffusers/utils/peft_utils.py:150
↓ 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:383
↓ 10 callersMethodprepare_extra_step_kwargs
(self, generator, eta)
diffusers/examples/community/fresco_v2v.py:1702
↓ 10 callersMethodprepare_init_args_and_inputs_for_common
(self)
diffusers/tests/models/unets/test_models_unet_motion.py:66
↓ 10 callersFunctionrenew_resnet_paths
Updates paths inside resnets to the new naming scheme (local renaming)
diffusers/scripts/convert_svd_to_diffusers.py:223
↓ 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 callersMethodscale_noise
Forward process in flow-matching Args: sample (`torch.FloatTensor`): The input sample. times
diffusers/src/diffusers/schedulers/scheduling_flow_match_heun_discrete.py:110
↓ 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:270
↓ 10 callersMethodto
(self, torch_device: Optional[Union[str, torch.device]] = None, silence_dtype_warnings: bool = False)
diffusers/examples/community/stable_diffusion_tensorrt_inpaint.py:963
↓ 10 callersFunctionunwrap_model
(model)
diffusers/examples/dreambooth/train_dreambooth_flux.py:1157
↓ 9 callersFunction_configure_library_root_logger
()
diffusers/src/diffusers/utils/logging.py:77
↓ 9 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_base.py:202
↓ 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:303
↓ 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:998
↓ 9 callersMethodcheck_dims
(self, batch_size, image_height, image_width)
diffusers/examples/community/stable_diffusion_tensorrt_txt2img.py:245
↓ 9 callersMethodcheck_inputs
( self, prompt, image, callback_steps, negative_prompt=None, p
diffusers/examples/community/fresco_v2v.py:1719
↓ 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
Disables the active LoRA layers of the underlying model. Example: ```py from diffusers import AutoPipelineForText2I
diffusers/src/diffusers/loaders/peft.py:316
↓ 9 callersMethoddisable_slicing
r""" Disable sliced VAE decoding. If `enable_slicing` was previously enabled, this method will go back to computing decoding in one st
diffusers/src/diffusers/models/autoencoders/autoencoder_kl.py:166
↓ 9 callersMethoddummy_cond_unet
(self, sample_size=32)
diffusers/tests/pipelines/test_pipelines.py:1198
↓ 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:310
↓ 9 callersMethodfull_loop
(self, scheduler=None, **config)
diffusers/tests/schedulers/test_scheduler_dpm_multi.py:103
↓ 9 callersFunctionget_1d_rotary_pos_embed
Precompute the frequency tensor for complex exponentials (cis) with given dimensions. This function calculates a frequency tensor with compl
diffusers/src/diffusers/models/embeddings.py:577
↓ 9 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
↓ 9 callersMethodget_dummy_components
(self)
diffusers/tests/pipelines/stable_diffusion_2/test_stable_diffusion_depth.py:78
↓ 9 callersMethodget_dummy_components
(self)
diffusers/tests/pipelines/animatediff/test_animatediff_sparsectrl.py:58
↓ 9 callersMethodget_dummy_components
(self)
diffusers/tests/pipelines/pia/test_pia.py:59
↓ 9 callersMethodget_dummy_components
(self)
diffusers/tests/pipelines/pag/test_pag_pixart_sigma.py:60
↓ 9 callersMethodget_dummy_inputs
(self, device, seed=0)
diffusers/tests/pipelines/stable_diffusion_3/test_pipeline_stable_diffusion_3.py:107
↓ 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/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:799
↓ 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 callersMethodload_attn_procs
r""" Load pretrained attention processor layers into [`UNet2DConditionModel`]. Attention processor layers have to be defined in
diffusers/src/diffusers/loaders/unet.py:69
↓ 9 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_pipeline.py:1379
↓ 9 callersMethodnumpy_to_pt
Convert a NumPy image to a PyTorch tensor.
diffusers/src/diffusers/image_processor.py:133
↓ 9 callersMethodpreprocess_video
r""" Preprocesses input video(s). Args: video (`List[PIL.Image]`, `List[List[PIL.Image]]`, `torch.Tensor`, `np.array`, `L
diffusers/src/diffusers/video_processor.py:28
↓ 9 callersMethodpush_to_hub
Upload model, scheduler, or pipeline files to the 🤗 Hugging Face Hub. Parameters: repo_id (`str`): The n
diffusers/src/diffusers/utils/hub_utils.py:546
↓ 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:974
↓ 9 callersFunctionto_np
(tensor)
diffusers/tests/pipelines/text_to_video_synthesis/test_text_to_video_zero_sdxl.py:36
↓ 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:848
↓ 9 callersFunctiontokenize_prompt
(tokenizer, prompt)
diffusers/examples/dreambooth/train_dreambooth_lora_sd3.py:876
↓ 9 callersFunctionunwrap_model
(model)
diffusers/examples/dreambooth/train_dreambooth_lora_sdxl.py:1209
↓ 9 callersFunctionunwrap_model
(model)
diffusers/examples/dreambooth/train_dreambooth_lora.py:934
↓ 9 callersFunctionunwrap_model
(model)
diffusers/examples/dreambooth/train_dreambooth_lora_sd3.py:1221
← previousnext →301–400 of 13,352, ranked by callers