MCPcopy Create free account

hub / github.com/LetterLiGo/SafeGen_CCS2024 / functions

Functions7,383 in github.com/LetterLiGo/SafeGen_CCS2024

Methodfrom_pretrained
(cls, *args, **kwargs)
src/diffusers/utils/dummy_pt_objects.py:1034
Methodfrom_pretrained
(cls, *args, **kwargs)
src/diffusers/utils/dummy_pt_objects.py:1049
Methodfrom_pretrained
(cls, *args, **kwargs)
src/diffusers/utils/dummy_onnx_objects.py:16
Methodfrom_pretrained
(cls, *args, **kwargs)
src/diffusers/utils/dummy_torch_and_transformers_and_k_diffusion_objects.py:16
Methodfrom_pretrained
(cls, *args, **kwargs)
src/diffusers/utils/dummy_note_seq_objects.py:16
Methodfrom_pretrained
(cls, *args, **kwargs)
src/diffusers/utils/dummy_torch_and_librosa_objects.py:16
Methodfrom_pretrained
(cls, *args, **kwargs)
src/diffusers/utils/dummy_torch_and_librosa_objects.py:31
Methodfrom_pretrained
(cls, *args, **kwargs)
src/diffusers/utils/dummy_torch_and_transformers_and_onnx_objects.py:16
Methodfrom_pretrained
(cls, *args, **kwargs)
src/diffusers/utils/dummy_torch_and_transformers_and_onnx_objects.py:31
Methodfrom_pretrained
(cls, *args, **kwargs)
src/diffusers/utils/dummy_torch_and_transformers_and_onnx_objects.py:46
Methodfrom_pretrained
(cls, *args, **kwargs)
src/diffusers/utils/dummy_torch_and_transformers_and_onnx_objects.py:61
Methodfrom_pretrained
(cls, *args, **kwargs)
src/diffusers/utils/dummy_torch_and_transformers_and_onnx_objects.py:76
Methodfrom_pretrained
(cls, *args, **kwargs)
src/diffusers/utils/dummy_torch_and_transformers_and_onnx_objects.py:91
Methodfrom_pretrained
(cls, *args, **kwargs)
src/diffusers/utils/dummy_torch_and_torchsde_objects.py:16
Methodfrom_pretrained
(cls, *args, **kwargs)
src/diffusers/utils/dummy_flax_and_transformers_objects.py:16
Methodfrom_pretrained
(cls, *args, **kwargs)
src/diffusers/utils/dummy_flax_and_transformers_objects.py:31
Methodfrom_pretrained
(cls, *args, **kwargs)
src/diffusers/utils/dummy_flax_and_transformers_objects.py:46
Methodfrom_pretrained
(cls, *args, **kwargs)
src/diffusers/utils/dummy_flax_and_transformers_objects.py:61
Methodfrom_pretrained
(cls, *args, **kwargs)
src/diffusers/utils/dummy_flax_and_transformers_objects.py:76
Methodfrom_pretrained
(cls, *args, **kwargs)
src/diffusers/utils/dummy_transformers_and_torch_and_note_seq_objects.py:16
Methodfrom_pretrained
(cls, *args, **kwargs)
src/diffusers/utils/dummy_flax_objects.py:16
Methodfrom_pretrained
(cls, *args, **kwargs)
src/diffusers/utils/dummy_flax_objects.py:31
Methodfrom_pretrained
(cls, *args, **kwargs)
src/diffusers/utils/dummy_flax_objects.py:46
Methodfrom_pretrained
(cls, *args, **kwargs)
src/diffusers/utils/dummy_flax_objects.py:61
Methodfrom_pretrained
(cls, *args, **kwargs)
src/diffusers/utils/dummy_flax_objects.py:76
Methodfrom_pretrained
(cls, *args, **kwargs)
src/diffusers/utils/dummy_flax_objects.py:91
Methodfrom_pretrained
(cls, *args, **kwargs)
src/diffusers/utils/dummy_flax_objects.py:106
Methodfrom_pretrained
(cls, *args, **kwargs)
src/diffusers/utils/dummy_flax_objects.py:121
Methodfrom_pretrained
(cls, *args, **kwargs)
src/diffusers/utils/dummy_flax_objects.py:136
Methodfrom_pretrained
(cls, *args, **kwargs)
src/diffusers/utils/dummy_flax_objects.py:151
Methodfrom_pretrained
(cls, *args, **kwargs)
src/diffusers/utils/dummy_flax_objects.py:166
Methodfrom_pretrained
(cls, *args, **kwargs)
src/diffusers/utils/dummy_flax_objects.py:181
Methodfrom_pretrained
(cls, *args, **kwargs)
src/diffusers/utils/dummy_flax_objects.py:196
Methodfrom_pretrained
(cls, *args, **kwargs)
src/diffusers/utils/dummy_flax_objects.py:211
Methodfrom_pretrained
( cls, model_id: Union[str, Path], force_download: bool = True, use_auth_token
src/diffusers/pipelines/onnx_utils.py:193
Methodfrom_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
Methodfrom_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
Methodfrom_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
Methodfrom_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
Methodfrom_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
Methodfrom_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
Methodfrom_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
Methodfrom_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
Methodfrom_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
Methodfrom_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
Methodfuse_lora
(self, lora_scale=1.0, safe_fusing=False)
src/diffusers/loaders/unet.py:507
Methodfuse_text_encoder_lora
(text_encoder, lora_scale=1.0, safe_fusing=False)
src/diffusers/loaders/lora.py:936
Methodgenerate_caption
Generates caption for a given image.
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_pix2pix_zero.py:681
Methodget_block
(block_type, c_hidden, nhead, c_skip=0, dropout=0)
src/diffusers/pipelines/wuerstchen/modeling_wuerstchen_diffnext.py:68
Methodget_config_dict
(cls, *args, **kwargs)
src/diffusers/configuration_utils.py:269
Methodget_connected_passed_kwargs
(prefix)
src/diffusers/pipelines/pipeline_utils.py:1318
Functionget_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
Functionget_constant_schedule
(*args, **kwargs)
src/diffusers/utils/dummy_pt_objects.py:320
Functionget_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
Functionget_constant_schedule_with_warmup
(*args, **kwargs)
src/diffusers/utils/dummy_pt_objects.py:324
Functionget_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
Functionget_cosine_schedule_with_warmup
(*args, **kwargs)
src/diffusers/utils/dummy_pt_objects.py:328
Functionget_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
Functionget_cosine_with_hard_restarts_schedule_with_warmup
(*args, **kwargs)
src/diffusers/utils/dummy_pt_objects.py:332
Functionget_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
Functionget_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
Functionget_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
Methodget_dummy_components
(self)
tests/pipelines/controlnet/test_controlnet_img2img.py:72
Methodget_dummy_components
(self)
tests/pipelines/controlnet/test_controlnet_inpaint.py:73
Methodget_dummy_components
(self)
tests/pipelines/controlnet/test_controlnet_inpaint.py:190
Methodget_dummy_components
(self)
tests/pipelines/stable_diffusion/test_stable_diffusion_sag.py:45
Methodget_dummy_components
(self)
tests/pipelines/deepfloyd_if/test_if_img2img_superresolution.py:37
Methodget_dummy_components
(self)
tests/pipelines/deepfloyd_if/test_if_superresolution.py:37
Methodget_dummy_components
(self)
tests/pipelines/deepfloyd_if/test_if_inpainting_superresolution.py:40
Methodget_dummy_components
(self)
tests/pipelines/deepfloyd_if/test_if_inpainting.py:40
Methodget_dummy_components
(self)
tests/pipelines/deepfloyd_if/test_if_img2img.py:40
Methodget_dummy_components
(self)
tests/pipelines/stable_unclip/test_stable_unclip.py:42
Methodget_dummy_components_with_full_downscaling
(self)
tests/pipelines/stable_diffusion_xl/test_stable_diffusion_xl_adapter.py:421
Methodget_dummy_components_with_full_downscaling
(self)
tests/pipelines/stable_diffusion/test_stable_diffusion_adapter.py:344
Methodget_dummy_components_with_full_downscaling
(self)
tests/pipelines/stable_diffusion/test_stable_diffusion_adapter.py:367
Methodget_dummy_components_with_full_downscaling
(self)
tests/pipelines/stable_diffusion/test_stable_diffusion_adapter.py:390
Methodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/stable_diffusion_xl/test_stable_diffusion_xl_instruction_pix2pix.py:132
Methodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/controlnet/test_controlnet_img2img.py:140
Methodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/controlnet/test_controlnet_inpaint.py:139
Methodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/stable_diffusion/test_stable_diffusion_sag.py:99
Methodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/deepfloyd_if/test_if_img2img_superresolution.py:40
Methodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/deepfloyd_if/test_if_superresolution.py:40
Methodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/deepfloyd_if/test_if_inpainting_superresolution.py:43
Methodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/deepfloyd_if/test_if_inpainting.py:43
Methodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/deepfloyd_if/test_if_img2img.py:43
Methodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/stable_unclip/test_stable_unclip.py:161
Methodget_dummy_tokens
(self)
tests/lora/test_lora_layers_peft.py:185
Methodget_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
Methodget_input_embeddings
(self)
src/diffusers/pipelines/blip_diffusion/modeling_blip2.py:454
Methodget_input_embeddings
(self)
src/diffusers/pipelines/latent_diffusion/pipeline_latent_diffusion.py:578
Functionget_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
Functionget_linear_schedule_with_warmup
(*args, **kwargs)
src/diffusers/utils/dummy_pt_objects.py:336
Methodget_lock
(self)
src/diffusers/utils/logging.py:316
Functionget_log_levels_dict
()
src/diffusers/utils/logging.py:107
Methodget_map_size
(module, input, output)
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_sag.py:665
Methodget_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
Functionget_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
Functionget_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
Functionget_polynomial_decay_schedule_with_warmup
(*args, **kwargs)
src/diffusers/utils/dummy_pt_objects.py:340
Functionget_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
← previousnext →4,701–4,800 of 7,383, ranked by callers