Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/YesianRohn/TextSSR
/ functions
Functions
13,352 in github.com/YesianRohn/TextSSR
⨍
Functions
13,352
◇
Types & classes
1,980
↳
Endpoints
6
↓ 2 callers
Method
encode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
diffusers/src/diffusers/pipelines/text_to_video_synthesis/pipeline_text_to_video_synth.py:145
↓ 2 callers
Method
encode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
diffusers/src/diffusers/pipelines/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:180
↓ 2 callers
Method
encode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
diffusers/src/diffusers/pipelines/stable_diffusion_k_diffusion/pipeline_stable_diffusion_k_diffusion.py:183
↓ 2 callers
Method
encode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
diffusers/src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py:300
↓ 2 callers
Method
encode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
diffusers/src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:271
↓ 2 callers
Method
encode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
diffusers/src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:269
↓ 2 callers
Method
encode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
diffusers/src/diffusers/pipelines/controlnet/pipeline_controlnet.py:291
↓ 2 callers
Method
encode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
diffusers/src/diffusers/pipelines/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:259
↓ 2 callers
Method
encode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
diffusers/src/diffusers/pipelines/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:209
↓ 2 callers
Method
encode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `list(int)`): prompt to b
diffusers/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_latent_upscale.py:159
↓ 2 callers
Method
encode_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_depth2img.py:185
↓ 2 callers
Method
encode_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_img2img.py:345
↓ 2 callers
Method
encode_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_inpaint.py:294
↓ 2 callers
Method
encode_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_unclip.py:288
↓ 2 callers
Method
encode_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_unclip_img2img.py:250
↓ 2 callers
Method
encode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
diffusers/src/diffusers/pipelines/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:283
↓ 2 callers
Method
encode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: device: (`torch.device`): torch device
diffusers/src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py:404
↓ 2 callers
Method
encode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: device: (`torch.device`): torch device
diffusers/src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py:498
↓ 2 callers
Method
encode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
diffusers/src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py:242
↓ 2 callers
Method
encode_prompt
( self, device, batch_size, num_images_per_prompt, do_classifier_free_
diffusers/src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade.py:124
↓ 2 callers
Method
encode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
diffusers/src/diffusers/pipelines/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:283
↓ 2 callers
Method
encode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
diffusers/src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py:270
↓ 2 callers
Method
encode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
diffusers/src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:192
↓ 2 callers
Method
encode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
diffusers/src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:187
↓ 2 callers
Method
encode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
diffusers/src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:254
↓ 2 callers
Method
encode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
diffusers/src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:351
↓ 2 callers
Method
encode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
diffusers/src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:311
↓ 2 callers
Method
encode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
diffusers/src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py:252
↓ 2 callers
Method
encode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
diffusers/src/diffusers/pipelines/controlnet_xs/pipeline_controlnet_xs.py:222
↓ 2 callers
Method
encode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
diffusers/examples/community/pipeline_animatediff_ipex.py:169
↓ 2 callers
Method
encode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
diffusers/examples/community/pipeline_stable_diffusion_pag.py:526
↓ 2 callers
Method
encode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
diffusers/examples/community/latent_consistency_interpolate.py:281
↓ 2 callers
Method
encode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
diffusers/examples/community/instaflow_one_step.py:219
↓ 2 callers
Method
encode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
diffusers/examples/community/llm_grounded_diffusion.py:1228
↓ 2 callers
Method
encode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
diffusers/examples/community/pipeline_stable_diffusion_boxdiff.py:559
↓ 2 callers
Method
encode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
diffusers/examples/community/ip_adapter_face_id.py:483
↓ 2 callers
Method
encode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
diffusers/examples/community/pipeline_stable_diffusion_xl_ipex.py:268
↓ 2 callers
Method
encode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
diffusers/examples/community/pipeline_hunyuandit_differential_img2img.py:347
↓ 2 callers
Method
encode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
diffusers/examples/community/pipeline_stable_diffusion_upscale_ldm3d.py:193
↓ 2 callers
Method
encode_video
(self, video, generator, decode_chunk_size: int = 16)
diffusers/src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:502
↓ 2 callers
Method
encode_video
(self, video, generator, decode_chunk_size: int = 16)
diffusers/src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:528
↓ 2 callers
Function
export_to_video
( video_frames: Union[List[np.ndarray], List[PIL.Image.Image]], output_video_path: str = None, fps: int =
diffusers/src/diffusers/utils/export_utils.py:141
↓ 2 callers
Function
extract_imports
Get the imports a given module makes. Args: module_fname (`str`): The name of the file of the module where we want to lo
diffusers/utils/tests_fetcher.py:476
↓ 2 callers
Function
fetch_original_config
(original_config_file, local_files_only=False)
diffusers/src/diffusers/loaders/single_file_utils.py:363
↓ 2 callers
Function
fill_event_start_indices_to_cur_step
()
diffusers/src/diffusers/pipelines/deprecated/spectrogram_diffusion/midi_utils.py:438
↓ 2 callers
Function
find_duplicates
(seq)
diffusers/utils/check_inits.py:195
↓ 2 callers
Method
fold_constants
(self, return_onnx=False)
diffusers/examples/community/stable_diffusion_tensorrt_inpaint.py:198
↓ 2 callers
Method
fold_constants
(self, return_onnx=False)
diffusers/examples/community/stable_diffusion_tensorrt_txt2img.py:181
↓ 2 callers
Method
fold_constants
(self, return_onnx=False)
diffusers/examples/community/stable_diffusion_tensorrt_img2img.py:194
↓ 2 callers
Method
forward
(self, hidden_states: torch.Tensor)
diffusers/src/diffusers/models/lora.py:222
↓ 2 callers
Method
forward
r"""Forward method of the `CogVideoXUpBlock3D` class.
diffusers/src/diffusers/models/autoencoders/autoencoder_kl_cogvideox.py:616
↓ 2 callers
Function
fourier_filter
Fourier filter as introduced in FreeU (https://arxiv.org/abs/2309.11497). This version of the method comes from here: https://github.com/hugg
diffusers/src/diffusers/utils/torch_utils.py:93
↓ 2 callers
Method
from_pretrained
( cls, model_id: Union[str, Path], force_download: bool = True, token: Optiona
diffusers/src/diffusers/pipelines/onnx_utils.py:196
↓ 2 callers
Method
from_pretrained
r""" Instantiates a text-to-image Pytorch diffusion pipeline from pretrained pipeline weight. The from_pretrained() method takes care
diffusers/src/diffusers/pipelines/auto_pipeline.py:260
↓ 2 callers
Method
from_transformer
( cls, transformer, num_layers=12, num_extra_conditioning_channels=1, load_weights_from_transformer=Tr
diffusers/src/diffusers/models/controlnet_sd3.py:245
↓ 2 callers
Method
full_loop
(self, num_inference_steps=10, seed=0, **config)
diffusers/tests/schedulers/test_scheduler_tcd.py:90
↓ 2 callers
Method
full_loop
(self, num_inference_steps=10, seed=0, **config)
diffusers/tests/schedulers/test_scheduler_lcm.py:209
↓ 2 callers
Function
generate
( prompt, negative_prompt, seed=default_seed, guidance_scale=default_guidance_scale, num_i
diffusers/examples/research_projects/sdxl_flax/sdxl_single.py:67
↓ 2 callers
Function
generate
(prompt, negative_prompt, seed=default_seed, guidance_scale=default_guidance_scale)
diffusers/examples/research_projects/sdxl_flax/sdxl_single_aot.py:111
↓ 2 callers
Function
generate_csv_dict
Packs benchmarking data into a dictionary for latter serialization.
diffusers/benchmarks/utils.py:61
↓ 2 callers
Function
getEnginePath
(model_name, engine_dir)
diffusers/examples/community/stable_diffusion_tensorrt_inpaint.py:302
↓ 2 callers
Function
getEnginePath
(model_name, engine_dir)
diffusers/examples/community/stable_diffusion_tensorrt_txt2img.py:285
↓ 2 callers
Function
getEnginePath
(model_name, engine_dir)
diffusers/examples/community/stable_diffusion_tensorrt_img2img.py:298
↓ 2 callers
Function
get_2d_sincos_pos_embed_from_grid
(embed_dim, grid)
diffusers/src/diffusers/models/embeddings.py:150
↓ 2 callers
Function
get_all_tests
Walks the `tests` folder to return a list of files/subfolders. This is used to split the tests to run when using parallelism. The split is:
diffusers/utils/tests_fetcher.py:165
↓ 2 callers
Function
get_args
()
diffusers/scripts/convert_cogvideox_to_diffusers.py:190
↓ 2 callers
Function
get_attention_scores
r""" Compute the attention scores. Args: query (`torch.Tensor`): The query tensor. key (`torch.Tensor`): The key tensor.
diffusers/examples/community/hd_painter.py:955
↓ 2 callers
Method
get_aug_embed
( self, emb: torch.Tensor, encoder_hidden_states: torch.Tensor, added_cond_kwargs: Dict[str, Any]
diffusers/src/diffusers/models/unets/unet_2d_condition.py:992
↓ 2 callers
Method
get_class_embed
(self, sample: torch.Tensor, class_labels: Optional[torch.Tensor])
diffusers/src/diffusers/models/unets/unet_2d_condition.py:976
↓ 2 callers
Function
get_class_from_dynamic_module
Extracts a class from a module file, present in the local folder or repository of a model. <Tip warning={true}> Calling this function w
diffusers/src/diffusers/utils/dynamic_modules_utils.py:374
↓ 2 callers
Function
get_class_obj_and_candidates
Simple helper method to retrieve class object of module as well as potential parent class objects
diffusers/src/diffusers/pipelines/pipeline_loading_utils.py:273
↓ 2 callers
Method
get_clip_feature
Get image and phrases embedding by using CLIP pretrain model. The image embedding is transformed into the phrases embedding space thr
diffusers/src/diffusers/pipelines/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:578
↓ 2 callers
Method
get_clip_image_embeddings
(self, image, batch_size)
diffusers/examples/community/clip_guided_images_mixing_stable_diffusion.py:170
↓ 2 callers
Method
get_codebook_entry
(self, indices: torch.LongTensor, shape: Tuple[int, ...])
diffusers/src/diffusers/models/autoencoders/vae.py:749
↓ 2 callers
Method
get_coefficients_fn
(self, order, interval_start, interval_end, lambda_list, tau)
diffusers/src/diffusers/schedulers/scheduling_sasolver.py:744
↓ 2 callers
Method
get_constructor_arguments
(self, only_cross_attention: bool = False)
diffusers/tests/models/test_attention_processor.py:12
↓ 2 callers
Method
get_context
(self, prompt)
diffusers/examples/community/pipeline_null_text_inversion.py:162
↓ 2 callers
Function
get_diff
Get the diff between a base commit and one or several commits. Args: repo (`git.Repo`): A git repository (for instance t
diffusers/utils/tests_fetcher.py:235
↓ 2 callers
Function
get_diff_for_doctesting
Get the diff in doc examples between a base commit and one or several commits. Args: repo (`git.Repo`): A git repository
diffusers/utils/tests_fetcher.py:310
↓ 2 callers
Method
get_dummy_components
(self)
diffusers/tests/pipelines/stable_diffusion_xl/test_stable_diffusion_xl_instruction_pix2pix.py:63
↓ 2 callers
Method
get_dummy_components
(self)
diffusers/tests/pipelines/unclip/test_unclip.py:182
↓ 2 callers
Method
get_dummy_components
(self)
diffusers/tests/pipelines/i2vgen_xl/test_i2vgenxl.py:62
↓ 2 callers
Method
get_dummy_components
(self)
diffusers/tests/pipelines/flux/test_pipeline_flux_img2img.py:27
↓ 2 callers
Method
get_dummy_components
(self)
diffusers/tests/pipelines/flux/test_pipeline_flux_inpaint.py:27
↓ 2 callers
Method
get_dummy_components
(self)
diffusers/tests/pipelines/aura_flow/test_pipeline_aura_flow.py:34
↓ 2 callers
Method
get_dummy_components
(self)
diffusers/tests/pipelines/controlnet/test_controlnet_img2img.py:201
↓ 2 callers
Method
get_dummy_components
(self)
diffusers/tests/pipelines/controlnet/test_controlnet_sdxl.py:695
↓ 2 callers
Method
get_dummy_components
(self, time_cond_proj_dim=None)
diffusers/tests/pipelines/controlnet/test_controlnet_sdxl.py:1025
↓ 2 callers
Method
get_dummy_components
(self)
diffusers/tests/pipelines/controlnet/test_controlnet_inpaint.py:260
↓ 2 callers
Method
get_dummy_components
(self, time_cond_proj_dim=None)
diffusers/tests/pipelines/controlnet/test_controlnet.py:126
↓ 2 callers
Method
get_dummy_components
(self)
diffusers/tests/pipelines/controlnet/test_controlnet.py:526
↓ 2 callers
Method
get_dummy_components
(self)
diffusers/tests/pipelines/controlnet_flux/test_controlnet_flux_inpaint.py:55
↓ 2 callers
Method
get_dummy_components
(self)
diffusers/tests/pipelines/kandinsky2_2/test_kandinsky_inpaint.py:201
↓ 2 callers
Method
get_dummy_components
(self)
diffusers/tests/pipelines/kandinsky2_2/test_kandinsky.py:110
↓ 2 callers
Method
get_dummy_components
(self)
diffusers/tests/pipelines/kandinsky2_2/test_kandinsky_prior.py:189
↓ 2 callers
Method
get_dummy_components
(self)
diffusers/tests/pipelines/stable_diffusion_gligen/test_stable_diffusion_gligen.py:60
↓ 2 callers
Method
get_dummy_components
(self)
diffusers/tests/pipelines/stable_diffusion_image_variation/test_stable_diffusion_image_variation.py:61
↓ 2 callers
Method
get_dummy_components
(self)
diffusers/tests/pipelines/deepfloyd_if/test_if.py:40
↓ 2 callers
Method
get_dummy_components
(self)
diffusers/tests/pipelines/kandinsky/test_kandinsky.py:135
↓ 2 callers
Method
get_dummy_components
(self)
diffusers/tests/pipelines/stable_diffusion_gligen_text_image/test_stable_diffusion_gligen_text_image.py:69
← previous
next →
1,501–1,600 of 13,352, ranked by callers