Skip to content

Commit cf140b6

Browse files
committed
fix: update Label augmentation to include recompute targets
1 parent f812fce commit cf140b6

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

deepem/data/augment/cortex/aug_16nm.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,6 @@ def get_augmentation(
9090

9191
# Recompute connected components
9292
if recompute:
93-
augs.append(Label())
93+
augs.append(Label(targets=recompute))
9494

9595
return Compose(augs)

deepem/data/augment/cortex/aug_4nm.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,6 @@ def get_augmentation(
9090

9191
# Recompute connected components
9292
if recompute:
93-
augs.append(Label())
93+
augs.append(Label(targets=recompute))
9494

9595
return Compose(augs)

deepem/data/augment/cortex/aug_8nm.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,6 @@ def get_augmentation(
9090

9191
# Recompute connected components
9292
if recompute:
93-
augs.append(Label())
93+
augs.append(Label(targets=recompute))
9494

9595
return Compose(augs)

deepem/train/option.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def initialize(self):
107107
self.parser.add_argument('--updown_scale_factor', type=vec3f, default=None)
108108

109109
# Data augmentation
110-
self.parser.add_argument('--recompute', action='store_true')
110+
self.parser.add_argument('--recompute', type=str, default=[], nargs='+')
111111
self.parser.add_argument('--border', type=str, default=[], nargs='+')
112112
self.parser.add_argument('--flip', action='store_true')
113113
self.parser.add_argument('--grayscale', action='store_true')

0 commit comments

Comments
 (0)