-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
52 additions
and
23 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
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,21 @@ | ||
from .pyro import LitAutoEncoderPyro | ||
from .torch import AESupervised, AEUnsupervised, AutoEncoder, AE, AutoEncoderSupervised, AutoEncoderUnsupervised | ||
from .torch import ( | ||
AESupervised, | ||
AEUnsupervised, | ||
AutoEncoder, | ||
AE, | ||
AutoEncoderSupervised, | ||
AutoEncoderUnsupervised, | ||
) | ||
from .dataloader import DataModule | ||
|
||
__all__ = ["LitAutoEncoderPyro", "AESupervised", "AEUnsupervised", "DataModule", "AutoEncoder","AE","AutoEncoderUnsupervised","AutoEncoderSupervised"] | ||
__all__ = [ | ||
"LitAutoEncoderPyro", | ||
"AESupervised", | ||
"AEUnsupervised", | ||
"DataModule", | ||
"AutoEncoder", | ||
"AE", | ||
"AutoEncoderUnsupervised", | ||
"AutoEncoderSupervised", | ||
] |
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,6 +1,7 @@ | ||
import pytest | ||
import torch | ||
|
||
|
||
# Fixture for batch sizes | ||
@pytest.fixture(params=[1, 16]) | ||
def batch_size(request): | ||
|
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,18 +1,19 @@ | ||
import torch | ||
import torch.nn.functional as F | ||
# Description: This file is the main entry point for the models module. It imports all the necessary modules and classes for the models module to function properly. | ||
|
||
# Note - you must have torchvision installed for this example | ||
from torch.utils.data import DataLoader | ||
|
||
# from .ae import AutoEncoder | ||
|
||
# from .vae_bio import Mask_VAE, Image_VAE | ||
# from .utils import BaseVAE | ||
# from .legacy.vae import VAE | ||
# from .vq_vae import VQ_VAE | ||
|
||
from .bolts import ResNet18VAEEncoder, ResNet18VAEDecoder | ||
|
||
from . import bolts | ||
from . import pythae | ||
from .factory import ModelFactory, create_model, __all_models__ | ||
from .factory import ModelFactory, create_model, __all_models__ | ||
|
||
__all__ = [ | ||
"ModelFactory", | ||
"create_model", | ||
"__all_models__", | ||
"ResNet18VAEEncoder", | ||
"ResNet18VAEDecoder", | ||
"bolts", | ||
"pythae", | ||
] |
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 |
---|---|---|
|
@@ -217,7 +217,6 @@ def __call__(self, model): | |
] | ||
|
||
|
||
|
||
def create_model( | ||
model: str, | ||
input_dim: Tuple[int, int, int], | ||
|
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