MCPcopy Create free account

hub / github.com/LetterLiGo/SafeGen_CCS2024 / functions

Functions7,383 in github.com/LetterLiGo/SafeGen_CCS2024

Methodremove_all_hooks
(self)
src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py:95
Methodremove_all_hooks
(self)
src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py:195
Methodremove_all_hooks
(self)
src/diffusers/pipelines/deepfloyd_if/pipeline_if.py:159
Methodremove_all_hooks
(self)
src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py:153
Methodremove_all_hooks
(self)
src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py:184
Functionremove_handler
removes given handler from the HuggingFace Diffusers' root logger.
src/diffusers/utils/logging.py:211
Methodremove_unused_weights
(self)
src/diffusers/pipelines/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py:104
Methodrenderer_dim
(self)
tests/pipelines/shap_e/test_shap_e.py:58
Methodrenderer_dim
(self)
tests/pipelines/shap_e/test_shap_e_img2img.py:66
Functionreplace_example_docstring
(example_docstring)
src/diffusers/utils/doc_utils.py:20
Functionrequire_compel
Decorator marking a test that requires compel: https://github.com/damian0815/compel. These tests are skipped when the library is not installe
src/diffusers/utils/testing_utils.py:225
Functionrequire_flax
Decorator marking a test that requires JAX & Flax. These tests are skipped when one / both are not installed
src/diffusers/utils/testing_utils.py:218
Functionrequire_note_seq
Decorator marking a test that requires note_seq. These tests are skipped when note_seq isn't installed.
src/diffusers/utils/testing_utils.py:240
Functionrequire_onnxruntime
Decorator marking a test that requires onnxruntime. These tests are skipped when onnxruntime isn't installed.
src/diffusers/utils/testing_utils.py:233
Functionrequire_peft_backend
Decorator marking a test that requires PEFT backend, this would require some specific versions of PEFT and transformers.
src/diffusers/utils/testing_utils.py:254
Functionrequire_python39_or_higher
(test_case)
src/diffusers/utils/testing_utils.py:269
Functionrequire_torch
Decorator marking a test that requires PyTorch. These tests are skipped when PyTorch isn't installed.
src/diffusers/utils/testing_utils.py:190
Functionrequire_torch_2
Decorator marking a test that requires PyTorch 2. These tests are skipped when it isn't installed.
src/diffusers/utils/testing_utils.py:197
Functionrequire_torch_gpu
Decorator marking a test that requires CUDA and PyTorch.
src/diffusers/utils/testing_utils.py:206
Functionrequire_torchsde
Decorator marking a test that requires torchsde. These tests are skipped when torchsde isn't installed.
src/diffusers/utils/testing_utils.py:247
Methodreset
(self)
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_attend_and_excite.py:117
Functionreset_format
Resets the formatting for 🤗 Diffusers' loggers. All handlers currently bound to the root logger are affected by this method.
src/diffusers/utils/logging.py:254
Methodreset_mode
r"""Removes a manually set mode; after calling this, the pipeline will infer the mode from inputs.
src/diffusers/pipelines/unidiffuser/pipeline_unidiffuser.py:268
Methodresize_image
Creates a new camera for the resized view assuming the aspect ratio does not change.
src/diffusers/pipelines/shap_e/camera.py:105
Functionrule_func
(steps: int)
src/diffusers/optimization.py:109
Methodrun
(self)
setup.py:186
Methodrun
(self)
src/diffusers/commands/fp16_safetensors.py:80
Methodrun
(self)
src/diffusers/commands/__init__.py:26
Functionrun_command
Runs `command` with `subprocess.check_output` and will potentially return the `stdout`. Will also properly capture if an error occurred while
examples/test_examples_utils.py:31
Methodrun_safety_checker
(self, image, device, dtype)
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:367
Methodsafety_concept
r""" Getter method for the safety concept used with SLD Returns: `str`: The text describing the safety concept
src/diffusers/pipelines/stable_diffusion_safe/pipeline_stable_diffusion_safe.py:149
Methodsample
Args: t0: start time has shape [batch_size, *shape, 1] t1: finish time has shape [batch_size, *shape, 1]
src/diffusers/pipelines/shap_e/renderer.py:433
Methodsave_function
(weights, filename)
src/diffusers/loaders/unet.py:459
Methodsave_function
(weights, filename)
src/diffusers/loaders/lora.py:850
Methodsave_load_local
(self)
tests/pipelines/kandinsky2_2/test_kandinsky_combined.py:275
Methodsave_lora_weights
r""" Save the LoRA parameters corresponding to the UNet and text encoder. Arguments: save_directory (`str` or `os.PathLik
src/diffusers/loaders/lora.py:1333
Functionsave_model_hook
(models, weights, output_dir)
examples/text_to_image/train_text_to_image_adjust_sal.py:659
Functionsave_model_hook
(models, weights, output_dir)
examples/text_to_image/train_text_to_image.py:615
Methodsave_pretrained
Save a model to a directory, so that it can be re-loaded using the [`~OnnxModel.from_pretrained`] class method.: Arguments:
src/diffusers/pipelines/onnx_utils.py:110
Methodsave_pretrained
Save all saveable variables of the pipeline to a directory. A pipeline variable can be saved and loaded if its class implements both
src/diffusers/pipelines/pipeline_flax_utils.py:151
Methodsave_pretrained
Save all saveable variables of the pipeline to a directory. A pipeline variable can be saved and loaded if its class implements both
src/diffusers/pipelines/pipeline_utils.py:609
Methodsave_pretrained
Save a model and its configuration file to a directory, so that it can be re-loaded using the `[`~pipelines.controlnet.MultiControlNe
src/diffusers/pipelines/controlnet/multicontrolnet.py:75
Methodsave_pretrained
Save a scheduler configuration object to a directory so that it can be reloaded using the [`~SchedulerMixin.from_pretrained`] class m
src/diffusers/schedulers/scheduling_utils.py:149
Methodsave_pretrained
Save a scheduler configuration object to the directory `save_directory`, so that it can be re-loaded using the [`~FlaxSchedulerMixin.
src/diffusers/schedulers/scheduling_utils_flax.py:152
Methodsave_pretrained
Save a model and its configuration file to a directory so that it can be reloaded using the [`~models.ModelMixin.from_pretrained`] cl
src/diffusers/models/modeling_utils.py:454
Methodsave_pretrained
Save a model and its configuration file to a directory so that it can be reloaded using the [`~FlaxModelMixin.from_pretrained`] class
src/diffusers/models/modeling_flax_utils.py:497
Methodscale_model_input
Ensures interchangeability with schedulers that need to scale the denoising model input depending on the current timestep. A
src/diffusers/schedulers/scheduling_pndm.py:392
Methodscale_model_input
Ensures interchangeability with schedulers that need to scale the denoising model input depending on the current timestep. A
src/diffusers/schedulers/scheduling_ipndm.py:170
Methodscale_model_input
Ensures interchangeability with schedulers that need to scale the denoising model input depending on the current timestep. A
src/diffusers/schedulers/scheduling_lms_discrete.py:187
Methodscale_model_input
Ensures interchangeability with schedulers that need to scale the denoising model input depending on the current timestep. A
src/diffusers/schedulers/scheduling_ddpm.py:188
Methodscale_model_input
Ensures interchangeability with schedulers that need to scale the denoising model input depending on the current timestep. A
src/diffusers/schedulers/scheduling_dpmsolver_sde.py:254
Methodscale_model_input
Ensures interchangeability with schedulers that need to scale the denoising model input depending on the current timestep. A
src/diffusers/schedulers/scheduling_repaint.py:163
Methodscale_model_input
Ensures interchangeability with schedulers that need to scale the denoising model input depending on the current timestep. A
src/diffusers/schedulers/scheduling_k_dpm_2_ancestral_discrete.py:178
Methodscale_model_input
Ensures interchangeability with schedulers that need to scale the denoising model input depending on the current timestep. A
src/diffusers/schedulers/scheduling_ddim_parallel.py:246
Methodscale_model_input
Ensures interchangeability with schedulers that need to scale the denoising model input depending on the current timestep. A
src/diffusers/schedulers/scheduling_unclip.py:149
Methodscale_model_input
Scales the consistency model input by `(sigma**2 + sigma_data**2) ** 0.5`. Args: sample (`torch.FloatTensor`):
src/diffusers/schedulers/scheduling_consistency_models.py:116
Methodscale_model_input
Scales the denoising model input by `(sigma**2 + 1) ** 0.5` to match the Euler algorithm. Args: state (`EulerDiscreteSch
src/diffusers/schedulers/scheduling_euler_discrete_flax.py:126
Methodscale_model_input
Ensures interchangeability with schedulers that need to scale the denoising model input depending on the current timestep. Scales the
src/diffusers/schedulers/scheduling_euler_ancestral_discrete.py:185
Methodscale_model_input
Ensures interchangeability with schedulers that need to scale the denoising model input depending on the current timestep. A
src/diffusers/schedulers/scheduling_deis_multistep.py:705
Methodscale_model_input
Ensures interchangeability with schedulers that need to scale the denoising model input depending on the current timestep. A
src/diffusers/schedulers/scheduling_ddpm_wuerstchen.py:128
Methodscale_model_input
Ensures interchangeability with schedulers that need to scale the denoising model input depending on the current timestep. A
src/diffusers/schedulers/scheduling_pndm_flax.py:222
Methodscale_model_input
Ensures interchangeability with schedulers that need to scale the denoising model input depending on the current timestep. A
src/diffusers/schedulers/scheduling_sde_ve.py:89
Methodscale_model_input
Ensures interchangeability with schedulers that need to scale the denoising model input depending on the current timestep. A
src/diffusers/schedulers/scheduling_k_dpm_2_discrete.py:178
Methodscale_model_input
Args: state (`PNDMSchedulerState`): the `FlaxPNDMScheduler` state data class instance. sample (`jnp.ndarray`): input
src/diffusers/schedulers/scheduling_ddim_flax.py:151
Methodscale_model_input
Ensures interchangeability with schedulers that need to scale the denoising model input depending on the current timestep. A
src/diffusers/schedulers/scheduling_consistency_decoder.py:116
Methodscale_model_input
Ensures interchangeability with schedulers that need to scale the denoising model input depending on the current timestep. A
src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py:862
Methodscale_model_input
Ensures interchangeability with schedulers that need to scale the denoising model input depending on the current timestep. Scales the
src/diffusers/schedulers/scheduling_euler_discrete.py:206
Methodscale_model_input
Args: state (`PNDMSchedulerState`): the `FlaxPNDMScheduler` state data class instance. sample (`jnp.ndarray`): input
src/diffusers/schedulers/scheduling_ddpm_flax.py:125
Methodscale_model_input
Ensures interchangeability with schedulers that need to scale the denoising model input depending on the current timestep. A
src/diffusers/schedulers/scheduling_dpmsolver_multistep_flax.py:615
Methodscale_model_input
Ensures interchangeability with schedulers that need to scale the denoising model input depending on the current timestep. A
src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:868
Methodscale_model_input
Ensures interchangeability with schedulers that need to scale the denoising model input depending on the current timestep. A
src/diffusers/schedulers/scheduling_unipc_multistep.py:799
Methodscale_model_input
Ensures interchangeability with schedulers that need to scale the denoising model input depending on the current timestep. A
src/diffusers/schedulers/scheduling_ddim.py:238
Methodscale_model_input
Ensures interchangeability with schedulers that need to scale the denoising model input depending on the current timestep. A
src/diffusers/schedulers/scheduling_ddpm_parallel.py:199
Methodscale_model_input
Scales the denoising model input by `(sigma**2 + 1) ** 0.5` to match the K-LMS algorithm. Args: state (`LMSDiscreteSched
src/diffusers/schedulers/scheduling_lms_discrete_flax.py:123
Methodscale_model_input
Ensures interchangeability with schedulers that need to scale the denoising model input depending on the current timestep. A
src/diffusers/schedulers/scheduling_ddim_inverse.py:236
Methodscale_model_input
Ensures interchangeability with schedulers that need to scale the denoising model input depending on the current timestep. A
src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:868
Methodscale_model_input
Ensures interchangeability with schedulers that need to scale the denoising model input depending on the current timestep. A
src/diffusers/schedulers/scheduling_heun_discrete.py:185
Methodscale_model_input
Ensures interchangeability with schedulers that need to scale the denoising model input depending on the current timestep. A
src/diffusers/schedulers/deprecated/scheduling_karras_ve.py:99
Methodselect_outputs
(self, keep, names=None)
scripts/convert_stable_diffusion_controlnet_to_onnx.py:42
MethodsetUp
(self)
tests/others/test_check_copies.py:49
MethodsetUp
(self)
tests/pipelines/latent_consistency_models/test_latent_consistency_models.py:211
MethodsetUp
(self)
tests/pipelines/latent_consistency_models/test_latent_consistency_models_img2img.py:220
MethodsetUp
(self)
tests/pipelines/stable_diffusion/test_stable_diffusion.py:668
MethodsetUp
(self)
tests/pipelines/stable_diffusion/test_stable_diffusion_inpaint.py:722
MethodsetUpClass
(cls)
tests/pipelines/stable_diffusion_2/test_stable_diffusion_attend_and_excite.py:196
MethodsetUpClass
(cls)
tests/pipelines/stable_diffusion_2/test_stable_diffusion_diffedit.py:302
MethodsetUpClass
(cls)
tests/pipelines/stable_diffusion_2/test_stable_diffusion_diffedit.py:374
MethodsetUpClass
(cls)
tests/pipelines/stable_diffusion/test_stable_diffusion_pix2pix_zero.py:72
MethodsetUpClass
(cls)
tests/pipelines/stable_diffusion/test_stable_diffusion_pix2pix_zero.py:370
MethodsetUpClass
(cls)
tests/pipelines/stable_diffusion/test_stable_diffusion_pix2pix_zero.py:498
MethodsetUpClass
(cls)
examples/test_examples_utils.py:50
Methodset_adapters
Set the currently active adapters for use in the UNet. Args: adapter_names (`List[str]` or `str`): The n
src/diffusers/loaders/unet.py:537
Methodset_attention_slice
r""" Set the slice size for attention computation. Args: slice_size (`int`): The slice size for attention
src/diffusers/models/attention_processor.py:345
Methodset_chunk_feed_forward
(self, chunk_size: Optional[int], **kwargs)
src/diffusers/models/attention.py:429
Methodset_default_attn_processor
Disables custom attention processors and sets the default attention implementation.
src/diffusers/pipelines/versatile_diffusion/modeling_text_unet.py:887
Methodset_default_attn_processor
Disables custom attention processors and sets the default attention implementation.
src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:578
Methodset_default_attn_processor
Disables custom attention processors and sets the default attention implementation.
src/diffusers/models/unet_3d_condition.py:455
Methodset_default_attn_processor
Disables custom attention processors and sets the default attention implementation.
src/diffusers/models/prior_transformer.py:232
Methodset_default_attn_processor
Disables custom attention processors and sets the default attention implementation.
src/diffusers/models/autoencoder_kl.py:221
Methodset_default_attn_processor
Disables custom attention processors and sets the default attention implementation.
src/diffusers/models/unet_2d_condition.py:681
← previousnext →5,101–5,200 of 7,383, ranked by callers