🚚 (Schedulers) move abstract.jl includes

This commit is contained in:
Laureηt 2023-10-06 13:43:30 +00:00
parent 06c85732ee
commit ec302abc83
Signed by: Laurent
SSH key fingerprint: SHA256:kZEpW8cMJ54PDeCvOhzreNr4FSh6R13CMGH/POoO8DI
4 changed files with 5 additions and 8 deletions

View file

@ -1,11 +1,11 @@
@enum VarianceType FIXED_SMALL FIXED_SMALL_LOG FIXED_LARGE FIXED_LARGE_LOG LEARNED
@enum PredictionType EPSILON SAMPLE VELOCITY
"""
Abstract type for schedulers.
"""
abstract type Scheduler end
@enum VarianceType FIXED_SMALL FIXED_SMALL_LOG FIXED_LARGE FIXED_LARGE_LOG LEARNED
@enum PredictionType EPSILON SAMPLE VELOCITY
"""
Add noise to clean data using the forward diffusion process.
@ -59,7 +59,7 @@ Compute the velocity of the diffusion process.
* `vₜ::AbstractArray`: velocity at the given timesteps
## References
* [[2202.00512] Progressive Distillation for Fast Sampling of Diffusion Models](https://arxiv.org/abs/2202.00512) (Ann. D)
[salimans2022progressive; Ann. D](@cite)
"""
function get_velocity(
scheduler::Scheduler,

View file

@ -1,5 +1,3 @@
include("Abstract.jl")
using ShiftedArrays
function _extract(

View file

@ -1,5 +1,3 @@
include("Abstract.jl")
using ShiftedArrays
function _extract(

View file

@ -1,5 +1,6 @@
module Schedulers
include("Abstract.jl")
include("DDPM.jl")
include("DDIM.jl")