diff --git a/sgm/__init__.py b/sgm/__init__.py index f102a9ca..f639416e 100644 --- a/sgm/__init__.py +++ b/sgm/__init__.py @@ -1 +1,5 @@ +from .data import StableDataModuleFromConfig +from .models import AutoencodingEngine, DiffusionEngine +from .util import instantiate_from_config, get_configs_path + __version__ = "0.0.1" diff --git a/sgm/data/__init__.py b/sgm/data/__init__.py index e69de29b..7664a25c 100644 --- a/sgm/data/__init__.py +++ b/sgm/data/__init__.py @@ -0,0 +1 @@ +from .dataset import StableDataModuleFromConfig diff --git a/sgm/models/__init__.py b/sgm/models/__init__.py index e69de29b..c410b374 100644 --- a/sgm/models/__init__.py +++ b/sgm/models/__init__.py @@ -0,0 +1,2 @@ +from .autoencoder import AutoencodingEngine +from .diffusion import DiffusionEngine diff --git a/sgm/modules/__init__.py b/sgm/modules/__init__.py index ba75205c..0db1d771 100644 --- a/sgm/modules/__init__.py +++ b/sgm/modules/__init__.py @@ -1,12 +1,5 @@ from .encoders.modules import GeneralConditioner -__all__ = [ - # `sgm.models.GeneralConditioner` is referenced in model configurations, etc., - # so it must be re-exported from this module. - "GeneralConditioner", - "UNCONDITIONAL_CONFIG", -] - UNCONDITIONAL_CONFIG = { "target": "sgm.modules.GeneralConditioner", "params": {"emb_models": []}, diff --git a/sgm/modules/diffusionmodules/__init__.py b/sgm/modules/diffusionmodules/__init__.py index e69de29b..ce7968af 100644 --- a/sgm/modules/diffusionmodules/__init__.py +++ b/sgm/modules/diffusionmodules/__init__.py @@ -0,0 +1,7 @@ +from .denoiser import Denoiser +from .discretizer import Discretization +from .loss import StandardDiffusionLoss +from .model import Model, Encoder, Decoder +from .openaimodel import UNetModel +from .sampling import BaseDiffusionSampler +from .wrappers import OpenAIWrapper