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
from_pretrained
(cls, *args, **kwargs)
src/diffusers/utils/dummy_pt_objects.py:1034
Method
from_pretrained
(cls, *args, **kwargs)
src/diffusers/utils/dummy_pt_objects.py:1049
Method
from_pretrained
(cls, *args, **kwargs)
src/diffusers/utils/dummy_onnx_objects.py:16
Method
from_pretrained
(cls, *args, **kwargs)
src/diffusers/utils/dummy_torch_and_transformers_and_k_diffusion_objects.py:16
Method
from_pretrained
(cls, *args, **kwargs)
src/diffusers/utils/dummy_note_seq_objects.py:16
Method
from_pretrained
(cls, *args, **kwargs)
src/diffusers/utils/dummy_torch_and_librosa_objects.py:16
Method
from_pretrained
(cls, *args, **kwargs)
src/diffusers/utils/dummy_torch_and_librosa_objects.py:31
Method
from_pretrained
(cls, *args, **kwargs)
src/diffusers/utils/dummy_torch_and_transformers_and_onnx_objects.py:16
Method
from_pretrained
(cls, *args, **kwargs)
src/diffusers/utils/dummy_torch_and_transformers_and_onnx_objects.py:31
Method
from_pretrained
(cls, *args, **kwargs)
src/diffusers/utils/dummy_torch_and_transformers_and_onnx_objects.py:46
Method
from_pretrained
(cls, *args, **kwargs)
src/diffusers/utils/dummy_torch_and_transformers_and_onnx_objects.py:61
Method
from_pretrained
(cls, *args, **kwargs)
src/diffusers/utils/dummy_torch_and_transformers_and_onnx_objects.py:76
Method
from_pretrained
(cls, *args, **kwargs)
src/diffusers/utils/dummy_torch_and_transformers_and_onnx_objects.py:91
Method
from_pretrained
(cls, *args, **kwargs)
src/diffusers/utils/dummy_torch_and_torchsde_objects.py:16
Method
from_pretrained
(cls, *args, **kwargs)
src/diffusers/utils/dummy_flax_and_transformers_objects.py:16
Method
from_pretrained
(cls, *args, **kwargs)
src/diffusers/utils/dummy_flax_and_transformers_objects.py:31
Method
from_pretrained
(cls, *args, **kwargs)
src/diffusers/utils/dummy_flax_and_transformers_objects.py:46
Method
from_pretrained
(cls, *args, **kwargs)
src/diffusers/utils/dummy_flax_and_transformers_objects.py:61
Method
from_pretrained
(cls, *args, **kwargs)
src/diffusers/utils/dummy_flax_and_transformers_objects.py:76
Method
from_pretrained
(cls, *args, **kwargs)
src/diffusers/utils/dummy_transformers_and_torch_and_note_seq_objects.py:16
Method
from_pretrained
(cls, *args, **kwargs)
src/diffusers/utils/dummy_flax_objects.py:16
Method
from_pretrained
(cls, *args, **kwargs)
src/diffusers/utils/dummy_flax_objects.py:31
Method
from_pretrained
(cls, *args, **kwargs)
src/diffusers/utils/dummy_flax_objects.py:46
Method
from_pretrained
(cls, *args, **kwargs)
src/diffusers/utils/dummy_flax_objects.py:61
Method
from_pretrained
(cls, *args, **kwargs)
src/diffusers/utils/dummy_flax_objects.py:76
Method
from_pretrained
(cls, *args, **kwargs)
src/diffusers/utils/dummy_flax_objects.py:91
Method
from_pretrained
(cls, *args, **kwargs)
src/diffusers/utils/dummy_flax_objects.py:106
Method
from_pretrained
(cls, *args, **kwargs)
src/diffusers/utils/dummy_flax_objects.py:121
Method
from_pretrained
(cls, *args, **kwargs)
src/diffusers/utils/dummy_flax_objects.py:136
Method
from_pretrained
(cls, *args, **kwargs)
src/diffusers/utils/dummy_flax_objects.py:151
Method
from_pretrained
(cls, *args, **kwargs)
src/diffusers/utils/dummy_flax_objects.py:166
Method
from_pretrained
(cls, *args, **kwargs)
src/diffusers/utils/dummy_flax_objects.py:181
Method
from_pretrained
(cls, *args, **kwargs)
src/diffusers/utils/dummy_flax_objects.py:196
Method
from_pretrained
(cls, *args, **kwargs)
src/diffusers/utils/dummy_flax_objects.py:211
Method
from_pretrained
( cls, model_id: Union[str, Path], force_download: bool = True, use_auth_token
src/diffusers/pipelines/onnx_utils.py:193
Method
from_pretrained
r""" Instantiates a image-to-image Pytorch diffusion pipeline from pretrained pipeline weight. The from_pretrained() method takes car
src/diffusers/pipelines/auto_pipeline.py:469
Method
from_pretrained
r""" Instantiates a inpainting Pytorch diffusion pipeline from pretrained pipeline weight. The from_pretrained() method takes care of
src/diffusers/pipelines/auto_pipeline.py:745
Method
from_pretrained
r""" Instantiate a Flax-based diffusion pipeline from pretrained pipeline weights. The pipeline is set in evaluation mode (`model.eva
src/diffusers/pipelines/pipeline_flax_utils.py:230
Method
from_pretrained
r""" Instantiate a PyTorch diffusion pipeline from pretrained pipeline weights. The pipeline is set in evaluation mode (`model.eval()
src/diffusers/pipelines/pipeline_utils.py:912
Method
from_pretrained
r""" Instantiate a scheduler from a pre-defined JSON configuration file in a local directory or Hub repository. Parameters:
src/diffusers/schedulers/scheduling_utils.py:84
Method
from_pretrained
r""" Instantiate a Scheduler class from a pre-defined JSON-file. Parameters: pretrained_model_name_or_path (`str` or `os.
src/diffusers/schedulers/scheduling_utils_flax.py:73
Method
from_pretrained
r""" Instantiate a pretrained PyTorch model from a pretrained model configuration. The model is set in evaluation mode - `model.eval(
src/diffusers/models/modeling_utils.py:538
Method
from_pretrained
r""" Instantiate a pretrained Flax model from a pretrained model configuration. Parameters: pretrained_model_name_or_path
src/diffusers/models/modeling_flax_utils.py:200
Method
from_single_file
r""" Instantiate a [`AutoencoderKL`] from pretrained ControlNet weights saved in the original `.ckpt` or `.safetensors` format. The pi
src/diffusers/loaders/single_file.py:296
Method
from_single_file
r""" Instantiate a [`ControlNetModel`] from pretrained ControlNet weights saved in the original `.ckpt` or `.safetensors` format. The
src/diffusers/loaders/single_file.py:493
Method
fuse_lora
(self, lora_scale=1.0, safe_fusing=False)
src/diffusers/loaders/unet.py:507
Method
fuse_text_encoder_lora
(text_encoder, lora_scale=1.0, safe_fusing=False)
src/diffusers/loaders/lora.py:936
Method
generate_caption
Generates caption for a given image.
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_pix2pix_zero.py:681
Method
get_block
(block_type, c_hidden, nhead, c_skip=0, dropout=0)
src/diffusers/pipelines/wuerstchen/modeling_wuerstchen_diffnext.py:68
Method
get_config_dict
(cls, *args, **kwargs)
src/diffusers/configuration_utils.py:269
Method
get_connected_passed_kwargs
(prefix)
src/diffusers/pipelines/pipeline_utils.py:1318
Function
get_constant_schedule
Create a schedule with a constant learning rate, using the learning rate set in optimizer. Args: optimizer ([`~torch.optim.Optimizer
src/diffusers/optimization.py:40
Function
get_constant_schedule
(*args, **kwargs)
src/diffusers/utils/dummy_pt_objects.py:320
Function
get_constant_schedule_with_warmup
Create a schedule with a constant learning rate preceded by a warmup period during which the learning rate increases linearly between 0 and t
src/diffusers/optimization.py:56
Function
get_constant_schedule_with_warmup
(*args, **kwargs)
src/diffusers/utils/dummy_pt_objects.py:324
Function
get_cosine_schedule_with_warmup
Create a schedule with a learning rate that decreases following the values of the cosine function between the initial lr set in the optimizer
src/diffusers/optimization.py:154
Function
get_cosine_schedule_with_warmup
(*args, **kwargs)
src/diffusers/utils/dummy_pt_objects.py:328
Function
get_cosine_with_hard_restarts_schedule_with_warmup
Create a schedule with a learning rate that decreases following the values of the cosine function between the initial lr set in the optimizer
src/diffusers/optimization.py:188
Function
get_cosine_with_hard_restarts_schedule_with_warmup
(*args, **kwargs)
src/diffusers/utils/dummy_pt_objects.py:332
Function
get_doctest_files
Return a list of python and Markdown files where doc example have been modified between: - the current head and the main branch if `diff_wit
utils/tests_fetcher.py:403
Function
get_down_block
( down_block_type: str, num_layers: int, in_channels: int, out_channels: int, temb_channel
src/diffusers/models/unet_2d_blocks.py:34
Function
get_down_block
( down_block_type: str, num_layers: int, in_channels: int, out_channels: int, temb_channel
src/diffusers/models/unet_3d_blocks.py:38
Method
get_dummy_components
(self)
tests/pipelines/controlnet/test_controlnet_img2img.py:72
Method
get_dummy_components
(self)
tests/pipelines/controlnet/test_controlnet_inpaint.py:73
Method
get_dummy_components
(self)
tests/pipelines/controlnet/test_controlnet_inpaint.py:190
Method
get_dummy_components
(self)
tests/pipelines/stable_diffusion/test_stable_diffusion_sag.py:45
Method
get_dummy_components
(self)
tests/pipelines/deepfloyd_if/test_if_img2img_superresolution.py:37
Method
get_dummy_components
(self)
tests/pipelines/deepfloyd_if/test_if_superresolution.py:37
Method
get_dummy_components
(self)
tests/pipelines/deepfloyd_if/test_if_inpainting_superresolution.py:40
Method
get_dummy_components
(self)
tests/pipelines/deepfloyd_if/test_if_inpainting.py:40
Method
get_dummy_components
(self)
tests/pipelines/deepfloyd_if/test_if_img2img.py:40
Method
get_dummy_components
(self)
tests/pipelines/stable_unclip/test_stable_unclip.py:42
Method
get_dummy_components_with_full_downscaling
(self)
tests/pipelines/stable_diffusion_xl/test_stable_diffusion_xl_adapter.py:421
Method
get_dummy_components_with_full_downscaling
(self)
tests/pipelines/stable_diffusion/test_stable_diffusion_adapter.py:344
Method
get_dummy_components_with_full_downscaling
(self)
tests/pipelines/stable_diffusion/test_stable_diffusion_adapter.py:367
Method
get_dummy_components_with_full_downscaling
(self)
tests/pipelines/stable_diffusion/test_stable_diffusion_adapter.py:390
Method
get_dummy_inputs
(self, device, seed=0)
tests/pipelines/stable_diffusion_xl/test_stable_diffusion_xl_instruction_pix2pix.py:132
Method
get_dummy_inputs
(self, device, seed=0)
tests/pipelines/controlnet/test_controlnet_img2img.py:140
Method
get_dummy_inputs
(self, device, seed=0)
tests/pipelines/controlnet/test_controlnet_inpaint.py:139
Method
get_dummy_inputs
(self, device, seed=0)
tests/pipelines/stable_diffusion/test_stable_diffusion_sag.py:99
Method
get_dummy_inputs
(self, device, seed=0)
tests/pipelines/deepfloyd_if/test_if_img2img_superresolution.py:40
Method
get_dummy_inputs
(self, device, seed=0)
tests/pipelines/deepfloyd_if/test_if_superresolution.py:40
Method
get_dummy_inputs
(self, device, seed=0)
tests/pipelines/deepfloyd_if/test_if_inpainting_superresolution.py:43
Method
get_dummy_inputs
(self, device, seed=0)
tests/pipelines/deepfloyd_if/test_if_inpainting.py:43
Method
get_dummy_inputs
(self, device, seed=0)
tests/pipelines/deepfloyd_if/test_if_img2img.py:43
Method
get_dummy_inputs
(self, device, seed=0)
tests/pipelines/stable_unclip/test_stable_unclip.py:161
Method
get_dummy_tokens
(self)
tests/lora/test_lora_layers_peft.py:185
Method
get_indices
Utility function to list the indices of the tokens you wish to alte
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_attend_and_excite.py:737
Method
get_input_embeddings
(self)
src/diffusers/pipelines/blip_diffusion/modeling_blip2.py:454
Method
get_input_embeddings
(self)
src/diffusers/pipelines/latent_diffusion/pipeline_latent_diffusion.py:578
Function
get_linear_schedule_with_warmup
Create a schedule with a learning rate that decreases linearly from the initial lr set in the optimizer to 0, after a warmup period during wh
src/diffusers/optimization.py:123
Function
get_linear_schedule_with_warmup
(*args, **kwargs)
src/diffusers/utils/dummy_pt_objects.py:336
Method
get_lock
(self)
src/diffusers/utils/logging.py:316
Function
get_log_levels_dict
()
src/diffusers/utils/logging.py:107
Method
get_map_size
(module, input, output)
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_sag.py:665
Method
get_number_of_slices
Get number of slices in audio. Returns: `int`: Number of spectograms audio can be sliced into.
src/diffusers/pipelines/audio_diffusion/mel.py:112
Function
get_piecewise_constant_schedule
Create a schedule with a constant learning rate, using the learning rate set in optimizer. Args: optimizer ([`~torch.optim.Optimizer
src/diffusers/optimization.py:81
Function
get_polynomial_decay_schedule_with_warmup
Create a schedule with a learning rate that decreases as a polynomial decay from the initial lr set in the optimizer to end lr defined by *lr
src/diffusers/optimization.py:223
Function
get_polynomial_decay_schedule_with_warmup
(*args, **kwargs)
src/diffusers/utils/dummy_pt_objects.py:340
Function
get_relative_import_files
Get the list of all files that are needed for a given module. Note that this function recurses through the relative imports (if a imports b a
src/diffusers/utils/dynamic_modules_utils.py:97
← previous
next →
4,701–4,800 of 7,383, ranked by callers