mirror of
https://github.com/huggingface/candle.git
synced 2025-06-18 03:28:50 +00:00
Stable diffusion 3.5 support. (#2578)
* Stable diffusion 3.5 support. * Clippy fixes. * CFG fix. * Remove some unnecessary clones. * Avoid duplicating some of the code.
This commit is contained in:
@ -30,7 +30,7 @@ pub fn euler_sample(
|
||||
|
||||
let timestep = (*s_curr) * 1000.0;
|
||||
let noise_pred = mmdit.forward(
|
||||
&Tensor::cat(&[x.clone(), x.clone()], 0)?,
|
||||
&Tensor::cat(&[&x, &x], 0)?,
|
||||
&Tensor::full(timestep as f32, (2,), x.device())?.contiguous()?,
|
||||
y,
|
||||
context,
|
||||
|
Reference in New Issue
Block a user