Skip to content

Commit

Permalink
resolved #297
Browse files Browse the repository at this point in the history
  • Loading branch information
hvgazula committed Mar 18, 2024
1 parent 7d00dc1 commit ab341ee
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nobrainer/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from .progressivegan import progressivegan
from .unet import unet
from .unetr import unetr

from .bayesian_meshnet import variational_meshnet

def get(name):
"""Return callable that creates a particular `tf.keras.Model`.
Expand All @@ -35,6 +35,7 @@ def get(name):
"attention_unet": attention_unet,
"attention_unet_with_inception": attention_unet_with_inception,
"unetr": unetr,
"variational_meshnet": variational_meshnet,
}

try:
Expand Down
5 changes: 5 additions & 0 deletions nobrainer/models/tests/models_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
from ..unetr import unetr
from ..vnet import vnet
from ..vox2vox import Vox_ensembler, vox_gan
from ..bayesian_meshnet import variational_meshnet


def model_test(model_cls, n_classes, input_shape, kwds={}):
Expand Down Expand Up @@ -258,3 +259,7 @@ def test_attention_unet_with_inception():

def test_unetr():
model_test(unetr, n_classes=1, input_shape=(1, 96, 96, 96, 1))


def test_variational_meshnet():
model_test(variational_meshnet, n_classes=1, input_shape=(1, 128, 128, 128, 1))

0 comments on commit ab341ee

Please sign in to comment.