MCPcopy Create free account

hub / github.com/LetterLiGo/SafeGen_CCS2024 / functions

Functions7,383 in github.com/LetterLiGo/SafeGen_CCS2024

↓ 1 callersFunctioncheck_scheduler_doc
(overwrite=False)
utils/check_doc_toc.py:70
↓ 1 callersMethodcheck_source_inputs
( self, source_prompt=None, source_negative_prompt=None, source_prompt_embeds=
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_diffedit.py:715
↓ 1 callersFunctioncheck_submodules
()
utils/check_inits.py:274
↓ 1 callersMethodclassify_height_width_bin
Returns binned height and width.
src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:635
↓ 1 callersMethodcompute_loss
(self, predictions, targets)
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_pix2pix_zero.py:224
↓ 1 callersFunctioncompute_noise
(scheduler, prev_latents, latents, timestep, noise_pred, eta)
src/diffusers/pipelines/stable_diffusion/pipeline_cycle_diffusion.py:105
↓ 1 callersFunctioncon_pt_to_diffuser
(checkpoint_path: str, unet_config)
scripts/convert_consistency_to_diffusers.py:164
↓ 1 callersMethodconstruct_direction
Constructs the edit direction to steer the image generation process semantically.
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_pix2pix_zero.py:700
↓ 1 callersFunctionconvert
(base_model_path, checkpoint_path, LORA_PREFIX_UNET, LORA_PREFIX_TEXT_ENCODER, alpha)
scripts/convert_lora_safetensor_to_diffusers.py:26
↓ 1 callersFunctionconvert_adapter
(src_state, in_channels)
scripts/convert_original_t2i_adapter.py:26
↓ 1 callersFunctionconvert_asymmetric_autoencoder_kl_state_dict
(original_state_dict: Dict[str, Any])
scripts/convert_asymmetric_vqgan_to_diffusers.py:64
↓ 1 callersFunctionconvert_attn_naming
(name)
scripts/convert_dance_diffusion_to_diffusers.py:146
↓ 1 callersFunctionconvert_caption_decoder_to_diffusers
Converts a UniDiffuser caption_decoder.pth checkpoint to a diffusers UniDiffuserTextDecoder.
scripts/convert_unidiffuser_to_diffusers.py:602
↓ 1 callersFunctionconvert_ddpm_checkpoint
Takes a state dict and a config, and returns a converted checkpoint.
scripts/convert_ddpm_original_checkpoint_to_diffusers.py:99
↓ 1 callersFunctionconvert_from_original_zero123_ckpt
(checkpoint_path, original_config_file, extract_ema, device)
scripts/convert_zero123_to_diffusers.py:675
↓ 1 callersFunctionconvert_gligen_to_diffusers
( checkpoint_path: str, original_config_file: str, attention_type: str, image_size: int = 512,
scripts/convert_gligen_to_diffusers.py:439
↓ 1 callersFunctionconvert_gligen_unet_checkpoint
(checkpoint, config, path=None, extract_ema=False)
scripts/convert_gligen_to_diffusers.py:201
↓ 1 callersFunctionconvert_gligen_vae_checkpoint
(checkpoint, config)
scripts/convert_gligen_to_diffusers.py:83
↓ 1 callersFunctionconvert_hifigan_checkpoint
Takes a state dict and config, and returns a converted HiFiGAN vocoder checkpoint.
scripts/convert_original_audioldm2_to_diffusers.py:727
↓ 1 callersFunctionconvert_hifigan_checkpoint
Takes a state dict and config, and returns a converted HiFiGAN vocoder checkpoint.
scripts/convert_original_audioldm_to_diffusers.py:689
↓ 1 callersFunctionconvert_hifigan_checkpoint
Takes a state dict and config, and returns a converted HiFiGAN vocoder checkpoint.
scripts/convert_original_musicldm_to_diffusers.py:695
↓ 1 callersFunctionconvert_ldm_bert_checkpoint
(checkpoint, config)
src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:737
↓ 1 callersFunctionconvert_ldm_checkpoint
Takes a state dict and a config, and returns a converted checkpoint.
scripts/convert_ldm_original_checkpoint_to_diffusers.py:130
↓ 1 callersFunctionconvert_ldm_original
(checkpoint_path, config_path, output_path)
scripts/conversion_ldm_uncond.py:9
↓ 1 callersFunctionconvert_ldm_unet_checkpoint
Takes a state dict and a config, and returns a converted UNet checkpoint.
scripts/convert_original_audioldm2_to_diffusers.py:296
↓ 1 callersFunctionconvert_ldm_unet_checkpoint
Takes a state dict and a config, and returns a converted checkpoint. Compared to the original Stable Diffusion conversion, this function addi
scripts/convert_original_audioldm_to_diffusers.py:307
↓ 1 callersFunctionconvert_ldm_unet_checkpoint
Takes a state dict and a config, and returns a converted checkpoint.
scripts/convert_zero123_to_diffusers.py:244
↓ 1 callersFunctionconvert_ldm_unet_checkpoint
Takes a state dict and a config, and returns a converted checkpoint. Compared to the original Stable Diffusion conversion, this function addi
scripts/convert_original_musicldm_to_diffusers.py:303
↓ 1 callersFunctionconvert_ldm_unet_checkpoint
Takes a state dict and a config, and returns a converted checkpoint.
scripts/convert_if.py:305
↓ 1 callersFunctionconvert_ldm_unet_checkpoint
Takes a state dict and a config, and returns a converted checkpoint.
scripts/convert_ms_text_to_video_to_diffusers.py:140
↓ 1 callersFunctionconvert_ldm_vae_checkpoint
(checkpoint, config)
scripts/convert_original_audioldm2_to_diffusers.py:499
↓ 1 callersFunctionconvert_ldm_vae_checkpoint
(checkpoint, config)
scripts/convert_original_audioldm_to_diffusers.py:485
↓ 1 callersFunctionconvert_ldm_vae_checkpoint
(checkpoint, config)
scripts/convert_zero123_to_diffusers.py:510
↓ 1 callersFunctionconvert_ldm_vae_checkpoint
(checkpoint, config)
scripts/convert_original_musicldm_to_diffusers.py:481
↓ 1 callersFunctionconvert_light_adapter
(src_state)
scripts/convert_original_t2i_adapter.py:103
↓ 1 callersMethodconvert_model_output
Convert the model output to the corresponding type the DEIS algorithm needs. Args: model_output (`torch.FloatTensor`):
src/diffusers/schedulers/scheduling_deis_multistep.py:349
↓ 1 callersMethodconvert_model_output
Convert the model output to the corresponding type the DPMSolver/DPMSolver++ algorithm needs. DPM-Solver is designed to discretize an
src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py:385
↓ 1 callersMethodconvert_model_output
Convert the model output to the corresponding type that the algorithm (DPM-Solver / DPM-Solver++) needs. DPM-Solver is designed to d
src/diffusers/schedulers/scheduling_dpmsolver_multistep_flax.py:257
↓ 1 callersMethodconvert_model_output
Convert the model output to the corresponding type the DPMSolver/DPMSolver++ algorithm needs. DPM-Solver is designed to discretize an
src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:397
↓ 1 callersMethodconvert_model_output
r""" Convert the model output to the corresponding type the UniPC algorithm needs. Args: model_output (`torch.FloatTensor
src/diffusers/schedulers/scheduling_unipc_multistep.py:363
↓ 1 callersMethodconvert_model_output
Convert the model output to the corresponding type the DPMSolver/DPMSolver++ algorithm needs. DPM-Solver is designed to discretize an
src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:383
↓ 1 callersFunctionconvert_models
Function to convert models in stable diffusion controlnet pipeline into ONNX format Example: python convert_stable_diffusion_controlnet_
scripts/convert_stable_diffusion_controlnet_to_onnx.py:228
↓ 1 callersFunctionconvert_models
Function to convert models in stable diffusion controlnet pipeline into TensorRT format Example: python convert_stable_diffusion_control
scripts/convert_stable_diffusion_controlnet_to_tensorrt.py:7
↓ 1 callersFunctionconvert_models
(model_path: str, output_path: str, opset: int, fp16: bool = False)
scripts/convert_vae_diff_to_onnx.py:68
↓ 1 callersFunctionconvert_models
(model_path: str, output_path: str, opset: int, fp16: bool = False)
scripts/convert_stable_diffusion_checkpoint_to_onnx.py:71
↓ 1 callersFunctionconvert_ncsnpp_checkpoint
Takes a state dict and the path to
scripts/convert_ncsnpp_original_checkpoint_to_diffusers.py:25
↓ 1 callersFunctionconvert_open_clap_checkpoint
Takes a state dict and returns a converted CLAP checkpoint.
scripts/convert_original_audioldm2_to_diffusers.py:632
↓ 1 callersFunctionconvert_open_clap_checkpoint
Takes a state dict and returns a converted CLAP checkpoint.
scripts/convert_original_audioldm_to_diffusers.py:609
↓ 1 callersFunctionconvert_open_clap_checkpoint
Takes a state dict and returns a converted CLAP checkpoint.
scripts/convert_original_musicldm_to_diffusers.py:614
↓ 1 callersFunctionconvert_open_clip_checkpoint
(checkpoint)
scripts/convert_gligen_to_diffusers.py:35
↓ 1 callersFunctionconvert_openai_text_enc_state_dict
(text_enc_dict)
scripts/convert_diffusers_to_original_sdxl.py:265
↓ 1 callersFunctionconvert_openclip_text_enc_state_dict
(text_enc_dict)
scripts/convert_diffusers_to_original_sdxl.py:218
↓ 1 callersFunctionconvert_paint_by_example_checkpoint
(checkpoint, local_files_only=False)
src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:851
↓ 1 callersFunctionconvert_projection_checkpoint
(checkpoint)
scripts/convert_original_audioldm2_to_diffusers.py:747
↓ 1 callersFunctionconvert_pytorch_state_dict_to_flax
(pt_state_dict, flax_model, init_key=42)
src/diffusers/models/modeling_flax_pytorch_utils.py:106
↓ 1 callersFunctionconvert_resconv_naming
(name)
scripts/convert_dance_diffusion_to_diffusers.py:135
↓ 1 callersFunctionconvert_safety_checker
(p_head_path, w_head_path)
scripts/convert_if.py:165
↓ 1 callersFunctionconvert_stage_1_pipeline
(tokenizer, text_encoder, feature_extractor, safety_checker, args)
scripts/convert_if.py:79
↓ 1 callersFunctionconvert_state_dict
Convert the state dict of a U-Net model to match the key format expected by Kandinsky3UNet model. Args: unet_model (torch.nn.Module):
scripts/convert_kandinsky3_unet.py:36
↓ 1 callersFunctionconvert_state_dict
Convert the state dict of a U-Net model to match the key format expected by Kandinsky3UNet model. Args: unet_model (torch.nn.Module):
tests/convert_kandinsky3_unet.py:36
↓ 1 callersMethodconvert_state_dict_legacy_attn_format
(self, state_dict, network_alphas)
src/diffusers/loaders/unet.py:378
↓ 1 callersFunctionconvert_state_dict_to_diffusers
r""" Converts a state dict to new diffusers format. The state dict can be from previous diffusers format (`OLD_DIFFUSERS`), or PEFT format (`P
src/diffusers/utils/state_dict_utils.py:170
↓ 1 callersFunctionconvert_state_dict_to_peft
r""" Converts a state dict to the PEFT format The state dict can be from previous diffusers format (`OLD_DIFFUSERS`), or new diffusers format
src/diffusers/utils/state_dict_utils.py:143
↓ 1 callersFunctionconvert_text_enc_state_dict
(text_enc_dict)
scripts/convert_diffusers_to_original_stable_diffusion.py:260
↓ 1 callersFunctionconvert_text_enc_state_dict_v20
(text_enc_dict)
scripts/convert_diffusers_to_original_stable_diffusion.py:213
↓ 1 callersMethodconvert_to_grayscale
Converts a PIL image to grayscale format.
src/diffusers/image_processor.py:161
↓ 1 callersMethodconvert_to_pt
(self, image)
tests/pipelines/paint_by_example/test_paint_by_example.py:95
↓ 1 callersMethodconvert_to_rgb
Converts a PIL image to RGB format.
src/diffusers/image_processor.py:152
↓ 1 callersFunctionconvert_to_variant
(filename)
src/diffusers/pipelines/pipeline_utils.py:235
↓ 1 callersFunctionconvert_unet_state_dict
(unet_state_dict)
scripts/convert_diffusers_to_original_sdxl.py:96
↓ 1 callersFunctionconvert_unet_state_dict
(unet_state_dict)
scripts/convert_diffusers_to_original_stable_diffusion.py:92
↓ 1 callersFunctionconvert_uvit_to_diffusers
Converts a UniDiffuser uvit_v*.pth checkpoint to a diffusers UniDiffusersModel.
scripts/convert_unidiffuser_to_diffusers.py:539
↓ 1 callersFunctionconvert_vae_state_dict
(vae_state_dict)
scripts/convert_diffusers_to_original_sdxl.py:173
↓ 1 callersFunctionconvert_vae_state_dict
(vae_state_dict)
scripts/convert_diffusers_to_original_stable_diffusion.py:168
↓ 1 callersFunctionconvert_vae_to_diffusers
Converts a UniDiffuser autoencoder_kl.pth checkpoint to a diffusers AutoencoderKL.
scripts/convert_unidiffuser_to_diffusers.py:348
↓ 1 callersFunctionconvert_vd_vae_checkpoint
(checkpoint, config)
scripts/convert_versatile_diffusion_to_diffusers.py:574
↓ 1 callersFunctionconvert_vq_autoenc_checkpoint
Takes a state dict and a config, and returns a converted checkpoint.
scripts/convert_ddpm_original_checkpoint_to_diffusers.py:235
↓ 1 callersFunctioncoords_grid
(batch, ht, wd, device)
src/diffusers/pipelines/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:201
↓ 1 callersFunctioncoords_grid
(batch, ht, wd, device)
src/diffusers/pipelines/text_to_video_synthesis/pipeline_text_to_video_zero.py:192
↓ 1 callersMethodcreate
(cls)
src/diffusers/schedulers/scheduling_karras_ve_flax.py:37
↓ 1 callersMethodcreate
(cls)
src/diffusers/schedulers/scheduling_sde_ve_flax.py:37
↓ 1 callersFunctioncreate_image_unet_diffusers_config
Creates a config for the diffusers based on the config of the VD model.
scripts/convert_versatile_diffusion_to_diffusers.py:259
↓ 1 callersFunctioncreate_ip_adapter_state_dict
(model)
tests/models/test_models_unet_2d_condition.py:49
↓ 1 callersFunctioncreate_ldm_bert_config
(original_config)
src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:373
↓ 1 callersFunctioncreate_mc_lookup_table
()
scripts/convert_shap_e_to_diffusers.py:830
↓ 1 callersFunctioncreate_module_to_test_map
Extract the tests from the reverse_dependency_map and potentially filters the model tests. Args: reverse_map (`Dict[str, List[str]]`
utils/tests_fetcher.py:777
↓ 1 callersFunctioncreate_motion_field
Create translation motion field Args: motion_field_strength_x: motion strength along x-axis motion_field_strength_y: motion
src/diffusers/pipelines/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:237
↓ 1 callersFunctioncreate_motion_field
Create translation motion field Args: motion_field_strength_x: motion strength along x-axis motion_field_strength_y: motion
src/diffusers/pipelines/text_to_video_synthesis/pipeline_text_to_video_zero.py:226
↓ 1 callersFunctioncreate_motion_field_and_warp_latents
Creates translation motion and warps the latents accordingly Args: motion_field_strength_x: motion strength along x-axis mot
src/diffusers/pipelines/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:261
↓ 1 callersFunctioncreate_motion_field_and_warp_latents
Creates translation motion and warps the latents accordingly Args: motion_field_strength_x: motion strength along x-axis mot
src/diffusers/pipelines/text_to_video_synthesis/pipeline_text_to_video_zero.py:249
↓ 1 callersFunctioncreate_pan_cameras
(size: int)
src/diffusers/pipelines/shap_e/camera.py:122
↓ 1 callersFunctioncreate_prior_lora_layers
(unet: nn.Module)
tests/pipelines/wuerstchen/test_wuerstchen_prior.py:45
↓ 1 callersFunctioncreate_reverse_dependency_tree
Create a list of all edges (a, b) which mean that modifying a impacts b with a going over all module and test files.
utils/tests_fetcher.py:616
↓ 1 callersFunctioncreate_rules_function
(rules_dict, last_lr_multiple)
src/diffusers/optimization.py:108
↓ 1 callersMethodcreate_state
(self, common: Optional[CommonSchedulerState] = None)
src/diffusers/schedulers/scheduling_ddim_flax.py:127
↓ 1 callersFunctioncreate_text_decoder_config
(config_type)
scripts/convert_unidiffuser_to_diffusers.py:201
↓ 1 callersFunctioncreate_text_decoder_config_big
()
scripts/convert_unidiffuser_to_diffusers.py:326
↓ 1 callersFunctioncreate_text_decoder_config_test
()
scripts/convert_unidiffuser_to_diffusers.py:259
↓ 1 callersFunctioncreate_text_unet_diffusers_config
Creates a config for the diffusers based on the config of the VD model.
scripts/convert_versatile_diffusion_to_diffusers.py:298
↓ 1 callersFunctioncreate_transformers_vocoder_config
Creates a config for transformers SpeechT5HifiGan based on the config of the vocoder model.
scripts/convert_original_audioldm2_to_diffusers.py:691
← previousnext →1,401–1,500 of 7,383, ranked by callers