Skip to content

Commit c872f54

Browse files
committed
explicitly state file fomat for classification dataset. Fixes #5
1 parent 717eac5 commit c872f54

File tree

1 file changed

+2
-1
lines changed
  • pytorch_fob/tasks/classification

1 file changed

+2
-1
lines changed

pytorch_fob/tasks/classification/data.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ def _get_train_transforms(self, config: TaskConfig):
7373
def prepare_data(self):
7474
# download
7575
# TODO: find a solution to remove tensorflow from requirements as it is only needed for the download
76-
tfds.data_source("imagenet_resized/64x64", data_dir=self.data_dir, download=True)
76+
kwargs = {"file_format": "array_record"}
77+
tfds.data_source("imagenet_resized/64x64", data_dir=self.data_dir, download=True, builder_kwargs=kwargs)
7778

7879
def setup(self, stage: str):
7980
"""setup is called from every process across all the nodes. Setting state here is recommended.

0 commit comments

Comments
 (0)