Skip to content

Commit

Permalink
update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
ncullen93 committed May 6, 2024
1 parent 1fefb9e commit 4014b02
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion nitrain/transforms/labels.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class ExpandLabels(BaseTransform):
It is also possible to keep the original values in the channels
instead of making all values equal to 1.
"""
def __init__(self, keep_values=False, as_channels=False):
def __init__(self, keep_values=False, as_channels=True):
self.keep_values = keep_values
self.as_channels = as_channels

Expand Down
10 changes: 5 additions & 5 deletions tests/test_workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,12 @@ def test_multiclass_segmentation(self):

x,y = dataset[0]

# data_train, data_test = dataset.split(0.8)
data_train, data_test = dataset.split(0.8)

#loader = nt.Loader(dataset,
# images_per_batch=4)
#
#xb, yb = next(iter(loader))
loader = nt.Loader(data_train,
images_per_batch=4)

xb, yb = next(iter(loader))
#
#arch_fn = nt.fetch_architecture('unet', dim=2)
#model = arch_fn(x.shape[:-1]+(1,),
Expand Down

0 comments on commit 4014b02

Please sign in to comment.