Each reverse step is delegated to morie_geron_ddim_sampling_step;
this wrapper picks the n_steps evenly-spaced timesteps out of T.
Examples
zero <- function(x, t) rep(0, length(x))
morie_geron_ddim(1, zero, T = 4, n_steps = 2, beta_schedule = rep(0.5,
4))
#> $x_0
#> [1] 4
#>
#> $trajectory
#> $trajectory[[1]]
#> [1] 1
#>
#> $trajectory[[2]]
#> [1] 2.828427
#>
#> $trajectory[[3]]
#> [1] 4
#>
#>
#> $timesteps
#> [1] 4 1
#>
#> $x0_preds
#> $x0_preds[[1]]
#> [1] 4
#>
#> $x0_preds[[2]]
#> [1] 4
#>
#>
#> $model_calls
#> [1] 2
#>
#> $speedup
#> [1] 2
#>
#> $alpha_bar
#> [1] 1.0000 0.5000 0.2500 0.1250 0.0625
#>
#> $T
#> [1] 4
#>
#> $n_steps
#> [1] 2
#>
#> $estimate
#> [1] 4
#>
#> $n
#> [1] 1
#>
#> $method
#> [1] "DDIM sub-sequence sampling; each step delegated to grddim"
#>
