AbstractPhil commited on
Commit
3fe3838
·
verified ·
1 Parent(s): 3c5276f

Update preparer.py

Browse files
Files changed (1) hide show
  1. preparer.py +3 -1
preparer.py CHANGED
@@ -55,6 +55,8 @@ CONFIG = {
55
  "download_first": True, # Download entire dataset before processing
56
  "cache_dir": "./imagenet_cache", # Where to cache downloaded data
57
  "keep_dataset_in_memory": False, # False to save RAM
 
 
58
  }
59
 
60
  # Extended list of CLIP models to process
@@ -112,7 +114,7 @@ class ImageNetClipFeatureExtractor:
112
  start_time = time.time()
113
 
114
  dataset = load_dataset(
115
- "benjamin-paine/imagenet-1k-256x256",
116
  split=split,
117
  cache_dir=self.cfg["cache_dir"],
118
  keep_in_memory=self.cfg["keep_dataset_in_memory"],
 
55
  "download_first": True, # Download entire dataset before processing
56
  "cache_dir": "./imagenet_cache", # Where to cache downloaded data
57
  "keep_dataset_in_memory": False, # False to save RAM
58
+
59
+ "imagenet_repo": "benjamin-paine/imagenet-1k-256x256",
60
  }
61
 
62
  # Extended list of CLIP models to process
 
114
  start_time = time.time()
115
 
116
  dataset = load_dataset(
117
+ imagenet_repo, #small tweak to allow setting your own imagenet target repo.
118
  split=split,
119
  cache_dir=self.cfg["cache_dir"],
120
  keep_in_memory=self.cfg["keep_dataset_in_memory"],