MCPcopy Create free account

hub / github.com/LetterLiGo/SafeGen_CCS2024 / functions

Functions7,383 in github.com/LetterLiGo/SafeGen_CCS2024

Methodtest_silu
(self)
tests/models/test_activations.py:20
Methodtest_simple_inference
Tests a simple inference and makes sure it works as expected
tests/lora/test_lora_layers_peft.py:203
Methodtest_simple_inference_save_pretrained
Tests a simple usecase where users could use saving utilities for LoRA through save_pretrained
tests/lora/test_lora_layers_peft.py:446
Methodtest_simple_inference_with_text_lora
Tests a simple inference with lora attached on the text encoder and makes sure it works as expected
tests/lora/test_lora_layers_peft.py:217
Methodtest_simple_inference_with_text_lora_and_scale
Tests a simple inference with lora attached on the text encoder + scale argument and makes sure it works as expected
tests/lora/test_lora_layers_peft.py:248
Methodtest_simple_inference_with_text_lora_fused
Tests a simple inference with lora attached into text encoder + fuses the lora weights into base model and makes sure it works as exp
tests/lora/test_lora_layers_peft.py:295
Methodtest_simple_inference_with_text_lora_save_load
Tests a simple usecase where users could use saving utilities for LoRA.
tests/lora/test_lora_layers_peft.py:381
Methodtest_simple_inference_with_text_lora_unet_fused
Tests a simple inference with lora attached into text encoder + fuses the lora weights into base model and makes sure it works as exp
tests/lora/test_lora_layers_peft.py:623
Methodtest_simple_inference_with_text_lora_unloaded
Tests a simple inference with lora attached to text encoder, then unloads the lora weights and makes sure it works as expected
tests/lora/test_lora_layers_peft.py:337
Methodtest_simple_inference_with_text_unet_lora_and_scale
Tests a simple inference with lora attached on the text encoder + Unet + scale argument and makes sure it works as expected
tests/lora/test_lora_layers_peft.py:569
Methodtest_simple_inference_with_text_unet_lora_save_load
Tests a simple usecase where users could use saving utilities for LoRA for Unet + text encoder
tests/lora/test_lora_layers_peft.py:497
Methodtest_simple_inference_with_text_unet_lora_unfused
Tests a simple inference with lora attached to text encoder and unet, then unloads the lora weights and makes sure it works as expect
tests/lora/test_lora_layers_peft.py:716
Methodtest_simple_inference_with_text_unet_lora_unfused_torch_compile
Tests a simple inference with lora attached to text encoder and unet, then unloads the lora weights and makes sure it works as expect
tests/lora/test_lora_layers_peft.py:1099
Methodtest_simple_inference_with_text_unet_lora_unloaded
Tests a simple inference with lora attached to text encoder and unet, then unloads the lora weights and makes sure it works as expect
tests/lora/test_lora_layers_peft.py:669
Methodtest_simple_inference_with_text_unet_multi_adapter
Tests a simple inference with lora attached to text encoder and unet, attaches multiple adapters and set them
tests/lora/test_lora_layers_peft.py:766
Methodtest_simple_inference_with_text_unet_multi_adapter_delete_adapter
Tests a simple inference with lora attached to text encoder and unet, attaches multiple adapters and set/delete them
tests/lora/test_lora_layers_peft.py:834
Methodtest_simple_inference_with_text_unet_multi_adapter_weighted
Tests a simple inference with lora attached to text encoder and unet, attaches multiple adapters and set them
tests/lora/test_lora_layers_peft.py:924
Methodtest_sinoid_embeddings_hardcoded
(self)
tests/models/test_layers_utils.py:90
Methodtest_smart_download
(self)
tests/pipelines/test_pipelines.py:1681
Methodtest_solver_order_and_type
(self)
tests/schedulers/test_scheduler_dpm_single.py:178
Methodtest_solver_order_and_type
(self)
tests/schedulers/test_scheduler_unipc.py:182
Methodtest_solver_order_and_type
(self)
tests/schedulers/test_scheduler_deis.py:185
Methodtest_solver_order_and_type
(self)
tests/schedulers/test_scheduler_dpm_multi.py:172
Methodtest_solver_order_and_type
(self)
tests/schedulers/test_scheduler_dpm_multi_inverse.py:165
Methodtest_spatial_transformer_ada_norm_layers
(self)
tests/models/test_layers_utils.py:466
Methodtest_spatial_transformer_attention_bias
(self)
tests/models/test_layers_utils.py:523
Methodtest_spatial_transformer_cross_attention_dim
(self)
tests/models/test_layers_utils.py:340
Methodtest_spatial_transformer_default
(self)
tests/models/test_layers_utils.py:316
Methodtest_spatial_transformer_default_ff_layers
(self)
tests/models/test_layers_utils.py:477
Methodtest_spatial_transformer_default_norm_layers
(self)
tests/models/test_layers_utils.py:460
Methodtest_spatial_transformer_discrete
(self)
tests/models/test_layers_utils.py:431
Methodtest_spatial_transformer_dropout
(self)
tests/models/test_layers_utils.py:402
Methodtest_spatial_transformer_geglu_approx_ff_layers
(self)
tests/models/test_layers_utils.py:500
Methodtest_spatial_transformer_timestep
(self)
tests/models/test_layers_utils.py:364
Methodtest_special_attn_proc
(self)
tests/models/test_models_unet_2d_condition.py:428
Methodtest_spectrogram
(self)
tests/pipelines/spectrogram_diffusion/test_spectrogram_diffusion.py:228
Methodtest_spectrogram_diffusion
(self)
tests/pipelines/spectrogram_diffusion/test_spectrogram_diffusion.py:126
Methodtest_spectrogram_fast
(self)
tests/pipelines/spectrogram_diffusion/test_spectrogram_diffusion.py:209
Methodtest_stabilityai_sd_v2_flax_vs_torch_fp16
(self, seed, timestep, expected_slice)
tests/models/test_models_unet_2d_flax.py:86
Methodtest_stabilityai_sd_v2_fp16
(self, seed, timestep, expected_slice)
tests/models/test_models_unet_2d_condition.py:1017
Methodtest_stable_diffusion
(self)
tests/models/test_models_vae.py:515
Methodtest_stable_diffusion
(self, seed, expected_slice, expected_slice_mps)
tests/models/test_models_vae.py:603
Methodtest_stable_diffusion
(self, seed, expected_slice, expected_slice_mps)
tests/models/test_models_vae.py:855
Methodtest_stable_diffusion_1
(self)
tests/pipelines/stable_diffusion/test_stable_diffusion_k_diffusion.py:38
Methodtest_stable_diffusion_1
(self)
tests/pipelines/stable_diffusion/test_stable_diffusion_sag.py:127
Methodtest_stable_diffusion_1_1_pndm
(self)
tests/pipelines/stable_diffusion/test_stable_diffusion.py:686
Methodtest_stable_diffusion_1_4_pndm
(self)
tests/pipelines/stable_diffusion/test_stable_diffusion.py:713
Methodtest_stable_diffusion_1_4_pndm
(self)
tests/pipelines/stable_diffusion/test_stable_diffusion.py:1219
Methodtest_stable_diffusion_1_5_pndm
(self)
tests/pipelines/stable_diffusion/test_stable_diffusion.py:1233
Methodtest_stable_diffusion_2
(self)
tests/pipelines/stable_diffusion/test_stable_diffusion_k_diffusion.py:58
Methodtest_stable_diffusion_2
(self)
tests/pipelines/stable_diffusion/test_stable_diffusion_sag.py:147
Methodtest_stable_diffusion_2_0_default_ddim
(self)
tests/pipelines/stable_diffusion_2/test_stable_diffusion.py:535
Methodtest_stable_diffusion_2_1_default_pndm
(self)
tests/pipelines/stable_diffusion_2/test_stable_diffusion.py:549
Methodtest_stable_diffusion_2_non_square
(self)
tests/pipelines/stable_diffusion/test_stable_diffusion_sag.py:167
Methodtest_stable_diffusion_2_pix2pix_full
(self)
tests/pipelines/stable_diffusion/test_stable_diffusion_pix2pix_zero.py:551
Methodtest_stable_diffusion_2_pix2pix_inversion
(self)
tests/pipelines/stable_diffusion/test_stable_diffusion_pix2pix_zero.py:529
Methodtest_stable_diffusion_adapter_canny_sd_v14
(self)
tests/pipelines/stable_diffusion/test_stable_diffusion_adapter.py:815
Methodtest_stable_diffusion_adapter_canny_sd_v15
(self)
tests/pipelines/stable_diffusion/test_stable_diffusion_adapter.py:842
Methodtest_stable_diffusion_adapter_color
(self)
tests/pipelines/stable_diffusion/test_stable_diffusion_adapter.py:601
Methodtest_stable_diffusion_adapter_default_case
(self)
tests/pipelines/stable_diffusion_xl/test_stable_diffusion_xl_adapter.py:294
Methodtest_stable_diffusion_adapter_default_case
(self)
tests/pipelines/stable_diffusion_xl/test_stable_diffusion_xl_adapter.py:429
Methodtest_stable_diffusion_adapter_default_case
(self)
tests/pipelines/stable_diffusion/test_stable_diffusion_adapter.py:347
Methodtest_stable_diffusion_adapter_default_case
(self)
tests/pipelines/stable_diffusion/test_stable_diffusion_adapter.py:370
Methodtest_stable_diffusion_adapter_default_case
(self)
tests/pipelines/stable_diffusion/test_stable_diffusion_adapter.py:398
Methodtest_stable_diffusion_adapter_depth
(self)
tests/pipelines/stable_diffusion/test_stable_diffusion_adapter.py:629
Methodtest_stable_diffusion_adapter_depth_sd_v14
(self)
tests/pipelines/stable_diffusion/test_stable_diffusion_adapter.py:657
Methodtest_stable_diffusion_adapter_depth_sd_v15
(self)
tests/pipelines/stable_diffusion/test_stable_diffusion_adapter.py:683
Methodtest_stable_diffusion_adapter_keypose_sd_v14
(self)
tests/pipelines/stable_diffusion/test_stable_diffusion_adapter.py:709
Methodtest_stable_diffusion_adapter_openpose_sd_v14
(self)
tests/pipelines/stable_diffusion/test_stable_diffusion_adapter.py:735
Methodtest_stable_diffusion_adapter_pipeline_with_sequential_cpu_offloading
(self)
tests/pipelines/stable_diffusion/test_stable_diffusion_adapter.py:930
Methodtest_stable_diffusion_adapter_seg_sd_v14
(self)
tests/pipelines/stable_diffusion/test_stable_diffusion_adapter.py:761
Methodtest_stable_diffusion_adapter_sketch_sd14
(self)
tests/pipelines/stable_diffusion/test_stable_diffusion_adapter.py:870
Methodtest_stable_diffusion_adapter_sketch_sd15
(self)
tests/pipelines/stable_diffusion/test_stable_diffusion_adapter.py:900
Methodtest_stable_diffusion_adapter_zoedepth_sd_v15
(self)
tests/pipelines/stable_diffusion/test_stable_diffusion_adapter.py:789
Methodtest_stable_diffusion_attention_slicing
(self)
tests/pipelines/stable_diffusion_2/test_stable_diffusion.py:364
Methodtest_stable_diffusion_attention_slicing
(self)
tests/pipelines/stable_diffusion/test_stable_diffusion.py:768
Methodtest_stable_diffusion_attention_slicing_v_pred
(self)
tests/pipelines/stable_diffusion_2/test_stable_diffusion_v_pred.py:345
Methodtest_stable_diffusion_attn_processors
(self)
tests/lora/test_lora_layers_old_backend.py:315
Methodtest_stable_diffusion_compile
(self)
tests/pipelines/controlnet/test_controlnet.py:962
Methodtest_stable_diffusion_compile
(self)
tests/pipelines/stable_diffusion/test_stable_diffusion.py:1106
Methodtest_stable_diffusion_components
Test that components property works correctly
tests/pipelines/test_pipelines.py:1165
Methodtest_stable_diffusion_cycle
(self)
tests/pipelines/stable_diffusion/test_cycle_diffusion.py:136
Methodtest_stable_diffusion_cycle_fp16
(self)
tests/pipelines/stable_diffusion/test_cycle_diffusion.py:156
Methodtest_stable_diffusion_ddim
(self)
tests/pipelines/stable_diffusion_2/test_stable_diffusion.py:144
Methodtest_stable_diffusion_ddim
(self)
tests/pipelines/stable_diffusion_2/test_stable_diffusion.py:563
Methodtest_stable_diffusion_ddim
(self)
tests/pipelines/stable_diffusion/test_stable_diffusion_ldm3d.py:113
Methodtest_stable_diffusion_ddim
(self)
tests/pipelines/stable_diffusion/test_stable_diffusion.py:184
Methodtest_stable_diffusion_ddim
(self)
tests/pipelines/stable_diffusion/test_stable_diffusion.py:726
Methodtest_stable_diffusion_ddim
(self)
tests/pipelines/stable_diffusion/test_stable_diffusion.py:1247
Methodtest_stable_diffusion_ddim_factor_8
(self)
tests/pipelines/stable_diffusion/test_stable_diffusion.py:360
Methodtest_stable_diffusion_decode
(self, seed, expected_slice)
tests/models/test_models_vae.py:681
Methodtest_stable_diffusion_decode
(self, seed, expected_slice)
tests/models/test_models_vae.py:909
Methodtest_stable_diffusion_decode_fp16
(self, seed, expected_slice)
tests/models/test_models_vae.py:704
Methodtest_stable_diffusion_decode_xformers_vs_2_0
(self, seed)
tests/models/test_models_vae.py:745
Methodtest_stable_diffusion_decode_xformers_vs_2_0
(self, seed)
tests/models/test_models_vae.py:929
Methodtest_stable_diffusion_decode_xformers_vs_2_0_fp16
(self, seed)
tests/models/test_models_vae.py:724
Methodtest_stable_diffusion_default_ddim
(self)
tests/pipelines/stable_diffusion_2/test_stable_diffusion.py:323
Methodtest_stable_diffusion_depth2img_default_case
(self)
tests/pipelines/stable_diffusion_2/test_stable_diffusion_depth.py:289
Methodtest_stable_diffusion_depth2img_intermediate_state
(self)
tests/pipelines/stable_diffusion_2/test_stable_diffusion_depth.py:456
Methodtest_stable_diffusion_depth2img_multiple_init_images
(self)
tests/pipelines/stable_diffusion_2/test_stable_diffusion_depth.py:329
← previousnext →6,701–6,800 of 7,383, ranked by callers