MCPcopy Create free account

hub / github.com/YesianRohn/TextSSR / functions

Functions13,352 in github.com/YesianRohn/TextSSR

↓ 1 callersMethodsetUp
(self)
diffusers/tests/pipelines/controlnet/test_controlnet.py:704
↓ 1 callersMethodsetUp
(self)
diffusers/tests/pipelines/semantic_stable_diffusion/test_semantic_diffusion.py:40
↓ 1 callersMethodsetUp
(self)
diffusers/tests/pipelines/stable_diffusion/test_stable_diffusion_img2img.py:398
↓ 1 callersMethodsetUp
(self)
diffusers/tests/pipelines/stable_diffusion_image_variation/test_stable_diffusion_image_variation.py:167
↓ 1 callersMethodsetUp
(self)
diffusers/tests/pipelines/stable_diffusion_ldm3d/test_stable_diffusion_ldm3d.py:261
↓ 1 callersMethodsetUp
(self)
diffusers/tests/pipelines/kandinsky/test_kandinsky_img2img.py:368
↓ 1 callersMethodsetUpClass
(cls)
diffusers/tests/pipelines/stable_diffusion_2/test_stable_diffusion_attend_and_excite.py:69
↓ 1 callersFunctionset_adapters_for_text_encoder
Sets the adapter layers for the text encoder. Args: adapter_names (`List[str]` or `str`): The names of the adapters to u
diffusers/src/diffusers/loaders/lora_base.py:105
↓ 1 callersMethodset_attention_slice
(self, slice_size: Optional[int])
diffusers/src/diffusers/pipelines/pipeline_utils.py:1721
↓ 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
diffusers/src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:901
↓ 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
diffusers/src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:611
↓ 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
diffusers/src/diffusers/models/controlnet_sparsectrl.py:528
↓ 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
diffusers/src/diffusers/models/unets/unet_3d_condition.py:318
↓ 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
diffusers/src/diffusers/models/unets/unet_2d_condition.py:811
↓ 1 callersMethodset_attn_processor
r""" Sets the attention processor to use to compute attention. Parameters: processor (`dict` of `AttentionProcessor` or o
diffusers/src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:560
↓ 1 callersMethodset_attn_processor
r""" Sets the attention processor to use to compute attention. Parameters: processor (`dict` of `AttentionProcessor` or o
diffusers/src/diffusers/models/controlnet.py:546
↓ 1 callersMethodset_attn_processor
r""" Sets the attention processor to use to compute attention. Parameters: processor (`dict` of `AttentionProcessor` or o
diffusers/src/diffusers/models/controlnet_sparsectrl.py:477
↓ 1 callersMethodset_attn_processor
r""" Sets the attention processor to use to compute attention. Parameters: processor (`dict` of `AttentionProcessor` or o
diffusers/src/diffusers/models/transformers/prior_transformer.py:195
↓ 1 callersMethodset_attn_processor
r""" Sets the attention processor to use to compute attention. Parameters: processor (`dict` of `AttentionProcessor` or o
diffusers/src/diffusers/models/transformers/stable_audio_transformer.py:307
↓ 1 callersMethodset_attn_processor
r""" Sets the attention processor to use to compute attention. Parameters: processor (`dict` of `AttentionProcessor` or o
diffusers/src/diffusers/models/unets/unet_spatio_temporal_condition.py:276
↓ 1 callersMethodset_attn_processor
r""" Sets the attention processor to use to compute attention. Parameters: processor (`dict` of `AttentionProcessor` or o
diffusers/src/diffusers/models/unets/unet_kandinsky3.py:168
↓ 1 callersMethodset_attn_processor
r""" Sets the attention processor to use to compute attention. Parameters: processor (`dict` of `AttentionProcessor` or o
diffusers/src/diffusers/models/autoencoders/autoencoder_kl_temporal_decoder.py:269
↓ 1 callersMethodset_attn_processor
r""" Sets the attention processor to use to compute attention. Parameters: processor (`dict` of `AttentionProcessor` or o
diffusers/src/diffusers/models/autoencoders/consistency_decoder_vae.py:227
↓ 1 callersMethodset_default_attn_processor
Disables custom attention processors and sets the default attention implementation.
diffusers/src/diffusers/pipelines/wuerstchen/modeling_wuerstchen_prior.py:126
↓ 1 callersMethodset_image_mode
r"""Manually set the generation mode to unconditional ("marginal") image generation.
diffusers/src/diffusers/pipelines/unidiffuser/pipeline_unidiffuser.py:252
↓ 1 callersMethodset_image_proj_model
(self, model_ckpt, image_emb_dim=512, num_tokens=16)
diffusers/examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:471
↓ 1 callersMethodset_image_proj_model
(self, model_ckpt, image_emb_dim=512, num_tokens=16)
diffusers/examples/community/pipeline_stable_diffusion_xl_instantid.py:471
↓ 1 callersMethodset_input_embeddings
(self, value)
diffusers/src/diffusers/pipelines/blip_diffusion/modeling_blip2.py:457
↓ 1 callersMethodset_ip_adapter
(self, model_ckpt, num_tokens, scale)
diffusers/examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:493
↓ 1 callersMethodset_ip_adapter
(self, model_ckpt, num_tokens, scale)
diffusers/examples/community/pipeline_stable_diffusion_xl_instantid.py:493
↓ 1 callersMethodset_progress_bar_config
(self, **kwargs)
diffusers/src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade_combined.py:148
↓ 1 callersMethodset_resolution
Set resolution. Args: x_res (`int`): x resolution of spectrogram (time). y_res (`int`):
diffusers/src/diffusers/pipelines/deprecated/audio_diffusion/mel.py:80
↓ 1 callersMethodset_sigmas
Sets the noise scales used for the diffusion chain. Supporting function to be run before inference. The sigmas control the weight of
diffusers/src/diffusers/schedulers/scheduling_sde_ve_flax.py:129
↓ 1 callersMethodset_text_mode
r"""Manually set the generation mode to unconditional ("marginal") text generation.
diffusers/src/diffusers/pipelines/unidiffuser/pipeline_unidiffuser.py:248
↓ 1 callersMethodset_timesteps
Sets the discrete timesteps used for the diffusion chain (to be run before inference). Args: num_inference_steps (`int`)
diffusers/src/diffusers/schedulers/scheduling_ipndm.py:86
↓ 1 callersMethodset_timesteps
Sets the discrete timesteps used for the diffusion chain (to be run before inference). Args: num_inference_steps (`int`)
diffusers/src/diffusers/schedulers/scheduling_lms_discrete.py:263
↓ 1 callersMethodset_timesteps
Sets the discrete timesteps used for the diffusion chain (to be run before inference). Args: num_inference_steps (`int`)
diffusers/src/diffusers/schedulers/scheduling_dpmsolver_sde.py:316
↓ 1 callersMethodset_timesteps
Sets the continuous timesteps used for the diffusion chain. Supporting function to be run before inference. Args: state
diffusers/src/diffusers/schedulers/scheduling_sde_ve_flax.py:110
↓ 1 callersMethodset_timesteps
Sets the discrete timesteps used for the diffusion chain (to be run before inference). Args: num_inference_steps (`int`)
diffusers/src/diffusers/schedulers/scheduling_k_dpm_2_ancestral_discrete.py:224
↓ 1 callersMethodset_timesteps
Sets the continuous timesteps used for the diffusion chain (to be run before inference). Args: num_inference_steps (`int
diffusers/src/diffusers/schedulers/scheduling_sde_ve.py:106
↓ 1 callersMethodset_timesteps
Sets the discrete timesteps used for the diffusion chain (to be run before inference). Args: num_inference_steps (`int`)
diffusers/src/diffusers/schedulers/scheduling_k_dpm_2_discrete.py:224
↓ 1 callersMethodset_timesteps
Sets the discrete timesteps used for the diffusion chain (to be run before inference). Args: num_inference_steps (`int`)
diffusers/src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:294
↓ 1 callersMethodset_timesteps
Sets the discrete timesteps used for the diffusion chain (to be run before inference). Args: num_inference_steps (`int`)
diffusers/src/diffusers/schedulers/scheduling_heun_discrete.py:243
↓ 1 callersMethodset_timesteps
Sets the discrete timesteps used for the diffusion chain (to be run before inference). Args: num_inference_steps (`int`):
diffusers/examples/community/latent_consistency_txt2img.py:561
↓ 1 callersMethodset_timesteps
Sets the discrete timesteps used for the diffusion chain (to be run before inference). Args: num_inference_steps (`int`):
diffusers/examples/community/latent_consistency_img2img.py:649
↓ 1 callersMethodset_transformer_params
(self, mix_ratio: float = 0.5, condition_types: Tuple = ("text", "image"))
diffusers/src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_dual_guided.py:372
↓ 1 callersFunctionsetup_optimizer
(unet, args)
diffusers/examples/research_projects/pytorch_xla/train_text_to_image_xla.py:422
↓ 1 callersMethodshape
(x)
diffusers/src/diffusers/models/embeddings.py:1312
↓ 1 callersMethodshared_call
( self, attn: Attention, hidden_states: torch.Tensor, encoder_hidden_states: O
diffusers/examples/community/pipeline_sdxl_style_aligned.py:213
↓ 1 callersMethodshifted_scaled_dot_product_attention
( self, attn: Attention, query: torch.Tensor, key: torch.Tensor, value: torch.Tensor )
diffusers/examples/community/pipeline_sdxl_style_aligned.py:205
↓ 1 callersMethodsingle_infer
Perform an individual depth prediction without ensembling. Args: rgb_in (`torch.Tensor`): Input RGB imag
diffusers/examples/community/marigold_depth_estimation.py:318
↓ 1 callersMethodsinglestep_dpm_solver_second_order_update
One step for the second-order singlestep DPMSolver that computes the solution at time `prev_timestep` from the time `timestep_list[-2
diffusers/src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:696
↓ 1 callersMethodsinglestep_dpm_solver_third_order_update
One step for the third-order singlestep DPMSolver that computes the solution at time `prev_timestep` from the time `timestep_list[-3]
diffusers/src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:807
↓ 1 callersMethodsinglestep_dpm_solver_update
One step for the singlestep DPMSolver. Args: model_output_list (`List[torch.Tensor]`): The direct output
diffusers/src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:911
↓ 1 callersFunctionslerp
Find the interpolation point between the 'low' and 'high' values for the given 'val'. See https://en.wikipedia.org/wiki/Slerp for more details on
diffusers/examples/community/unclip_image_interpolation.py:29
↓ 1 callersFunctionslerp
helper function to spherically interpolate two arrays v1 v2
diffusers/examples/community/interpolate_stable_diffusion.py:22
↓ 1 callersFunctionslerp
r""" Spherical Linear Interpolation between two tensors. Args: v0 (`torch.Tensor`): First tensor. v1 (`torch.Tensor`): Second
diffusers/examples/community/pipeline_animatediff_img2video.py:107
↓ 1 callersFunctionsort_imports
Sort the imports defined in the `_import_structure` of a given init. Args: file (`str`): The path to the init to check/fix.
diffusers/utils/custom_init_isort.py:235
↓ 1 callersFunctionsort_imports_in_all_inits
Sort the imports defined in the `_import_structure` of all inits in the repo. Args: check_only (`bool`, *optional*, defaults to `Tru
diffusers/utils/custom_init_isort.py:308
↓ 1 callersFunctionsort_objects_in_import
Sorts the imports in a single import statement. Args: import_statement (`str`): The import statement in which to sort the imports.
diffusers/utils/custom_init_isort.py:177
↓ 1 callersFunctionspherical_dist_loss
(x, y)
diffusers/examples/community/clip_guided_images_mixing_stable_diffusion.py:69
↓ 1 callersFunctionsplit_attentions
(*, weight, bias, split, chunk_size)
diffusers/scripts/convert_shap_e_to_diffusers.py:898
↓ 1 callersFunctionsplit_dims
(xs, height, width)
diffusers/examples/community/regional_prompting_stable_diffusion.py:469
↓ 1 callersFunctionsplit_tensor_along_last_dim
Split a tensor along its last dimension. Arguments: tensor: input tensor. num_partitions: number of partitions to split the tenso
diffusers/src/diffusers/pipelines/kolors/text_encoder.py:240
↓ 1 callersFunctionsqueeze_tile
(tile, original_image, original_slice, slice_x)
diffusers/examples/community/tiled_upscaling.py:75
↓ 1 callersFunctionstable_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
diffusers/src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:1006
↓ 1 callersFunctionstable_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
diffusers/examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:1074
↓ 1 callersFunctionstable_unclip_image_noising_components
Returns the noising components for the img2img and txt2img unclip pipelines. Converts the stability noise augmentor into 1. a `StableUnC
diffusers/src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:1043
↓ 1 callersFunctionstable_unclip_image_noising_components
Returns the noising components for the img2img and txt2img unclip pipelines. Converts the stability noise augmentor into 1. a `StableUnC
diffusers/examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:1111
↓ 1 callersMethodstart_training
(self)
diffusers/examples/research_projects/pytorch_xla/train_text_to_image_xla.py:142
↓ 1 callersFunctionstate_dicts_almost_equal
(sd1, sd2)
diffusers/tests/pipelines/test_pipelines_combined.py:31
↓ 1 callersMethodstep
Predict the sample from the previous timestep by reversing the SDE. This function propagates the sample with the multistep UniPC.
diffusers/src/diffusers/schedulers/scheduling_unipc_multistep.py:899
↓ 1 callersMethodstep
Predict the sample from the previous timestep by reversing the SDE. This function propagates the sample with the singlestep DPMSolver
diffusers/src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:1007
↓ 1 callersMethodstep
Predict the sample from the previous timestep by reversing the SDE. This function propagates the diffusion process from the learned m
diffusers/examples/community/latent_consistency_txt2img.py:594
↓ 1 callersMethodstep
Predict the sample from the previous timestep by reversing the SDE. This function propagates the diffusion process from the learned m
diffusers/examples/community/latent_consistency_img2img.py:686
↓ 1 callersMethodstep_callback
(self, x_t)
diffusers/examples/community/pipeline_prompt2prompt.py:927
↓ 1 callersMethodstep_fn
( self, pixel_values, input_ids, )
diffusers/examples/research_projects/pytorch_xla/train_text_to_image_xla.py:171
↓ 1 callersMethodstep_prk
Step function propagating the sample with the Runge-Kutta method. RK takes 4 forward passes to approximate the solution to the differ
diffusers/src/diffusers/schedulers/scheduling_pndm_flax.py:292
↓ 1 callersMethodstochastic_adams_bashforth_update
One step for the SA-Predictor. Args: model_output (`torch.Tensor`): The direct output from the learned d
diffusers/src/diffusers/schedulers/scheduling_sasolver.py:764
↓ 1 callersMethodstochastic_adams_moulton_update
One step for the SA-Corrector. Args: this_model_output (`torch.Tensor`): The model outputs at `x_t`.
diffusers/src/diffusers/schedulers/scheduling_sasolver.py:891
↓ 1 callersFunctionstr2bool
https://stackoverflow.com/questions/15008758/parsing-boolean-values-with-argparse
diffusers/scripts/convert_consistency_to_diffusers.py:109
↓ 1 callersFunctionstylify
Applies the ruff part of our `make style` command to some code. This formats the code using `ruff format`. As `ruff` does not provide a pytho
diffusers/utils/check_copies.py:103
↓ 1 callersFunctionsummarize_chunk
(query, key, value)
diffusers/src/diffusers/models/attention_flax.py:31
↓ 1 callersFunctionsummary_failures_short
(tr)
diffusers/src/diffusers/utils/testing_utils.py:719
↓ 1 callersFunctionsuper_res_unet_first_steps_model_from_original_config
()
diffusers/scripts/convert_kakao_brain_unclip_to_diffusers.py:399
↓ 1 callersFunctionsuper_res_unet_first_steps_original_checkpoint_to_diffusers_checkpoint
(model, checkpoint)
diffusers/scripts/convert_kakao_brain_unclip_to_diffusers.py:405
↓ 1 callersFunctionsuper_res_unet_last_step_model_from_original_config
()
diffusers/scripts/convert_kakao_brain_unclip_to_diffusers.py:494
↓ 1 callersFunctionsuper_res_unet_last_step_original_checkpoint_to_diffusers_checkpoint
(model, checkpoint)
diffusers/scripts/convert_kakao_brain_unclip_to_diffusers.py:500
↓ 1 callersFunctionsuperres_convert_ldm_unet_checkpoint
Takes a state dict and a config, and returns a converted checkpoint.
diffusers/scripts/convert_if.py:860
↓ 1 callersFunctionsuperres_create_unet_diffusers_config
(original_unet_config)
diffusers/scripts/convert_if.py:778
↓ 1 callersFunctionswap_scale_shift
(weight, dim)
diffusers/scripts/convert_aura_flow_to_diffusers.py:25
↓ 1 callersMethodtarget_size_center_crop
(self, im, new_hw)
diffusers/src/diffusers/pipelines/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:522
↓ 1 callersMethodtarget_size_center_crop
Crop and resize the image to the target size while keeping the center.
diffusers/src/diffusers/pipelines/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:553
↓ 1 callersMethodtearDown
(self)
diffusers/tests/lora/test_lora_layers_sd.py:218
↓ 1 callersMethodtearDown
(self)
diffusers/tests/lora/test_lora_layers_sdxl.py:124
↓ 1 callersMethodtearDown
(self)
diffusers/tests/single_file/test_stable_diffusion_img2img_single_file.py:39
↓ 1 callersMethodtearDown
(self)
diffusers/tests/single_file/test_stable_diffusion_inpaint_single_file.py:35
↓ 1 callersMethodtearDown
(self)
diffusers/tests/single_file/test_stable_diffusion_single_file.py:42
↓ 1 callersMethodtearDown
(self)
diffusers/tests/pipelines/latent_diffusion/test_latent_diffusion.py:146
↓ 1 callersMethodtearDown
(self)
diffusers/tests/pipelines/stable_diffusion_safe/test_safe_diffusion.py:37
← previousnext →4,901–5,000 of 13,352, ranked by callers