forked from Stability-AI/generative-models
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Minimize re-exports from
__init__
files (Stability-AI#44)
This allows importing parts of the package without having to import practically everything (since importing a package will import its parents' __init__s, etc).
- Loading branch information
1 parent
d23d778
commit e5f4ca3
Showing
5 changed files
with
7 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1 @@ | ||
from .data import StableDataModuleFromConfig | ||
from .models import AutoencodingEngine, DiffusionEngine | ||
from .util import instantiate_from_config, get_configs_path | ||
|
||
__version__ = "0.0.1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +0,0 @@ | ||
from .dataset import StableDataModuleFromConfig | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +0,0 @@ | ||
from .autoencoder import AutoencodingEngine | ||
from .diffusion import DiffusionEngine | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +0,0 @@ | ||
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 | ||