MCPcopy Create free account

hub / github.com/LetterLiGo/SafeGen_CCS2024 / functions

Functions7,383 in github.com/LetterLiGo/SafeGen_CCS2024

↓ 2 callersMethodget_dummy_components
(self)
tests/pipelines/kandinsky2_2/test_kandinsky.py:110
↓ 2 callersMethodget_dummy_components
(self)
tests/pipelines/kandinsky2_2/test_kandinsky_prior.py:189
↓ 2 callersMethodget_dummy_components
(self)
tests/pipelines/stable_diffusion/test_stable_diffusion_gligen.py:51
↓ 2 callersMethodget_dummy_components
(self)
tests/pipelines/stable_diffusion/test_stable_diffusion_image_variation.py:61
↓ 2 callersMethodget_dummy_components
(self)
tests/pipelines/stable_diffusion/test_cycle_diffusion.py:60
↓ 2 callersMethodget_dummy_components
(self)
tests/pipelines/stable_diffusion/test_stable_diffusion_gligen_text_image.py:60
↓ 2 callersMethodget_dummy_components
(self)
tests/pipelines/deepfloyd_if/test_if.py:46
↓ 2 callersMethodget_dummy_components
(self)
tests/pipelines/kandinsky/test_kandinsky.py:135
↓ 2 callersMethodget_dummy_components
(self)
tests/pipelines/paint_by_example/test_paint_by_example.py:49
↓ 2 callersMethodget_dummy_components
(self)
tests/pipelines/shap_e/test_shap_e.py:129
↓ 2 callersMethodget_dummy_components
(self)
tests/pipelines/shap_e/test_shap_e_img2img.py:148
↓ 2 callersMethodget_dummy_components_with_full_downscaling
Get dummy components with x8 VAE downscaling and 3 UNet down blocks. These dummy components are intended to fully-exercise the T2I-Adapter
tests/pipelines/stable_diffusion_xl/test_stable_diffusion_xl_adapter.py:166
↓ 2 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/unclip/test_unclip.py:225
↓ 2 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/stable_diffusion_2/test_stable_diffusion_diffedit.py:131
↓ 2 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/stable_diffusion_2/test_stable_diffusion_latent_upscale.py:148
↓ 2 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/altdiffusion/test_alt_diffusion.py:124
↓ 2 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/controlnet/test_controlnet.py:190
↓ 2 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/kandinsky2_2/test_kandinsky.py:178
↓ 2 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/kandinsky2_2/test_kandinsky_controlnet_img2img.py:164
↓ 2 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/kandinsky2_2/test_kandinsky_img2img.py:201
↓ 2 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/kandinsky2_2/test_kandinsky_controlnet.py:160
↓ 2 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/kandinsky2_2/test_kandinsky_prior_emb2emb.py:173
↓ 2 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/stable_diffusion/test_stable_diffusion_gligen.py:108
↓ 2 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/stable_diffusion/test_stable_diffusion_image_variation.py:107
↓ 2 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/stable_diffusion/test_cycle_diffusion.py:115
↓ 2 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/stable_diffusion/test_stable_diffusion_gligen_text_image.py:133
↓ 2 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/kandinsky/test_kandinsky_prior.py:191
↓ 2 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/shap_e/test_shap_e.py:153
↓ 2 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/shap_e/test_shap_e_img2img.py:172
↓ 2 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/wuerstchen/test_wuerstchen_decoder.py:133
↓ 2 callersMethodget_dummy_inversion_inputs
(self, device, seed=0)
tests/pipelines/stable_diffusion_2/test_stable_diffusion_diffedit.py:173
↓ 2 callersMethodget_dummy_tokens
(self)
tests/lora/test_lora_layers_old_backend.py:280
↓ 2 callersMethodget_embeddings
(self, prompt_ids: jnp.array, params)
src/diffusers/pipelines/stable_diffusion_xl/pipeline_flax_stable_diffusion_xl.py:147
↓ 2 callersMethodget_embeds
(self, prompt: List[str], batch_size: int = 16)
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_pix2pix_zero.py:705
↓ 2 callersMethodget_encoder_hidden_states
(self, seed=0, shape=(4, 77, 768), fp16=False)
tests/models/test_models_unet_2d_flax.py:41
↓ 2 callersMethodget_epsilon
(self, model_output: torch.Tensor, sample: torch.Tensor, timestep: int)
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_pix2pix_zero.py:773
↓ 2 callersMethodget_epsilon
(self, model_output: torch.Tensor, sample: torch.Tensor, timestep: int)
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_diffedit.py:841
↓ 2 callersMethodget_file_format
(self, seed, shape)
tests/models/test_models_unet_2d_condition.py:730
↓ 2 callersMethodget_file_format
(self, seed, shape)
tests/models/test_models_unet_2d_flax.py:19
↓ 2 callersMethodget_forward_arguments
(self, query_dim, added_kv_proj_dim)
tests/models/test_attention_processor.py:32
↓ 2 callersMethodget_generator
(self, seed=0)
tests/models/test_models_vae.py:834
↓ 2 callersFunctionget_indent
(code)
utils/check_copies.py:86
↓ 2 callersMethodget_inputs
(self, device, generator_device="cpu", dtype=torch.float32, seed=0)
tests/pipelines/musicldm/test_musicldm.py:416
↓ 2 callersMethodget_inputs
(self, device, generator_device="cpu", dtype=torch.float32, seed=0)
tests/pipelines/latent_consistency_models/test_latent_consistency_models.py:215
↓ 2 callersMethodget_inputs
(self, device, generator_device="cpu", dtype=torch.float32, seed=0)
tests/pipelines/latent_consistency_models/test_latent_consistency_models_img2img.py:224
↓ 2 callersMethodget_inputs
(self, device, generator_device="cpu", dtype=torch.float32, seed=0)
tests/pipelines/stable_diffusion/test_stable_diffusion_ldm3d.py:260
↓ 2 callersMethodget_inputs
(self, device, generator_device="cpu", dtype=torch.float32, seed=0)
tests/pipelines/stable_diffusion/test_stable_diffusion_image_variation.py:282
↓ 2 callersMethodget_inputs
(self, seed=0)
tests/pipelines/stable_diffusion/test_stable_diffusion_model_editing.py:195
↓ 2 callersMethodget_label_ids
r""" Map label strings from ImageNet to corresponding class ids. Parameters: label (`str` or `dict` of `str`):
src/diffusers/pipelines/dit/pipeline_dit.py:67
↓ 2 callersMethodget_latents
(self, seed=0, shape=(4, 4, 64, 64), fp16=False)
tests/models/test_models_unet_2d_flax.py:27
↓ 2 callersMethodget_model_optimizer
(self, resolution=32)
tests/others/test_training.py:29
↓ 2 callersMethodget_order_list
Computes the solver order at each time step. Args: num_inference_steps (`int`): The number of diffusion
src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:201
↓ 2 callersFunctionget_peft_kwargs
(rank_dict, network_alpha_dict, peft_state_dict, is_unet=True)
src/diffusers/utils/peft_utils.py:141
↓ 2 callersMethodget_pipeline_components
(self)
tests/pipelines/test_pipelines_common.py:1032
↓ 2 callersFunctionget_relative_imports
Get the list of modules that are relatively imported in a module file. Args: module_file (`str` or `os.PathLike`): The module file t
src/diffusers/utils/dynamic_modules_utils.py:79
↓ 2 callersMethodget_sample_rate
Get sample rate. Returns: `int`: Sample rate of audio.
src/diffusers/pipelines/audio_diffusion/mel.py:134
↓ 2 callersFunctionget_scheduler
Unified API to get any scheduler from its name. Args: name (`str` or `SchedulerType`): The name of the scheduler to use.
src/diffusers/optimization.py:289
↓ 2 callersMethodget_scheduler_config
(self, **kwargs)
tests/schedulers/test_scheduler_flax.py:258
↓ 2 callersMethodget_scheduler_config
(self, **kwargs)
tests/schedulers/test_scheduler_ddim_inverse.py:12
↓ 2 callersFunctionget_sqrt_alpha_prod
( state: CommonSchedulerState, original_samples: jnp.ndarray, noise: jnp.ndarray, timesteps: jnp.ndarray )
src/diffusers/schedulers/scheduling_utils_flax.py:264
↓ 2 callersFunctionget_tests_dir
Args: append_path: optional path to append to the tests dir path Return: The full path to the `tests` dir, so that the tests
src/diffusers/utils/testing_utils.py:113
↓ 2 callersMethodget_timesteps
(self, num_inference_steps, strength, device)
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_diffedit.py:751
↓ 2 callersMethodget_unet_model
(self, fp16=False, model_id="CompVis/stable-diffusion-v1-4")
tests/models/test_models_unet_2d_flax.py:32
↓ 2 callersFunctionget_velocity_common
(state: CommonSchedulerState, sample: jnp.ndarray, noise: jnp.ndarray, timesteps: jnp.ndarray)
src/diffusers/schedulers/scheduling_utils_flax.py:288
↓ 2 callersFunctionget_version
Reads the current version in the __init__.
utils/release.py:97
↓ 2 callersFunctionglobal_version_update
Update the version in all needed files.
utils/release.py:61
↓ 2 callersFunctionhttp_user_agent
Formats a user-agent string with basic info about a request.
src/diffusers/utils/hub_utils.py:77
↓ 2 callersFunctionimport_flax_or_no_model
(module, class_name)
src/diffusers/pipelines/pipeline_flax_utils.py:74
↓ 2 callersFunctionis_k_diffusion_version
Args: Compares the current k-diffusion version to a given reference with an operation. operation (`str`): A string repres
src/diffusers/utils/import_utils.py:623
↓ 2 callersFunctionis_opencv_available
()
src/diffusers/utils/import_utils.py:316
↓ 2 callersFunctionjax_cosine_distance
(emb_1, emb_2, eps=1e-12)
src/diffusers/pipelines/stable_diffusion/safety_checker_flax.py:25
↓ 2 callersFunctionkeep_doc_examples_only
Remove everything from the code content except the doc examples (used to determined if a diff should trigger doc tests or not). Args:
utils/tests_fetcher.py:138
↓ 2 callersMethodload_lora_into_unet
This will load the LoRA layers specified in `state_dict` into `unet`. Parameters: state_dict (`dict`): A
src/diffusers/loaders/lora.py:364
↓ 2 callersMethodload_model
Loads an ONNX Inference session with an ExecutionProvider. Default provider is `CPUExecutionProvider` Arguments: path (`
src/diffusers/pipelines/onnx_utils.py:63
↓ 2 callersFunctionload_prior_checkpoint_to_model
(checkpoint, model)
scripts/convert_shap_e_to_diffusers.py:991
↓ 2 callersMethodlog_Q_t_transitioning_to_known_class
Calculates the log probabilities of the rows from the (cumulative or non-cumulative) transition matrix for each latent pixel in `x_t`
src/diffusers/schedulers/scheduling_vq_diffusion.py:356
↓ 2 callersMethodlora_state_dict
r""" Return state dict for lora weights and the network alphas. <Tip warning={true}> We support loading A1111 formatted LoRA
src/diffusers/loaders/lora.py:135
↓ 2 callersFunctionmask_pil_to_torch
(mask, height, width)
src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:118
↓ 2 callersMethodmodelcard_has_connected_pipeline
(self, model_id)
tests/pipelines/test_pipelines_combined.py:44
↓ 2 callersFunctionmovq_attention_to_diffusers_checkpoint
(checkpoint, *, diffusers_attention_prefix, attention_prefix)
scripts/convert_kandinsky_to_diffusers.py:1220
↓ 2 callersFunctionmovq_attention_to_diffusers_checkpoint_spatial_norm
(checkpoint, *, diffusers_attention_prefix, attention_prefix)
scripts/convert_kandinsky_to_diffusers.py:1240
↓ 2 callersFunctionmovq_resnet_to_diffusers_checkpoint
(resnet, checkpoint, *, diffusers_resnet_prefix, resnet_prefix)
scripts/convert_kandinsky_to_diffusers.py:1158
↓ 2 callersFunctionmovq_resnet_to_diffusers_checkpoint_spatial_norm
(resnet, checkpoint, *, diffusers_resnet_prefix, resnet_prefix)
scripts/convert_kandinsky_to_diffusers.py:1185
↓ 2 callersFunctionnorm_cdf
(x)
src/diffusers/pipelines/unidiffuser/modeling_uvit.py:23
↓ 2 callersFunctionoptimize
(onnx_graph, name, verbose)
scripts/convert_stable_diffusion_controlnet_to_onnx.py:66
↓ 2 callersFunctionoutput_layers_from_original_checkpoint
(model, diffuser_output_prefix, original_output_prefix)
scripts/convert_blipdiffusion_to_diffusers.py:137
↓ 2 callersFunctionparse_flag_from_env
(key, default=False)
src/diffusers/utils/testing_utils.py:134
↓ 2 callersMethodpartition
Partitions t0 and t1 into n_samples intervals. Args: ts: [batch_size, *shape, n_samples, 1] Return:
src/diffusers/pipelines/shap_e/renderer.py:245
↓ 2 callersMethodpred_epsilon
(self, sample, model_output, timestep)
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_sag.py:802
↓ 2 callersMethodpred_x0
(self, sample, model_output, timestep)
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_sag.py:782
↓ 2 callersMethodprepare_control_image
( self, image, width, height, batch_size, num_images_per_promp
src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:741
↓ 2 callersMethodprepare_control_image
( self, image, width, height, batch_size, num_images_per_promp
src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:852
↓ 2 callersMethodprepare_control_image
( self, image, width, height, batch_size, num_images_per_promp
src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:695
↓ 2 callersMethodprepare_control_image
( self, image, width, height, batch_size, num_images_per_promp
src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:758
↓ 2 callersMethodprepare_image
( self, image, width, height, batch_size, num_images_per_promp
src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:734
↓ 2 callersMethodprepare_image
( self, image, width, height, batch_size, num_images_per_promp
src/diffusers/pipelines/controlnet/pipeline_controlnet.py:723
↓ 2 callersMethodprepare_image_inputs
(self, image: Union[Image.Image, List[Image.Image]])
src/diffusers/pipelines/controlnet/pipeline_flax_controlnet.py:194
↓ 2 callersMethodprepare_image_latents
(self, image, batch_size, dtype, device, generator=None)
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_diffedit.py:792
↓ 2 callersMethodprepare_init_args_and_inputs_for_common
(self)
tests/models/test_unet_blocks_common.py:74
↓ 2 callersMethodprepare_latents
(self, shape, dtype, device, generator, latents, scheduler)
src/diffusers/pipelines/unclip/pipeline_unclip_image_variation.py:111
← previousnext →901–1,000 of 7,383, ranked by callers