Skip to content

Commit

Permalink
[FIX] truth value error
Browse files Browse the repository at this point in the history
  • Loading branch information
wbenbihi committed Dec 6, 2020
1 parent c80ca86 commit 1836d40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dataset/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,15 @@ def __init__(self, config: HourglassConfig):
self.train_dataset: tf.data.Dataset = self._create_dataset(self.summary_train)
self.test_dataset: tf.data.Dataset = self._create_dataset(self.summary_test)
self.val_dataset: Optional[tf.data.Dataset] = (
self._create_dataset(self.summary_val) if self.summary_val else None
self._create_dataset(self.summary_val) if self.summary_val is not None else None
)
self._has_datasets = True

# Data Augmentation
self.train_dataset = self._augment_dataset(self.train_dataset)
self.test_dataset = self._augment_dataset(self.test_dataset)
self.val_dataset = (
self._augment_dataset(self.val_dataset) if self.val_dataset else None
self._augment_dataset(self.val_dataset) if self.val_dataset is not None else None
)
self._has_augments = True

Expand Down

0 comments on commit 1836d40

Please sign in to comment.