Spaces:
Sleeping
Sleeping
DEV = False
Browse files
app.py
CHANGED
|
@@ -15,7 +15,7 @@ ImageFile.LOAD_TRUNCATED_IMAGES = True
|
|
| 15 |
PngImagePlugin.MAX_TEXT_CHUNK = 1048576 * 10 # this is 10x the amount.
|
| 16 |
"""
|
| 17 |
This code is designed to read in the ImageNet 1K ILSVRC dataset from the Hugging Face Hub,
|
| 18 |
-
then create a new version of this dataset with {percentage} lines with random labels
|
| 19 |
then upload this new version of the Hugging Face Hub, in the Data Composition organization:
|
| 20 |
https://huggingface.co/datasets/datacomp
|
| 21 |
"""
|
|
@@ -23,8 +23,8 @@ https://huggingface.co/datasets/datacomp
|
|
| 23 |
# The number of examples/instances in this dataset is copied from the model card:
|
| 24 |
# https://huggingface.co/datasets/ILSVRC/imagenet-1k
|
| 25 |
NUM_EXAMPLES = 1281167
|
|
|
|
| 26 |
# Arbitrary small number of dataset examples to look at, only using in devv'ing.
|
| 27 |
-
DEV = True
|
| 28 |
DEV_AMOUNT = 10
|
| 29 |
if DEV:
|
| 30 |
NUM_EXAMPLES = DEV_AMOUNT
|
|
|
|
| 15 |
PngImagePlugin.MAX_TEXT_CHUNK = 1048576 * 10 # this is 10x the amount.
|
| 16 |
"""
|
| 17 |
This code is designed to read in the ImageNet 1K ILSVRC dataset from the Hugging Face Hub,
|
| 18 |
+
then create a new version of this dataset with {percentage} lines with random labels based on the observed frequencies,
|
| 19 |
then upload this new version of the Hugging Face Hub, in the Data Composition organization:
|
| 20 |
https://huggingface.co/datasets/datacomp
|
| 21 |
"""
|
|
|
|
| 23 |
# The number of examples/instances in this dataset is copied from the model card:
|
| 24 |
# https://huggingface.co/datasets/ILSVRC/imagenet-1k
|
| 25 |
NUM_EXAMPLES = 1281167
|
| 26 |
+
DEV = False
|
| 27 |
# Arbitrary small number of dataset examples to look at, only using in devv'ing.
|
|
|
|
| 28 |
DEV_AMOUNT = 10
|
| 29 |
if DEV:
|
| 30 |
NUM_EXAMPLES = DEV_AMOUNT
|