mirror of
https://github.com/Laurent2916/Diffusers.jl.git
synced 2024-11-09 15:02:02 +00:00
✏️ (DDPM) wrong variable name for variance
This commit is contained in:
parent
845ce78fa0
commit
1c5ae1643a
|
@ -179,18 +179,18 @@ function get_variance(
|
||||||
if variance_type == FIXED_SMALL
|
if variance_type == FIXED_SMALL
|
||||||
# arxiv:2006.11239 Eq. 6
|
# arxiv:2006.11239 Eq. 6
|
||||||
# arxiv:2208.11970 Eq. 70
|
# arxiv:2208.11970 Eq. 70
|
||||||
σₜ = β̅ₜ₋₁ ./ β̅ₜ .* βₜ
|
σ²ₜ = β̅ₜ₋₁ ./ β̅ₜ .* βₜ
|
||||||
elseif variance_type == FIXED_SMALL_LOG
|
elseif variance_type == FIXED_SMALL_LOG
|
||||||
σₜ = β̅ₜ₋₁ ./ β̅ₜ .* βₜ
|
σ²ₜ = β̅ₜ₋₁ ./ β̅ₜ .* βₜ
|
||||||
σₜ = log.(σₜ)
|
σ²ₜ = log.(σ²ₜ)
|
||||||
elseif variance_type == FIXED_LARGE
|
elseif variance_type == FIXED_LARGE
|
||||||
σₜ = βₜ
|
σ²ₜ = βₜ
|
||||||
elseif variance_type == FIXED_LARGE_LOG
|
elseif variance_type == FIXED_LARGE_LOG
|
||||||
σₜ = βₜ
|
σ²ₜ = βₜ
|
||||||
σₜ = log.(σₜ)
|
σ²ₜ = log.(σ²ₜ)
|
||||||
else
|
else
|
||||||
throw("unimplemented variance type")
|
throw("unimplemented variance type")
|
||||||
end
|
end
|
||||||
|
|
||||||
return σₜ
|
return σ²ₜ
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue