MCPcopy Create free account

hub / github.com/LetterLiGo/SafeGen_CCS2024 / functions

Functions7,383 in github.com/LetterLiGo/SafeGen_CCS2024

↓ 1 callersMethodget_timesteps
(self, num_inference_steps, strength, device)
src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:726
↓ 1 callersMethodget_timesteps
(self, num_inference_steps, strength, device)
src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:789
↓ 1 callersMethodget_timesteps
(self, num_inference_steps, strength, device)
src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_controlnet_img2img.py:154
↓ 1 callersMethodget_timesteps
(self, num_inference_steps, strength, device)
src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior_emb2emb.py:146
↓ 1 callersMethodget_timesteps
(self, num_inference_steps, strength, device)
src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_img2img.py:127
↓ 1 callersMethodget_timesteps
(self, num_inference_steps, strength, device)
src/diffusers/pipelines/stable_diffusion/pipeline_cycle_diffusion.py:558
↓ 1 callersMethodget_timesteps
(self, num_inference_steps, strength, device)
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:464
↓ 1 callersMethodget_timesteps
(self, num_inference_steps, strength, device)
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:615
↓ 1 callersMethodget_timesteps
(self, num_inference_steps, strength, device)
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:798
↓ 1 callersMethodget_timesteps
(self, num_inference_steps, strength, device)
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint_legacy.py:533
↓ 1 callersMethodget_timesteps
(self, num_inference_steps, strength, device)
src/diffusers/pipelines/alt_diffusion/pipeline_alt_diffusion_img2img.py:614
↓ 1 callersMethodget_timesteps
(self, num_inference_steps, strength)
src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py:718
↓ 1 callersMethodget_timesteps
(self, num_inference_steps, strength)
src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py:636
↓ 1 callersMethodget_timesteps
(self, num_inference_steps, strength)
src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:804
↓ 1 callersMethodget_timesteps
(self, num_inference_steps, strength)
src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:727
↓ 1 callersMethodget_timesteps
(self, num_inference_steps, strength, device)
src/diffusers/pipelines/kandinsky/pipeline_kandinsky_img2img.py:139
↓ 1 callersFunctionget_transformers_submodules
Returns the list of Transformers submodules.
utils/check_inits.py:241
↓ 1 callersFunctionget_tree_starting_at
Returns the tree starting at a given module following all edges. Args: module (`str`): The module that will be the root of the subtr
utils/tests_fetcher.py:628
↓ 1 callersFunctionget_up_block
( up_block_type, num_layers, in_channels, out_channels, prev_output_channel, temb_chan
src/diffusers/pipelines/versatile_diffusion/modeling_text_unet.py:108
↓ 1 callersFunctionget_up_block
( up_block_type, num_layers, in_channels, out_channels, prev_output_channel, temb_chan
src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:932
↓ 1 callersFunctionget_up_block_types
(original_decoder_config)
scripts/convert_vq_diffusion_to_diffusers.py:131
↓ 1 callersMethodget_views
(self, panorama_height, panorama_width, window_size=64, stride=8, circular_padding=False)
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_panorama.py:495
↓ 1 callersMethodget_zero_embed
(self, batch_size=1, device=None)
src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior_emb2emb.py:289
↓ 1 callersMethodget_zero_embed
(self, batch_size=1, device=None)
src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior.py:251
↓ 1 callersMethodget_zero_embed
(self, batch_size=1, device=None)
src/diffusers/pipelines/kandinsky/pipeline_kandinsky_prior.py:291
↓ 1 callersFunctiongumbel_noised
Apply gumbel noise to `logits`
src/diffusers/schedulers/scheduling_vq_diffusion.py:62
↓ 1 callersFunctionhas_many_models
(tests)
utils/tests_fetcher.py:813
↓ 1 callersFunctionignore_unautoclassed
Rules to determine if `name` should be in an auto class.
utils/check_repo.py:431
↓ 1 callersFunctionignore_underscore_and_lowercase
Wraps a key function (as used in a sort) to lowercase and ignore underscores.
utils/custom_init_isort.py:131
↓ 1 callersFunctionignore_undocumented
Rules to determine if `name` should be undocumented.
utils/check_repo.py:615
↓ 1 callersMethodimage_to_audio
Converts spectrogram to audio. Args: image (`PIL Image`): An grayscale image of `x_res x y_res`. Returns
src/diffusers/pipelines/audio_diffusion/mel.py:162
↓ 1 callersMethodimage_variation
r""" The call function to the pipeline for generation. Args: image (`PIL.Image.Image`, `List[PIL.Image.Image]` or `torch.
src/diffusers/pipelines/versatile_diffusion/pipeline_versatile_diffusion.py:82
↓ 1 callersMethodindex_for_timestep
(self, timestep, schedule_timesteps=None)
src/diffusers/schedulers/scheduling_dpmsolver_sde.py:203
↓ 1 callersMethodindex_for_timestep
(self, timestep, schedule_timesteps=None)
src/diffusers/schedulers/scheduling_k_dpm_2_ancestral_discrete.py:145
↓ 1 callersMethodindex_for_timestep
(self, timestep, schedule_timesteps=None)
src/diffusers/schedulers/scheduling_k_dpm_2_discrete.py:145
↓ 1 callersMethodindex_for_timestep
(self, timestep, schedule_timesteps=None)
src/diffusers/schedulers/scheduling_heun_discrete.py:152
↓ 1 callersFunctionindex_to_log_onehot
Convert batch of vector of class indices into batch of log onehot vectors Args: x (`torch.LongTensor` of shape `(batch size, vector
src/diffusers/schedulers/scheduling_vq_diffusion.py:41
↓ 1 callersFunctioninfer_tests_to_run
The main function called by the test fetcher. Determines the tests to run from the diff. Args: output_file (`str`): The
utils/tests_fetcher.py:888
↓ 1 callersFunctioninit
(self, *args, **kwargs)
src/diffusers/configuration_utils.py:654
↓ 1 callersFunctioninit_hf_modules
Creates the cache directory for modules with an init, and adds it to the Python path.
src/diffusers/utils/dynamic_modules_utils.py:49
↓ 1 callersFunctioninit_test_examples_dependencies
The test examples do not import from the examples (which are just scripts, not modules) so we need som extra care initializing the dependency
utils/tests_fetcher.py:689
↓ 1 callersMethodinit_weights
(self, rng: jax.Array)
src/diffusers/models/vae_flax.py:827
↓ 1 callersFunctioninpaint_text2img
(*, args, checkpoint_map_location)
scripts/convert_kandinsky_to_diffusers.py:908
↓ 1 callersFunctioninpaint_unet_model_from_original_config
()
scripts/convert_kandinsky_to_diffusers.py:412
↓ 1 callersFunctioninpaint_unet_original_checkpoint_to_diffusers_checkpoint
(model, checkpoint)
scripts/convert_kandinsky_to_diffusers.py:418
↓ 1 callersFunctionintegrate_samples
r""" Function integrating the model output. Args: volume_range: Specifies the integral range [t0, t1] ts: timesteps d
src/diffusers/pipelines/shap_e/renderer.py:85
↓ 1 callersMethodinterpolate
Function invoked when using the prior pipeline for interpolation. Args: images_and_prompts (`List[Union[str, PIL.Image.I
src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior.py:133
↓ 1 callersMethodintersect
Args: origin: [batch_size, *shape, 3] direction: [batch_size, *shape, 3] t0_lower: Optional [batch_size,
src/diffusers/pipelines/shap_e/renderer.py:300
↓ 1 callersFunctionis_a_private_model
Returns True if the model should not be in the main init.
utils/check_repo.py:283
↓ 1 callersFunctionis_compel_available
()
src/diffusers/utils/import_utils.py:356
↓ 1 callersFunctionis_copy_consistent
Check if the code commented as a copy in `filename` matches the original. Return the differences or overwrites the content depending on `over
utils/check_copies.py:121
↓ 1 callersFunctionis_rst_docstring
Returns `True` if `docstring` is written in rst.
utils/check_repo.py:703
↓ 1 callersMethodis_shift_event_index
(self, index: int)
src/diffusers/pipelines/spectrogram_diffusion/midi_utils.py:178
↓ 1 callersFunctionis_test
(fname)
utils/tests_fetcher.py:797
↓ 1 callersFunctionjax_memory_efficient_attention
r""" Flax Memory-efficient multi-head dot product attention. https://arxiv.org/abs/2112.05682v2 https://github.com/AminRezaei0x443/memory-effi
src/diffusers/models/attention_flax.py:74
↓ 1 callersFunctionkl_divergence
(hidden_states)
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_diffedit.py:157
↓ 1 callersMethodkl_divergence
(self, hidden_states)
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_pix2pix_zero.py:805
↓ 1 callersMethodldm_transform_latent
(z, extra_scale_factor=1)
scripts/convert_consistency_decoder.py:115
↓ 1 callersFunctionload
(module: torch.nn.Module, prefix: str = "")
src/diffusers/models/modeling_utils.py:174
↓ 1 callersMethodload_audio
Load audio. Args: audio_file (`str`): An audio file that must be on disk due to [Librosa](https://librosa.org/) l
src/diffusers/pipelines/audio_diffusion/mel.py:94
↓ 1 callersFunctionload_checkpoint_to_model
(checkpoint, model)
scripts/convert_blipdiffusion_to_diffusers.py:293
↓ 1 callersFunctionload_checkpoint_to_model
(checkpoint, model, strict=False)
scripts/convert_shap_e_to_diffusers.py:1004
↓ 1 callersFunctionload_continuous_encoder
(weights, model)
scripts/convert_music_spectrogram_to_diffusers.py:46
↓ 1 callersFunctionload_decoder
(weights, model)
scripts/convert_music_spectrogram_to_diffusers.py:75
↓ 1 callersFunctionload_flax_checkpoint_in_pytorch_model
(pt_model, model_file)
src/diffusers/models/modeling_pytorch_flax_utils.py:37
↓ 1 callersFunctionload_flax_weights_in_pytorch_model
Load flax checkpoints in a PyTorch model
src/diffusers/models/modeling_pytorch_flax_utils.py:58
↓ 1 callersFunctionload_image
(uri, size=None, center_crop=False)
scripts/convert_consistency_decoder.py:192
↓ 1 callersFunctionload_notes_encoder
(weights, model)
scripts/convert_music_spectrogram_to_diffusers.py:19
↓ 1 callersFunctionload_pipeline_from_original_AudioLDM2_ckpt
Load an AudioLDM2 pipeline object from a `.ckpt`/`.safetensors` file and (ideally) a `.yaml` config file. Although many of the arguments can
scripts/convert_original_audioldm2_to_diffusers.py:830
↓ 1 callersFunctionload_pipeline_from_original_MusicLDM_ckpt
Load an MusicLDM pipeline object from a `.ckpt`/`.safetensors` file and (ideally) a `.yaml` config file. Although many of the arguments can
scripts/convert_original_musicldm_to_diffusers.py:775
↓ 1 callersFunctionload_pipeline_from_original_audioldm_ckpt
Load an AudioLDM pipeline object from a `.ckpt`/`.safetensors` file and (ideally) a `.yaml` config file. Although many of the arguments can
scripts/convert_original_audioldm_to_diffusers.py:769
↓ 1 callersFunctionload_sub_model
Helper method to load the module `name` from `library_name` and `class_name`
src/diffusers/pipelines/pipeline_utils.py:408
↓ 1 callersFunctionload_textual_inversion_state_dicts
(pretrained_model_name_or_paths, **kwargs)
src/diffusers/loaders/textual_inversion.py:42
↓ 1 callersFunctionlog_validation
(vae, text_encoder, tokenizer, unet, args, accelerator, weight_dtype, epoch)
examples/text_to_image/train_text_to_image_adjust_sal.py:163
↓ 1 callersFunctionlog_validation
(vae, text_encoder, tokenizer, unet, args, accelerator, weight_dtype, epoch)
examples/text_to_image/train_text_to_image.py:140
↓ 1 callersFunctionmain
()
utils/fetch_torch_cuda_pipeline_test_matrix.py:84
↓ 1 callersFunctionmain
(correct, fail=None)
utils/overwrite_expected_slice.py:67
↓ 1 callersFunctionmain
()
utils/stale.py:36
↓ 1 callersFunctionmain
()
src/diffusers/commands/diffusers_cli.py:22
↓ 1 callersFunctionmain
(args)
scripts/convert_blipdiffusion_to_diffusers.py:333
↓ 1 callersFunctionmain
(model_path, output_path)
scripts/convert_kandinsky3_unet.py:75
↓ 1 callersFunctionmain
(args)
scripts/convert_pixart_alpha_to_diffusers.py:15
↓ 1 callersFunctionmain
(args)
scripts/convert_music_spectrogram_to_diffusers.py:127
↓ 1 callersFunctionmain
(args)
scripts/convert_dit_to_diffusers.py:26
↓ 1 callersFunctionmain
(args)
scripts/convert_if.py:62
↓ 1 callersFunctionmain
(args)
scripts/convert_k_upscaler_to_diffusers.py:269
↓ 1 callersFunctionmain
(args)
scripts/convert_dance_diffusion_to_diffusers.py:252
↓ 1 callersFunctionmain
(model_path, output_path)
tests/convert_kandinsky3_unet.py:75
↓ 1 callersFunctionmain
()
examples/text_to_image/train_text_to_image_adjust_sal.py:530
↓ 1 callersFunctionmain
()
examples/text_to_image/train_text_to_image.py:497
↓ 1 callersMethodmap_indices_to_keys
(self, output)
src/diffusers/pipelines/shap_e/renderer.py:648
↓ 1 callersFunctionmap_midi_programs
Apply MIDI program map to token sequences.
src/diffusers/pipelines/spectrogram_diffusion/midi_utils.py:524
↓ 1 callersFunctionmaybe_raise_or_warn
Simple helper method to raise or warn in case incorrect module has been passed
src/diffusers/pipelines/pipeline_utils.py:288
↓ 1 callersMethodmel_spectrogram_to_waveform
(self, mel_spectrogram)
src/diffusers/pipelines/musicldm/pipeline_musicldm.py:266
↓ 1 callersMethodmel_spectrogram_to_waveform
(self, mel_spectrogram)
src/diffusers/pipelines/audioldm/pipeline_audioldm.py:259
↓ 1 callersMethodmel_spectrogram_to_waveform
(self, mel_spectrogram)
src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py:569
↓ 1 callersMethodmode
(self)
src/diffusers/models/vae_flax.py:722
↓ 1 callersFunctionmove_cache
(old_cache_dir: Optional[str] = None, new_cache_dir: Optional[str] = None)
src/diffusers/utils/hub_utils.py:184
↓ 1 callersFunctionmovq
(*, args, checkpoint_map_location)
scripts/convert_kandinsky_to_diffusers.py:1302
↓ 1 callersFunctionmovq_decoder_to_diffusers_checkpoint
(model, checkpoint)
scripts/convert_kandinsky_to_diffusers.py:1051
← previousnext →1,801–1,900 of 7,383, ranked by callers