✏️ (DDPM) wrong variable name for variance

This commit is contained in:
Laureηt 2023-09-03 13:39:17 +02:00
parent 845ce78fa0
commit 1c5ae1643a
Signed by: Laurent
SSH key fingerprint: SHA256:kZEpW8cMJ54PDeCvOhzreNr4FSh6R13CMGH/POoO8DI

View file

@ -179,18 +179,18 @@ function get_variance(
if variance_type == FIXED_SMALL
# arxiv:2006.11239 Eq. 6
# arxiv:2208.11970 Eq. 70
σ= β̅ₜ₋₁ ./ β̅ₜ .* βₜ
σ²= β̅ₜ₋₁ ./ β̅ₜ .* βₜ
elseif variance_type == FIXED_SMALL_LOG
σ= β̅ₜ₋₁ ./ β̅ₜ .* βₜ
σ= log.(σ)
σ²= β̅ₜ₋₁ ./ β̅ₜ .* βₜ
σ²= log.(σ²)
elseif variance_type == FIXED_LARGE
σ= βₜ
σ²= βₜ
elseif variance_type == FIXED_LARGE_LOG
σ= βₜ
σ= log.(σ)
σ²= βₜ
σ²= log.(σ²)
else
throw("unimplemented variance type")
end
return σ
return σ²
end