|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
""" |
|
|
Diffusion package. |
|
|
""" |
|
|
|
|
|
from .config import ( |
|
|
create_sampler_from_config, |
|
|
create_sampling_timesteps_from_config, |
|
|
create_schedule_from_config, |
|
|
) |
|
|
from .samplers.base import Sampler |
|
|
from .samplers.euler import EulerSampler |
|
|
from .schedules.base import Schedule |
|
|
from .schedules.lerp import LinearInterpolationSchedule |
|
|
from .timesteps.base import SamplingTimesteps, Timesteps |
|
|
from .timesteps.sampling.trailing import UniformTrailingSamplingTimesteps |
|
|
from .types import PredictionType, SamplingDirection |
|
|
from .utils import classifier_free_guidance, classifier_free_guidance_dispatcher, expand_dims |
|
|
|
|
|
__all__ = [ |
|
|
|
|
|
"create_sampler_from_config", |
|
|
"create_sampling_timesteps_from_config", |
|
|
"create_schedule_from_config", |
|
|
|
|
|
"Schedule", |
|
|
"DiscreteVariancePreservingSchedule", |
|
|
"LinearInterpolationSchedule", |
|
|
|
|
|
"Sampler", |
|
|
"EulerSampler", |
|
|
|
|
|
"Timesteps", |
|
|
"SamplingTimesteps", |
|
|
|
|
|
"PredictionType", |
|
|
"SamplingDirection", |
|
|
"UniformTrailingSamplingTimesteps", |
|
|
|
|
|
"classifier_free_guidance", |
|
|
"classifier_free_guidance_dispatcher", |
|
|
"expand_dims", |
|
|
] |
|
|
|