Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/LetterLiGo/SafeGen_CCS2024
/ functions
Functions
7,383 in github.com/LetterLiGo/SafeGen_CCS2024
⨍
Functions
7,383
◇
Types & classes
1,211
↳
Endpoints
4
Method
test_silu
(self)
tests/models/test_activations.py:20
Method
test_simple_inference
Tests a simple inference and makes sure it works as expected
tests/lora/test_lora_layers_peft.py:203
Method
test_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
Method
test_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
Method
test_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
Method
test_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
Method
test_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
Method
test_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
Method
test_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
Method
test_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
Method
test_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
Method
test_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
Method
test_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
Method
test_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
Method
test_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
Method
test_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
Method
test_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
Method
test_sinoid_embeddings_hardcoded
(self)
tests/models/test_layers_utils.py:90
Method
test_smart_download
(self)
tests/pipelines/test_pipelines.py:1681
Method
test_solver_order_and_type
(self)
tests/schedulers/test_scheduler_dpm_single.py:178
Method
test_solver_order_and_type
(self)
tests/schedulers/test_scheduler_unipc.py:182
Method
test_solver_order_and_type
(self)
tests/schedulers/test_scheduler_deis.py:185
Method
test_solver_order_and_type
(self)
tests/schedulers/test_scheduler_dpm_multi.py:172
Method
test_solver_order_and_type
(self)
tests/schedulers/test_scheduler_dpm_multi_inverse.py:165
Method
test_spatial_transformer_ada_norm_layers
(self)
tests/models/test_layers_utils.py:466
Method
test_spatial_transformer_attention_bias
(self)
tests/models/test_layers_utils.py:523
Method
test_spatial_transformer_cross_attention_dim
(self)
tests/models/test_layers_utils.py:340
Method
test_spatial_transformer_default
(self)
tests/models/test_layers_utils.py:316
Method
test_spatial_transformer_default_ff_layers
(self)
tests/models/test_layers_utils.py:477
Method
test_spatial_transformer_default_norm_layers
(self)
tests/models/test_layers_utils.py:460
Method
test_spatial_transformer_discrete
(self)
tests/models/test_layers_utils.py:431
Method
test_spatial_transformer_dropout
(self)
tests/models/test_layers_utils.py:402
Method
test_spatial_transformer_geglu_approx_ff_layers
(self)
tests/models/test_layers_utils.py:500
Method
test_spatial_transformer_timestep
(self)
tests/models/test_layers_utils.py:364
Method
test_special_attn_proc
(self)
tests/models/test_models_unet_2d_condition.py:428
Method
test_spectrogram
(self)
tests/pipelines/spectrogram_diffusion/test_spectrogram_diffusion.py:228
Method
test_spectrogram_diffusion
(self)
tests/pipelines/spectrogram_diffusion/test_spectrogram_diffusion.py:126
Method
test_spectrogram_fast
(self)
tests/pipelines/spectrogram_diffusion/test_spectrogram_diffusion.py:209
Method
test_stabilityai_sd_v2_flax_vs_torch_fp16
(self, seed, timestep, expected_slice)
tests/models/test_models_unet_2d_flax.py:86
Method
test_stabilityai_sd_v2_fp16
(self, seed, timestep, expected_slice)
tests/models/test_models_unet_2d_condition.py:1017
Method
test_stable_diffusion
(self)
tests/models/test_models_vae.py:515
Method
test_stable_diffusion
(self, seed, expected_slice, expected_slice_mps)
tests/models/test_models_vae.py:603
Method
test_stable_diffusion
(self, seed, expected_slice, expected_slice_mps)
tests/models/test_models_vae.py:855
Method
test_stable_diffusion_1
(self)
tests/pipelines/stable_diffusion/test_stable_diffusion_k_diffusion.py:38
Method
test_stable_diffusion_1
(self)
tests/pipelines/stable_diffusion/test_stable_diffusion_sag.py:127
Method
test_stable_diffusion_1_1_pndm
(self)
tests/pipelines/stable_diffusion/test_stable_diffusion.py:686
Method
test_stable_diffusion_1_4_pndm
(self)
tests/pipelines/stable_diffusion/test_stable_diffusion.py:713
Method
test_stable_diffusion_1_4_pndm
(self)
tests/pipelines/stable_diffusion/test_stable_diffusion.py:1219
Method
test_stable_diffusion_1_5_pndm
(self)
tests/pipelines/stable_diffusion/test_stable_diffusion.py:1233
Method
test_stable_diffusion_2
(self)
tests/pipelines/stable_diffusion/test_stable_diffusion_k_diffusion.py:58
Method
test_stable_diffusion_2
(self)
tests/pipelines/stable_diffusion/test_stable_diffusion_sag.py:147
Method
test_stable_diffusion_2_0_default_ddim
(self)
tests/pipelines/stable_diffusion_2/test_stable_diffusion.py:535
Method
test_stable_diffusion_2_1_default_pndm
(self)
tests/pipelines/stable_diffusion_2/test_stable_diffusion.py:549
Method
test_stable_diffusion_2_non_square
(self)
tests/pipelines/stable_diffusion/test_stable_diffusion_sag.py:167
Method
test_stable_diffusion_2_pix2pix_full
(self)
tests/pipelines/stable_diffusion/test_stable_diffusion_pix2pix_zero.py:551
Method
test_stable_diffusion_2_pix2pix_inversion
(self)
tests/pipelines/stable_diffusion/test_stable_diffusion_pix2pix_zero.py:529
Method
test_stable_diffusion_adapter_canny_sd_v14
(self)
tests/pipelines/stable_diffusion/test_stable_diffusion_adapter.py:815
Method
test_stable_diffusion_adapter_canny_sd_v15
(self)
tests/pipelines/stable_diffusion/test_stable_diffusion_adapter.py:842
Method
test_stable_diffusion_adapter_color
(self)
tests/pipelines/stable_diffusion/test_stable_diffusion_adapter.py:601
Method
test_stable_diffusion_adapter_default_case
(self)
tests/pipelines/stable_diffusion_xl/test_stable_diffusion_xl_adapter.py:294
Method
test_stable_diffusion_adapter_default_case
(self)
tests/pipelines/stable_diffusion_xl/test_stable_diffusion_xl_adapter.py:429
Method
test_stable_diffusion_adapter_default_case
(self)
tests/pipelines/stable_diffusion/test_stable_diffusion_adapter.py:347
Method
test_stable_diffusion_adapter_default_case
(self)
tests/pipelines/stable_diffusion/test_stable_diffusion_adapter.py:370
Method
test_stable_diffusion_adapter_default_case
(self)
tests/pipelines/stable_diffusion/test_stable_diffusion_adapter.py:398
Method
test_stable_diffusion_adapter_depth
(self)
tests/pipelines/stable_diffusion/test_stable_diffusion_adapter.py:629
Method
test_stable_diffusion_adapter_depth_sd_v14
(self)
tests/pipelines/stable_diffusion/test_stable_diffusion_adapter.py:657
Method
test_stable_diffusion_adapter_depth_sd_v15
(self)
tests/pipelines/stable_diffusion/test_stable_diffusion_adapter.py:683
Method
test_stable_diffusion_adapter_keypose_sd_v14
(self)
tests/pipelines/stable_diffusion/test_stable_diffusion_adapter.py:709
Method
test_stable_diffusion_adapter_openpose_sd_v14
(self)
tests/pipelines/stable_diffusion/test_stable_diffusion_adapter.py:735
Method
test_stable_diffusion_adapter_pipeline_with_sequential_cpu_offloading
(self)
tests/pipelines/stable_diffusion/test_stable_diffusion_adapter.py:930
Method
test_stable_diffusion_adapter_seg_sd_v14
(self)
tests/pipelines/stable_diffusion/test_stable_diffusion_adapter.py:761
Method
test_stable_diffusion_adapter_sketch_sd14
(self)
tests/pipelines/stable_diffusion/test_stable_diffusion_adapter.py:870
Method
test_stable_diffusion_adapter_sketch_sd15
(self)
tests/pipelines/stable_diffusion/test_stable_diffusion_adapter.py:900
Method
test_stable_diffusion_adapter_zoedepth_sd_v15
(self)
tests/pipelines/stable_diffusion/test_stable_diffusion_adapter.py:789
Method
test_stable_diffusion_attention_slicing
(self)
tests/pipelines/stable_diffusion_2/test_stable_diffusion.py:364
Method
test_stable_diffusion_attention_slicing
(self)
tests/pipelines/stable_diffusion/test_stable_diffusion.py:768
Method
test_stable_diffusion_attention_slicing_v_pred
(self)
tests/pipelines/stable_diffusion_2/test_stable_diffusion_v_pred.py:345
Method
test_stable_diffusion_attn_processors
(self)
tests/lora/test_lora_layers_old_backend.py:315
Method
test_stable_diffusion_compile
(self)
tests/pipelines/controlnet/test_controlnet.py:962
Method
test_stable_diffusion_compile
(self)
tests/pipelines/stable_diffusion/test_stable_diffusion.py:1106
Method
test_stable_diffusion_components
Test that components property works correctly
tests/pipelines/test_pipelines.py:1165
Method
test_stable_diffusion_cycle
(self)
tests/pipelines/stable_diffusion/test_cycle_diffusion.py:136
Method
test_stable_diffusion_cycle_fp16
(self)
tests/pipelines/stable_diffusion/test_cycle_diffusion.py:156
Method
test_stable_diffusion_ddim
(self)
tests/pipelines/stable_diffusion_2/test_stable_diffusion.py:144
Method
test_stable_diffusion_ddim
(self)
tests/pipelines/stable_diffusion_2/test_stable_diffusion.py:563
Method
test_stable_diffusion_ddim
(self)
tests/pipelines/stable_diffusion/test_stable_diffusion_ldm3d.py:113
Method
test_stable_diffusion_ddim
(self)
tests/pipelines/stable_diffusion/test_stable_diffusion.py:184
Method
test_stable_diffusion_ddim
(self)
tests/pipelines/stable_diffusion/test_stable_diffusion.py:726
Method
test_stable_diffusion_ddim
(self)
tests/pipelines/stable_diffusion/test_stable_diffusion.py:1247
Method
test_stable_diffusion_ddim_factor_8
(self)
tests/pipelines/stable_diffusion/test_stable_diffusion.py:360
Method
test_stable_diffusion_decode
(self, seed, expected_slice)
tests/models/test_models_vae.py:681
Method
test_stable_diffusion_decode
(self, seed, expected_slice)
tests/models/test_models_vae.py:909
Method
test_stable_diffusion_decode_fp16
(self, seed, expected_slice)
tests/models/test_models_vae.py:704
Method
test_stable_diffusion_decode_xformers_vs_2_0
(self, seed)
tests/models/test_models_vae.py:745
Method
test_stable_diffusion_decode_xformers_vs_2_0
(self, seed)
tests/models/test_models_vae.py:929
Method
test_stable_diffusion_decode_xformers_vs_2_0_fp16
(self, seed)
tests/models/test_models_vae.py:724
Method
test_stable_diffusion_default_ddim
(self)
tests/pipelines/stable_diffusion_2/test_stable_diffusion.py:323
Method
test_stable_diffusion_depth2img_default_case
(self)
tests/pipelines/stable_diffusion_2/test_stable_diffusion_depth.py:289
Method
test_stable_diffusion_depth2img_intermediate_state
(self)
tests/pipelines/stable_diffusion_2/test_stable_diffusion_depth.py:456
Method
test_stable_diffusion_depth2img_multiple_init_images
(self)
tests/pipelines/stable_diffusion_2/test_stable_diffusion_depth.py:329
← previous
next →
6,701–6,800 of 7,383, ranked by callers