Datasets:

License:
Leyo commited on
Commit
6f45fe1
1 Parent(s): c3d763c

use jz paths hardcoded

Browse files
Files changed (1) hide show
  1. SNLIVE.py +3 -6
SNLIVE.py CHANGED
@@ -60,7 +60,7 @@ _SNLI_VE_SPLITS = {
60
  "validation": "snli_ve_dev.jsonl",
61
  "test": "snli_ve_test.jsonl",
62
  }
63
-
64
 
65
  _FEATURES = datasets.Features(
66
  {
@@ -107,17 +107,14 @@ class SNLIVE(datasets.GeneratorBasedBuilder):
107
  },
108
  }
109
  snli_ve_annotation_path = dl_manager.download_and_extract(urls)
110
- images_path = os.path.join(
111
- dl_manager.extract(os.path.join(dl_manager.manual_dir, "flickr30k-images.tar.gz")),
112
- "flickr30k-images"
113
- )
114
 
115
  return [
116
  datasets.SplitGenerator(
117
  name=datasets.Split.TRAIN,
118
  gen_kwargs={
119
  "snli_ve_annotation_path": snli_ve_annotation_path[self.config.name]["train"],
120
- "images_path": images_path
121
  },
122
  ),
123
  datasets.SplitGenerator(
 
60
  "validation": "snli_ve_dev.jsonl",
61
  "test": "snli_ve_test.jsonl",
62
  }
63
+ JZ_FOLDER_PATH = f"{os.environ['cnw_ALL_CCFRSCRATCH']}/local_datasets/flickr30k-images.tar.gz"
64
 
65
  _FEATURES = datasets.Features(
66
  {
 
107
  },
108
  }
109
  snli_ve_annotation_path = dl_manager.download_and_extract(urls)
110
+ images_path = dl_manager.download_and_extract(JZ_FOLDER_PATH)
 
 
 
111
 
112
  return [
113
  datasets.SplitGenerator(
114
  name=datasets.Split.TRAIN,
115
  gen_kwargs={
116
  "snli_ve_annotation_path": snli_ve_annotation_path[self.config.name]["train"],
117
+ "images_path": images_path
118
  },
119
  ),
120
  datasets.SplitGenerator(