Skip to content

Commit

Permalink
Merge pull request #185 from delphieritas/patch-33
Browse files Browse the repository at this point in the history
enable real image_size loading in ImageDataset4Clf
  • Loading branch information
NLGithubWP committed Mar 11, 2021
2 parents 41d8bac + da673ae commit 332ecdd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion singa_auto/datasets/image_classification_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ def __init__(self,
self.min_image_size = min_image_size
self.max_image_size = max_image_size
self.label_mapper = dict()
self.image_size = None
# to read accual self.image_size
self.__getitem__(0)
if if_shuffle:
(self._image_names,
self._image_classes) = self._shuffle(self._image_names,
Expand Down

0 comments on commit 332ecdd

Please sign in to comment.