MCPcopy Create free account

hub / github.com/LetterLiGo/SafeGen_CCS2024 / functions

Functions7,383 in github.com/LetterLiGo/SafeGen_CCS2024

↓ 1 callersMethodencode_image_vae_latents
( self, image, batch_size, num_prompts_per_image, dtype, devic
src/diffusers/pipelines/unidiffuser/pipeline_unidiffuser.py:565
↓ 1 callersMethodencode_prompt
(self, query_embeds, prompt, device=None)
src/diffusers/pipelines/blip_diffusion/pipeline_blip_diffusion.py:160
↓ 1 callersMethodencode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:239
↓ 1 callersMethodencode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py:96
↓ 1 callersMethodencode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py:119
↓ 1 callersMethodencode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:274
↓ 1 callersMethodencode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:271
↓ 1 callersMethodencode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:255
↓ 1 callersMethodencode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:257
↓ 1 callersMethodencode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:268
↓ 1 callersMethodencode_prompt
(self, query_embeds, prompt, device=None)
src/diffusers/pipelines/controlnet/pipeline_controlnet_blip_diffusion.py:171
↓ 1 callersMethodencode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:283
↓ 1 callersMethodencode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_gligen_text_image.py:263
↓ 1 callersMethodencode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:251
↓ 1 callersMethodencode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py:351
↓ 1 callersMethodencode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
src/diffusers/pipelines/deepfloyd_if/pipeline_if.py:174
↓ 1 callersMethodencode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py:309
↓ 1 callersMethodencode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py:199
↓ 1 callersMethodencode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:353
↓ 1 callersMethodencode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
src/diffusers/pipelines/animatediff/pipeline_animatediff.py:141
↓ 1 callersMethodencode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py:270
↓ 1 callersMethodencode_prompt
( self, device, num_images_per_prompt, do_classifier_free_guidance, pr
src/diffusers/pipelines/wuerstchen/pipeline_wuerstchen_prior.py:128
↓ 1 callersMethodencode_prompt
( self, prompt, device, num_images_per_prompt, do_classifier_free_guid
src/diffusers/pipelines/wuerstchen/pipeline_wuerstchen.py:114
↓ 1 callersMethodencoder_decoder_mask
(self, query_input: torch.FloatTensor, key_input: torch.FloatTensor)
src/diffusers/models/t5_film_transformer.py:89
↓ 1 callersFunctionencoder_from_original_checkpoint
(model, diffuser_encoder_prefix, original_encoder_prefix)
scripts/convert_blipdiffusion_to_diffusers.py:150
↓ 1 callersFunctionextract_commit_hash
Extracts the commit hash from a resolved filename toward a cache file.
src/diffusers/utils/hub_utils.py:160
↓ 1 callersFunctionextract_sequence_with_indices
Extract target sequence corresponding to audio token segment.
src/diffusers/pipelines/spectrogram_diffusion/midi_utils.py:498
↓ 1 callersFunctionfetch_pipeline_modules_to_test
()
utils/fetch_torch_cuda_pipeline_test_matrix.py:67
↓ 1 callersFunctionfetch_pipeline_objects
()
utils/fetch_torch_cuda_pipeline_test_matrix.py:46
↓ 1 callersFunctionfilter_pipelines
(usage_dict, usage_cutoff=10000)
utils/fetch_torch_cuda_pipeline_test_matrix.py:31
↓ 1 callersFunctionfind_all_documented_objects
Parse the content of all doc files to detect which classes and functions it documents
utils/check_repo.py:525
↓ 1 callersFunctionfind_code_in_diffusers
Find and return the code source code of `object_name`.
utils/check_copies.py:33
↓ 1 callersFunctionfind_pipeline_class
Retrieve pipeline class that inherits from `DiffusionPipeline`. Note that there has to be exactly one class inheriting from `DiffusionPipelin
src/diffusers/utils/dynamic_modules_utils.py:170
↓ 1 callersFunctionfind_tested_models
Parse the content of test_file to detect what's in all_model_classes
utils/check_repo.py:354
↓ 1 callersMethodfold_constants
(self, return_onnx=False)
scripts/convert_stable_diffusion_controlnet_to_onnx.py:48
↓ 1 callersMethodformat_dict
(d)
src/diffusers/commands/env.py:83
↓ 1 callersMethodforward
( self, boxes, masks, positive_embeddings=None, phrases_masks=None,
src/diffusers/pipelines/versatile_diffusion/modeling_text_unet.py:232
↓ 1 callersMethodforward
(self, x, x_skip=None)
src/diffusers/pipelines/wuerstchen/modeling_wuerstchen_common.py:58
↓ 1 callersMethodforward_loop
Perform DDPM forward process from time t0 to t1. This is the same as adding noise with corresponding variance. Args: x_t
src/diffusers/pipelines/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:370
↓ 1 callersMethodforward_loop
Perform DDPM forward process from time t0 to t1. This is the same as adding noise with corresponding variance. Args: x_t
src/diffusers/pipelines/text_to_video_synthesis/pipeline_text_to_video_zero.py:324
↓ 1 callersMethodfov
(self)
src/diffusers/pipelines/shap_e/camera.py:46
↓ 1 callersFunctionframe
equivalent of tf.signal.frame
src/diffusers/pipelines/spectrogram_diffusion/midi_utils.py:254
↓ 1 callersMethodfreeze_unet2d_params
Freeze the weights of just the UNet2DConditionModel, and leave the motion modules unfrozen for fine tuning.
src/diffusers/models/unet_motion_model.py:457
↓ 1 callersMethodfrom_unet
r""" Instantiate a [`ControlNetModel`] from [`UNet2DConditionModel`]. Parameters: unet (`UNet2DConditionModel`):
src/diffusers/models/controlnet.py:439
↓ 1 callersMethodfull_loop
(self, **config)
tests/schedulers/test_scheduler_ipndm.py:93
↓ 1 callersFunctiongamma_schedules
Cumulative and non-cumulative gamma schedules. See section 4.1.
src/diffusers/schedulers/scheduling_vq_diffusion.py:88
↓ 1 callersFunctiongaussian_blur_2d
(img, kernel_size, sigma)
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_sag.py:822
↓ 1 callersMethodgelu
(self, gate: torch.Tensor)
src/diffusers/models/activations.py:92
↓ 1 callersMethodgen_c_embeddings
(self, clip)
src/diffusers/pipelines/wuerstchen/modeling_wuerstchen_diffnext.py:157
↓ 1 callersMethodgen_r_embedding
(self, r, max_positions=10000)
src/diffusers/pipelines/wuerstchen/modeling_wuerstchen_prior.py:149
↓ 1 callersMethodgen_r_embedding
(self, r, max_positions=10000)
src/diffusers/pipelines/wuerstchen/modeling_wuerstchen_diffnext.py:146
↓ 1 callersMethodgenerate_beam
Generates text using the given tokenizer and text prompt or token embedding via beam search. This implementation is based on the beam
src/diffusers/pipelines/unidiffuser/modeling_text_decoder.py:202
↓ 1 callersMethodgenerate_captions
Generate captions given text embedding features. Returns list[L]. Args: features (`torch.Tensor` of shape `(B, L, D)`):
src/diffusers/pipelines/unidiffuser/modeling_text_decoder.py:170
↓ 1 callersFunctionget_2d_sincos_pos_embed_from_grid
(embed_dim, grid)
src/diffusers/models/embeddings.py:91
↓ 1 callersMethodget_adjacent_sigma
(self, state, timesteps, t)
src/diffusers/schedulers/scheduling_sde_ve_flax.py:164
↓ 1 callersMethodget_adjacent_sigma
(self, timesteps, t)
src/diffusers/schedulers/scheduling_sde_ve.py:153
↓ 1 callersFunctionget_all_auto_configured_models
Return the list of all models in at least one auto class.
utils/check_repo.py:417
↓ 1 callersFunctionget_all_doctest_files
Return the complete list of python and Markdown files on which we run doctest. At this moment, we restrict this to only take files from `src
utils/tests_fetcher.py:348
↓ 1 callersMethodget_alpha
(self, image_only_indicator: torch.Tensor, ndims: int)
src/diffusers/models/resnet.py:1324
↓ 1 callersFunctionget_asymmetric_autoencoder_kl_from_original_checkpoint
( scale: Literal["1.5", "2"], original_checkpoint_path: str, map_location: torch.device )
scripts/convert_asymmetric_vqgan_to_diffusers.py:123
↓ 1 callersMethodget_audio_slice
Get slice of audio. Args: slice (`int`): Slice number of audio (out of `get_number_of_slices()`). Return
src/diffusers/pipelines/audio_diffusion/mel.py:121
↓ 1 callersMethodget_average_attention
(self)
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_attend_and_excite.py:101
↓ 1 callersFunctionget_cached_module_file
Prepares Downloads a module from a local folder or a distant repo and returns its path inside the cached Transformers module. Args:
src/diffusers/utils/dynamic_modules_utils.py:197
↓ 1 callersMethodget_camera_rays
(self, coords: torch.Tensor)
src/diffusers/pipelines/shap_e/camera.py:76
↓ 1 callersFunctionget_class_in_module
Import a module on the cache directory for modules and extract a class from it.
src/diffusers/utils/dynamic_modules_utils.py:158
↓ 1 callersFunctionget_class_obj_and_candidates
Simple helper method to retrieve class object of module as well as potential parent class objects
src/diffusers/pipelines/pipeline_utils.py:319
↓ 1 callersMethodget_codebook_entry
(self, indices: torch.LongTensor, shape: Tuple[int, ...])
src/diffusers/models/vae.py:747
↓ 1 callersFunctionget_crash_schedule
(t)
scripts/convert_dance_diffusion_to_diffusers.py:55
↓ 1 callersMethodget_cross_attention_kwargs_with_grounded
Prepare the cross-attention kwargs containing information about the grounded input (boxes, mask, image embedding, phrases embedding).
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_gligen_text_image.py:625
↓ 1 callersMethodget_cross_attention_kwargs_without_grounded
Prepare the cross-attention kwargs without information about the grounded input (boxes, mask, image embedding, phrases embedding) (Al
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_gligen_text_image.py:689
↓ 1 callersMethodget_decay
Compute the decay factor for the exponential moving average.
src/diffusers/training_utils.py:187
↓ 1 callersMethodget_default_steps
Returns default number of steps recommended for inference. Returns: `int`: The number of steps.
src/diffusers/pipelines/audio_diffusion/pipeline_audio_diffusion.py:61
↓ 1 callersFunctionget_diffusers_versions
()
src/diffusers/utils/dynamic_modules_utils.py:43
↓ 1 callersFunctionget_down_block
( down_block_type, num_layers, in_channels, out_channels, temb_channels, add_downsampl
src/diffusers/pipelines/versatile_diffusion/modeling_text_unet.py:43
↓ 1 callersFunctionget_down_block
( down_block_type, num_layers, in_channels, out_channels, temb_channels, add_downsampl
src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:875
↓ 1 callersFunctionget_down_block_types
(original_encoder_config)
scripts/convert_vq_diffusion_to_diffusers.py:110
↓ 1 callersMethodget_dummy_components
(self)
tests/lora/test_lora_layers_old_backend.py:716
↓ 1 callersMethodget_dummy_components
(self)
tests/pipelines/latent_diffusion/test_latent_diffusion.py:54
↓ 1 callersMethodget_dummy_components
(self)
tests/pipelines/stable_diffusion_2/test_stable_diffusion_attend_and_excite.py:68
↓ 1 callersMethodget_dummy_components
(self)
tests/pipelines/stable_diffusion_2/test_stable_diffusion_inpaint.py:59
↓ 1 callersMethodget_dummy_components
(self)
tests/pipelines/text_to_video_synthesis/test_video_to_video.py:70
↓ 1 callersMethodget_dummy_components
(self)
tests/pipelines/text_to_video_synthesis/test_text_to_video.py:62
↓ 1 callersMethodget_dummy_components
(self)
tests/pipelines/repaint/test_repaint.py:51
↓ 1 callersMethodget_dummy_components
(self)
tests/pipelines/dance_diffusion/test_dance_diffusion.py:45
↓ 1 callersMethodget_dummy_components
(self, time_cond_proj_dim=None)
tests/pipelines/kandinsky3/test_kandinsky3.py:86
↓ 1 callersMethodget_dummy_components
(self, time_cond_proj_dim=None)
tests/pipelines/kandinsky3/test_kandinsky3_img2img.py:97
↓ 1 callersMethodget_dummy_components
(self)
tests/pipelines/blipdiffusion/test_blipdiffusion.py:63
↓ 1 callersMethodget_dummy_components
(self)
tests/pipelines/controlnet/test_controlnet_sdxl.py:367
↓ 1 callersMethodget_dummy_components
(self)
tests/pipelines/controlnet/test_controlnet_blip_diffusion.py:71
↓ 1 callersMethodget_dummy_components
(self)
tests/pipelines/kandinsky2_2/test_kandinsky_inpaint.py:118
↓ 1 callersMethodget_dummy_components
(self)
tests/pipelines/kandinsky2_2/test_kandinsky.py:182
↓ 1 callersMethodget_dummy_components
(self)
tests/pipelines/kandinsky2_2/test_kandinsky_controlnet_img2img.py:138
↓ 1 callersMethodget_dummy_components
(self)
tests/pipelines/kandinsky2_2/test_kandinsky_img2img.py:118
↓ 1 callersMethodget_dummy_components
(self)
tests/pipelines/kandinsky2_2/test_kandinsky_img2img.py:197
↓ 1 callersMethodget_dummy_components
(self)
tests/pipelines/kandinsky2_2/test_kandinsky_controlnet.py:137
↓ 1 callersMethodget_dummy_components
(self)
tests/pipelines/kandinsky2_2/test_kandinsky_prior.py:131
↓ 1 callersMethodget_dummy_components
(self)
tests/pipelines/kandinsky2_2/test_kandinsky_prior_emb2emb.py:147
↓ 1 callersMethodget_dummy_components
(self, time_cond_proj_dim=None)
tests/pipelines/stable_diffusion/test_stable_diffusion_adapter.py:341
↓ 1 callersMethodget_dummy_components
(self, time_cond_proj_dim=None)
tests/pipelines/stable_diffusion/test_stable_diffusion_adapter.py:364
↓ 1 callersMethodget_dummy_components
(self)
tests/pipelines/spectrogram_diffusion/test_spectrogram_diffusion.py:62
← previousnext →1,601–1,700 of 7,383, ranked by callers