mcurmei commited on
Commit
31f80f8
·
verified ·
1 Parent(s): 4e331c3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -29,6 +29,7 @@ FRACTIONS = [2, 4, 8, 16, 32, 64]
29
  DEV_AMOUNT = 10
30
  if DEV:
31
  NUM_EXAMPLES = DEV_AMOUNT
 
32
  # Whether to read in the distribution over labels from an external text file.
33
  READ_DISTRO = False
34
  GATED_IMAGENET = os.environ.get("GATED_IMAGENET")
@@ -59,10 +60,10 @@ def main(percentage=10):
59
 
60
  # Upload the new version of the dataset (this will take awhile)
61
  if DEV:
62
- Dataset.from_generator(updated_dataset.__iter__).push_to_hub(
63
  "datacomp/debug-imagenet-1k-random-" + "-" + str(percentage) + '-frac-1/' + str(frac), token=GATED_IMAGENET)
64
  else:
65
- Dataset.from_generator(updated_dataset.__iter__).push_to_hub(
66
  "datacomp/imagenet-1k-random" + str(percentage) + '-frac-1/' + str(frac), token=GATED_IMAGENET)
67
 
68
 
 
29
  DEV_AMOUNT = 10
30
  if DEV:
31
  NUM_EXAMPLES = DEV_AMOUNT
32
+ FRACTIONS = [2]
33
  # Whether to read in the distribution over labels from an external text file.
34
  READ_DISTRO = False
35
  GATED_IMAGENET = os.environ.get("GATED_IMAGENET")
 
60
 
61
  # Upload the new version of the dataset (this will take awhile)
62
  if DEV:
63
+ Dataset.from_generator(sampled_dataset.__iter__).push_to_hub(
64
  "datacomp/debug-imagenet-1k-random-" + "-" + str(percentage) + '-frac-1/' + str(frac), token=GATED_IMAGENET)
65
  else:
66
+ Dataset.from_generator(sampled_dataset.__iter__).push_to_hub(
67
  "datacomp/imagenet-1k-random" + str(percentage) + '-frac-1/' + str(frac), token=GATED_IMAGENET)
68
 
69