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
_set_gradient_checkpointing
(self, module, value: bool = False)
src/diffusers/models/unet_motion_model.py:646
Method
_set_gradient_checkpointing
(self, module, value=False)
src/diffusers/models/unet_spatio_temporal_condition.py:322
Method
_set_gradient_checkpointing
(self, module, value=False)
src/diffusers/models/unet_kandinsky3.py:208
Method
_set_gradient_checkpointing_new
(self, module, value=False)
tests/models/test_models_unet_motion.py:173
Method
_set_gradient_checkpointing_new
(self, module, value=False)
tests/models/test_models_unet_2d_condition.py:406
Method
_set_gradient_checkpointing_new
(self, module, value=False)
tests/models/test_models_unet_spatiotemporal.py:253
Function
_test_from_save_pretrained_dynamo
(in_queue, out_queue, timeout)
tests/pipelines/test_pipelines.py:89
Function
_test_from_save_pretrained_dynamo
(in_queue, out_queue, timeout)
tests/models/test_modeling_common.py:47
Function
_test_img2img_compile
(in_queue, out_queue, timeout)
tests/pipelines/stable_diffusion/test_stable_diffusion_img2img.py:65
Function
_test_inpaint_compile
(in_queue, out_queue, timeout)
tests/pipelines/stable_diffusion/test_stable_diffusion_inpaint.py:66
Method
_test_save_load_optional_components
(self, expected_max_difference=1e-4)
tests/pipelines/test_pipelines_common.py:1225
Function
_test_stable_diffusion_compile
(in_queue, out_queue, timeout)
tests/pipelines/controlnet/test_controlnet.py:66
Function
_test_stable_diffusion_compile
(in_queue, out_queue, timeout)
tests/pipelines/stable_diffusion/test_stable_diffusion.py:70
Function
_test_unidiffuser_compile
(in_queue, out_queue, timeout)
tests/pipelines/unidiffuser/test_unidiffuser.py:48
Method
_unfuse_lora
(self)
src/diffusers/models/lora.py:148
Method
_unfuse_lora
(self)
src/diffusers/models/lora.py:412
Method
_unfuse_lora_apply
(self, module)
src/diffusers/loaders/unet.py:527
Method
active_adapters
Gets the current list of active adapters of the model. If you are not familiar with adapters and PEFT methods, we invite you to read
src/diffusers/models/modeling_utils.py:436
Function
add_handler
adds a handler to the HuggingFace Diffusers' root logger.
src/diffusers/utils/logging.py:202
Method
add_noise
( self, original_samples: torch.FloatTensor, noise: torch.FloatTensor, timeste
src/diffusers/schedulers/scheduling_pndm.py:451
Method
add_noise
( self, original_samples: torch.FloatTensor, noise: torch.FloatTensor, timeste
src/diffusers/schedulers/scheduling_lms_discrete.py:419
Method
add_noise
( self, original_samples: torch.FloatTensor, noise: torch.FloatTensor, timeste
src/diffusers/schedulers/scheduling_dpmsolver_sde.py:529
Method
add_noise
(self, state: KarrasVeSchedulerState, original_samples, noise, timesteps)
src/diffusers/schedulers/scheduling_karras_ve_flax.py:237
Method
add_noise
( self, original_samples: torch.FloatTensor, noise: torch.FloatTensor, timeste
src/diffusers/schedulers/scheduling_repaint.py:352
Method
add_noise
( self, original_samples: torch.FloatTensor, noise: torch.FloatTensor, timeste
src/diffusers/schedulers/scheduling_k_dpm_2_ancestral_discrete.py:476
Method
add_noise
( self, original_samples: torch.FloatTensor, noise: torch.FloatTensor, timeste
src/diffusers/schedulers/scheduling_ddim_parallel.py:598
Method
add_noise
( self, original_samples: torch.FloatTensor, noise: torch.FloatTensor, timeste
src/diffusers/schedulers/scheduling_unclip.py:328
Method
add_noise
( self, original_samples: torch.FloatTensor, noise: torch.FloatTensor, timeste
src/diffusers/schedulers/scheduling_consistency_models.py:397
Method
add_noise
( self, state: EulerDiscreteSchedulerState, original_samples: jnp.ndarray, noi
src/diffusers/schedulers/scheduling_euler_discrete_flax.py:250
Method
add_noise
( self, original_samples: torch.FloatTensor, noise: torch.FloatTensor, timeste
src/diffusers/schedulers/scheduling_euler_ancestral_discrete.py:369
Method
add_noise
( self, original_samples: torch.FloatTensor, noise: torch.FloatTensor, timeste
src/diffusers/schedulers/scheduling_deis_multistep.py:721
Method
add_noise
( self, original_samples: torch.FloatTensor, noise: torch.FloatTensor, timeste
src/diffusers/schedulers/scheduling_ddpm_wuerstchen.py:210
Method
add_noise
( self, state: PNDMSchedulerState, original_samples: jnp.ndarray, noise: jnp.n
src/diffusers/schedulers/scheduling_pndm_flax.py:501
Method
add_noise
( self, original_samples: torch.FloatTensor, noise: torch.FloatTensor, timeste
src/diffusers/schedulers/scheduling_sde_ve.py:283
Method
add_noise
( self, original_samples: torch.FloatTensor, noise: torch.FloatTensor, timeste
src/diffusers/schedulers/scheduling_k_dpm_2_discrete.py:455
Method
add_noise
( self, state: DDIMSchedulerState, original_samples: jnp.ndarray, noise: jnp.n
src/diffusers/schedulers/scheduling_ddim_flax.py:286
Method
add_noise
( self, original_samples: torch.FloatTensor, noise: torch.FloatTensor, timeste
src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py:878
Method
add_noise
( self, original_samples: torch.FloatTensor, noise: torch.FloatTensor, timeste
src/diffusers/schedulers/scheduling_euler_discrete.py:466
Method
add_noise
( self, state: DDPMSchedulerState, original_samples: jnp.ndarray, noise: jnp.n
src/diffusers/schedulers/scheduling_ddpm_flax.py:280
Method
add_noise
( self, state: DPMSolverMultistepSchedulerState, original_samples: jnp.ndarray,
src/diffusers/schedulers/scheduling_dpmsolver_multistep_flax.py:633
Method
add_noise
( self, original_samples: torch.FloatTensor, noise: torch.FloatTensor, timeste
src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:883
Method
add_noise
( self, original_samples: torch.FloatTensor, noise: torch.FloatTensor, timeste
src/diffusers/schedulers/scheduling_unipc_multistep.py:815
Method
add_noise
( self, original_samples: torch.FloatTensor, noise: torch.FloatTensor, timeste
src/diffusers/schedulers/scheduling_ddpm_parallel.py:544
Method
add_noise
( self, state: LMSDiscreteSchedulerState, original_samples: jnp.ndarray, noise
src/diffusers/schedulers/scheduling_lms_discrete_flax.py:268
Method
add_noise
( self, original_samples: torch.FloatTensor, noise: torch.FloatTensor, timeste
src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:884
Method
add_noise
( self, original_samples: torch.FloatTensor, noise: torch.FloatTensor, timeste
src/diffusers/schedulers/scheduling_heun_discrete.py:454
Method
add_noise
(self, original_samples, noise, timesteps)
src/diffusers/schedulers/deprecated/scheduling_karras_ve.py:242
Method
add_noise_to_input
Explicit Langevin-like "churn" step of adding noise to the sample according to a `gamma_i ≥ 0` to reach a higher noise level `sigma_h
src/diffusers/schedulers/deprecated/scheduling_karras_ve.py:138
Method
addition_time_embed_dim
(self)
tests/models/test_models_unet_spatiotemporal.py:82
Method
append_ca
(net_)
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_model_editing.py:127
Function
apply_forward_hook
Decorator that applies a registered CpuOffload hook to an arbitrary function rather than `forward`. This is useful for cases where a PyTorch
src/diffusers/utils/accelerate_utils.py:27
Method
apply_model
(self, *args, **kwargs)
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_k_diffusion.py:41
Method
assert_run_mixture
( num_steps, split, scheduler_cls_orig, num_train_timesteps=pipe_1.scheduler.config.num_train_time
tests/pipelines/stable_diffusion_xl/test_stable_diffusion_xl_inpaint.py:391
Method
assert_run_mixture
( num_steps, split, scheduler_cls_orig, expected_tss,
tests/pipelines/stable_diffusion_xl/test_stable_diffusion_xl.py:364
Method
attn_processors
r""" Returns: `dict` of attention processors: A dictionary containing all attention processors used in the model with
src/diffusers/pipelines/versatile_diffusion/modeling_text_unet.py:828
Method
attn_processors
r""" Returns: `dict` of attention processors: A dictionary containing all attention processors used in the model with
src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:517
Method
attn_processors
r""" Returns: `dict` of attention processors: A dictionary containing all attention processors used in the model with
src/diffusers/pipelines/wuerstchen/modeling_wuerstchen_prior.py:70
Method
attn_processors
r""" Returns: `dict` of attention processors: A dictionary containing all attention processors used in the model with
src/diffusers/models/unet_3d_condition.py:288
Method
attn_processors
r""" Returns: `dict` of attention processors: A dictionary containing all attention processors used in the model with
src/diffusers/models/prior_transformer.py:171
Method
attn_processors
r""" Returns: `dict` of attention processors: A dictionary containing all attention processors used in the model with
src/diffusers/models/controlnet.py:513
Method
attn_processors
r""" Returns: `dict` of attention processors: A dictionary containing all attention processors used in the model with
src/diffusers/models/autoencoder_kl.py:160
Method
attn_processors
r""" Returns: `dict` of attention processors: A dictionary containing all attention processors used in the model with
src/diffusers/models/unet_2d_condition.py:622
Method
attn_processors
r""" Returns: `dict` of attention processors: A dictionary containing all attention processors used in the model with
src/diffusers/models/autoencoder_kl_temporal_decoder.py:246
Method
attn_processors
r""" Returns: `dict` of attention processors: A dictionary containing all attention processors used in the model with
src/diffusers/models/consistency_decoder_vae.py:191
Method
attn_processors
r""" Returns: `dict` of attention processors: A dictionary containing all attention processors used in the model with
src/diffusers/models/unet_motion_model.py:528
Method
attn_processors
r""" Returns: `dict` of attention processors: A dictionary containing all attention processors used in the model with
src/diffusers/models/unet_spatio_temporal_condition.py:248
Method
attn_processors
r""" Returns: `dict` of attention processors: A dictionary containing all attention processors used in the model with
src/diffusers/models/unet_kandinsky3.py:145
Method
batch_params
(self)
tests/pipelines/test_pipelines_common.py:325
Method
batch_step_no_noise
Batched version of the `step` function, to be able to reverse the SDE for multiple samples/timesteps at once. Also, does not add any
src/diffusers/schedulers/scheduling_ddpm_parallel.py:463
Function
betas_for_alpha_bar
Create a beta schedule that discretizes the given alpha_t_bar function, which defines the cumulative product of (1-beta) over time from t = [
src/diffusers/schedulers/scheduling_ddpm_wuerstchen.py:44
Method
block_out_channels_0
(self)
tests/pipelines/unclip/test_unclip_image_variation.py:79
Method
block_out_channels_0
(self)
tests/pipelines/unclip/test_unclip.py:71
Method
block_out_channels_0
(self)
tests/pipelines/kandinsky2_2/test_kandinsky_inpaint.py:57
Method
block_out_channels_0
(self)
tests/pipelines/kandinsky2_2/test_kandinsky.py:49
Method
block_out_channels_0
(self)
tests/pipelines/kandinsky2_2/test_kandinsky_controlnet_img2img.py:75
Method
block_out_channels_0
(self)
tests/pipelines/kandinsky2_2/test_kandinsky_img2img.py:57
Method
block_out_channels_0
(self)
tests/pipelines/kandinsky2_2/test_kandinsky_controlnet.py:74
Method
block_out_channels_0
(self)
tests/pipelines/kandinsky2_2/test_kandinsky_prior.py:50
Method
block_out_channels_0
(self)
tests/pipelines/kandinsky2_2/test_kandinsky_prior_emb2emb.py:66
Method
block_out_channels_0
(self)
tests/pipelines/kandinsky/test_kandinsky_inpaint.py:53
Method
block_out_channels_0
(self)
tests/pipelines/kandinsky/test_kandinsky.py:51
Method
block_out_channels_0
(self)
tests/pipelines/kandinsky/test_kandinsky_img2img.py:61
Method
block_out_channels_0
(self)
tests/pipelines/kandinsky/test_kandinsky_prior.py:49
Method
block_out_channels_0
(self)
tests/pipelines/wuerstchen/test_wuerstchen_prior.py:84
Method
block_out_channels_0
(self)
tests/pipelines/wuerstchen/test_wuerstchen_decoder.py:57
Method
callback
(step, mel_output)
tests/pipelines/spectrogram_diffusion/test_spectrogram_diffusion.py:195
Method
callback_cfg_params
(self)
tests/pipelines/test_pipelines_common.py:339
Method
callback_fn
(step: int, timestep: int, latents: torch.FloatTensor)
tests/pipelines/stable_diffusion_2/test_stable_diffusion_depth.py:459
Method
callback_fn
(step: int, timestep: int, latents: torch.FloatTensor)
tests/pipelines/stable_diffusion_2/test_stable_diffusion.py:398
Method
callback_fn
(step: int, timestep: int, latents: torch.FloatTensor)
tests/pipelines/stable_diffusion/test_stable_diffusion_img2img.py:399
Method
callback_fn
(step: int, timestep: int, latents: torch.FloatTensor)
tests/pipelines/stable_diffusion/test_stable_diffusion_panorama.py:335
Method
callback_fn
(step: int, timestep: int, latents: torch.FloatTensor)
tests/pipelines/stable_diffusion/test_stable_diffusion_image_variation.py:211
Method
callback_fn
(step: int, timestep: int, latents: torch.FloatTensor)
tests/pipelines/stable_diffusion/test_stable_diffusion.py:901
Method
callback_fn
(step: int, timestep: int, latents: torch.FloatTensor)
tests/pipelines/stable_diffusion/test_stable_diffusion_inpaint_legacy.py:504
Method
callback_fn
(step: int, timestep: int, latents: torch.FloatTensor)
tests/pipelines/stable_diffusion/test_stable_diffusion_pix2pix_zero.py:433
Method
callback_fn
(step: int, timestep: int, latents: torch.FloatTensor)
tests/pipelines/stable_diffusion/test_stable_diffusion_instruction_pix2pix.py:346
Method
callback_increase_guidance
(pipe, i, t, callback_kwargs)
tests/pipelines/test_pipelines_common.py:1006
Method
callback_inputs_all
(pipe, i, t, callback_kwargs)
tests/pipelines/test_pipelines_common.py:949
Method
callback_inputs_change_tensor
(pipe, i, t, callback_kwargs)
tests/pipelines/test_pipelines_common.py:974
Method
callback_inputs_subset
(pipe, i, t, callback_kwargs)
tests/pipelines/test_pipelines_common.py:941
← previous
next →
3,301–3,400 of 7,383, ranked by callers