Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/LaurentMazare/diffusers-rs
/ functions
Functions
171 in github.com/LaurentMazare/diffusers-rs
⨍
Functions
171
◇
Types & classes
91
Method
forward
(&self, xs: &Tensor)
src/models/vae.rs:96
Method
get_pairs
(word: &[String])
src/transformers/clip.rs:400
Method
init_noise_sigma
(&self)
src/schedulers/k_dpm_2_ancestral_discrete.rs:326
Method
init_noise_sigma
(&self)
src/schedulers/k_dpm_2_discrete.rs:277
Method
init_noise_sigma
(&self)
src/schedulers/lms_discrete.rs:169
Method
init_noise_sigma
(&self)
src/schedulers/euler_ancestral_discrete.rs:135
Method
init_noise_sigma
(&self)
src/schedulers/ddpm.rs:187
Method
init_noise_sigma
(&self)
src/schedulers/euler_discrete.rs:143
Method
init_noise_sigma
(&self)
src/schedulers/pndm.rs:225
Method
init_noise_sigma
(&self)
src/schedulers/dpmsolver_multistep.rs:405
Method
init_noise_sigma
(&self)
src/schedulers/heun_discrete.rs:210
Function
main
()
build.rs:1
Function
main
()
examples/tensor-tools.rs:13
Function
main
()
examples/stable-diffusion-img2img/main.rs:244
Function
main
()
examples/stable-diffusion/main.rs:309
Function
main
()
examples/controlnet/main.rs:264
Function
main
()
examples/stable-diffusion-inpaint/main.rs:263
Method
new
(cpu: Vec<String>)
src/utils.rs:19
Method
new
(vs: nn::Path, c: &Config)
src/transformers/clip.rs:508
Method
new
(inference_steps: usize, config: KDPM2AncestralDiscreteSchedulerConfig)
src/schedulers/k_dpm_2_ancestral_discrete.rs:46
Method
new
Creates a new DDIM scheduler given the number of steps to be used for inference as well as the number of steps that was used during training.
src/schedulers/ddim.rs:63
Method
new
(inference_steps: usize, config: KDPM2DiscreteSchedulerConfig)
src/schedulers/k_dpm_2_discrete.rs:44
Method
new
(inference_steps: usize, config: LMSDiscreteSchedulerConfig)
src/schedulers/lms_discrete.rs:44
Method
new
(inference_steps: usize, config: EulerAncestralDiscreteSchedulerConfig)
src/schedulers/euler_ancestral_discrete.rs:43
Method
new
(inference_steps: usize, config: DDPMSchedulerConfig)
src/schedulers/ddpm.rs:60
Method
new
(inference_steps: usize, config: EulerDiscreteSchedulerConfig)
src/schedulers/euler_discrete.rs:43
Method
new
(inference_steps: usize, config: PNDMSchedulerConfig)
src/schedulers/pndm.rs:54
Method
new
(inference_steps: usize, config: DPMSolverMultistepSchedulerConfig)
src/schedulers/dpmsolver_multistep.rs:93
Method
new
(inference_steps: usize, config: HeunDiscreteSchedulerConfig)
src/schedulers/heun_discrete.rs:41
Method
new
(vs: nn::Path, in_channels: i64, config: ResnetBlock2DConfig)
src/models/resnet.rs:55
Method
new
act_fn: "silu"
src/models/embeddings.rs:11
Method
new
( vs: nn::Path, in_channels: i64, use_conv: bool, out_channels: i64, p
src/models/unet_2d_blocks.rs:16
Method
new
( vs: nn::Path, in_channels: i64, out_channels: i64, config: UNet2DConditionMo
src/models/unet_2d.rs:82
Method
new
( vs: nn::Path, conditioning_embedding_channels: i64, conditioning_channels: i64,
src/models/controlnet.rs:15
Method
new
(vs: nn::Path, dim_in: i64, dim_out: i64)
src/models/attention.rs:9
Method
new
(vs: nn::Path, in_channels: i64, out_channels: i64, config: EncoderConfig)
src/models/vae.rs:44
Method
scale_model_input
Scales model input by (sigma^2 + 1) ^ .5
src/schedulers/k_dpm_2_ancestral_discrete.rs:240
Method
scale_model_input
Scales model input by (sigma^2 + 1) ^ .5
src/schedulers/k_dpm_2_discrete.rs:197
Method
scale_model_input
Scales the denoising model input by `(sigma^2 + 1)^0.5` to match the K-LMS algorithm.
src/schedulers/lms_discrete.rs:99
Method
scale_model_input
(&self, sample: Tensor, timestep: f64)
src/schedulers/euler_ancestral_discrete.rs:96
Method
scale_model_input
Ensures interchangeability with schedulers that need to scale the denoising model input depending on the current timestep.
src/schedulers/ddpm.rs:125
Method
scale_model_input
(&self, sample: Tensor, timestep: f64)
src/schedulers/euler_discrete.rs:96
Method
scale_model_input
Ensures interchangeability with schedulers that need to scale the denoising model input depending on the current timestep.
src/schedulers/pndm.rs:112
Method
scale_model_input
Ensures interchangeability with schedulers that need to scale the denoising model input depending on the current timestep.
src/schedulers/dpmsolver_multistep.rs:344
Method
scale_model_input
Ensures interchangeability with schedulers that need to scale the denoising model input depending on the current timestep.
src/schedulers/heun_discrete.rs:137
Method
sigma_to_t
(sigma: &Tensor, log_sigmas: Tensor)
src/schedulers/k_dpm_2_ancestral_discrete.rs:191
Method
sigma_to_t
(sigma: &Tensor, log_sigmas: Tensor)
src/schedulers/k_dpm_2_discrete.rs:148
Method
step
(&mut self, model_output: &Tensor, timestep: f64, sample: &Tensor)
src/schedulers/k_dpm_2_ancestral_discrete.rs:258
Method
step
(&mut self, model_output: &Tensor, timestep: f64, sample: &Tensor)
src/schedulers/k_dpm_2_discrete.rs:213
Method
step
(&mut self, model_output: &Tensor, timestep: f64, sample: &Tensor)
src/schedulers/lms_discrete.rs:131
Method
step
(&self, model_output: &Tensor, timestep: f64, sample: &Tensor)
src/schedulers/euler_ancestral_discrete.rs:104
Method
step
(&self, model_output: &Tensor, timestep: usize, sample: &Tensor)
src/schedulers/ddpm.rs:129
Method
step
(&self, model_output: &Tensor, timestep: f64, sample: &Tensor)
src/schedulers/euler_discrete.rs:104
Method
step
(&mut self, model_output: &Tensor, timestep: usize, sample: &Tensor)
src/schedulers/pndm.rs:116
Method
step
(&mut self, model_output: &Tensor, timestep: usize, sample: &Tensor)
src/schedulers/dpmsolver_multistep.rs:348
Method
step
(&mut self, model_output: &Tensor, timestep: f64, sample: &Tensor)
src/schedulers/heun_discrete.rs:149
Method
timesteps
(&self)
src/schedulers/k_dpm_2_ancestral_discrete.rs:219
Method
timesteps
(&self)
src/schedulers/k_dpm_2_discrete.rs:176
Method
timesteps
(&self)
src/schedulers/lms_discrete.rs:94
Method
timesteps
(&self)
src/schedulers/euler_ancestral_discrete.rs:92
Method
timesteps
(&self)
src/schedulers/ddpm.rs:119
Method
timesteps
(&self)
src/schedulers/euler_discrete.rs:92
Method
timesteps
(&self)
src/schedulers/pndm.rs:106
Method
timesteps
(&self)
src/schedulers/dpmsolver_multistep.rs:338
Method
timesteps
(&self)
src/schedulers/heun_discrete.rs:115
Method
v1_5
The config details can be found in the "text_config" section of this json file: https://huggingface.co/openai/clip-vit-large-patch14/blob/main/config.
src/transformers/clip.rs:44
Method
v1_5
( sliced_attention_size: Option<i64>, height: Option<i64>, width: Option<i64>, )
src/pipelines/stable_diffusion.rs:18
Method
v2_1
https://huggingface.co/stabilityai/stable-diffusion-2-1/blob/main/text_encoder/config.json
src/transformers/clip.rs:59
Method
v2_1
( sliced_attention_size: Option<i64>, height: Option<i64>, width: Option<i64>, )
src/pipelines/stable_diffusion.rs:130
Method
v2_1_
( sliced_attention_size: Option<i64>, height: Option<i64>, width: Option<i64>,
src/pipelines/stable_diffusion.rs:73
Method
v2_1_inpaint
( sliced_attention_size: Option<i64>, height: Option<i64>, width: Option<i64>, )
src/pipelines/stable_diffusion.rs:139
← previous
101–171 of 171, ranked by callers