zhuchi76 commited on
Commit
3cd2f6c
·
verified ·
1 Parent(s): 7580b79

Update script to hub

Browse files
Files changed (1) hide show
  1. Boat_dataset.py +1 -0
Boat_dataset.py CHANGED
@@ -120,6 +120,7 @@ class BoatDataset(datasets.GeneratorBasedBuilder):
120
  # By default the archives will be extracted and a path to a cached folder where they are extracted is returned instead of the archive
121
  urls = _URLS[self.config.name]
122
  data_dir = dl_manager.download_and_extract(urls)
 
123
  return [
124
  datasets.SplitGenerator(
125
  name=datasets.Split.TRAIN,
 
120
  # By default the archives will be extracted and a path to a cached folder where they are extracted is returned instead of the archive
121
  urls = _URLS[self.config.name]
122
  data_dir = dl_manager.download_and_extract(urls)
123
+ data_dir = os.path.join(data_dir, "images")
124
  return [
125
  datasets.SplitGenerator(
126
  name=datasets.Split.TRAIN,