Spaces:
Paused
Paused
DEV = False
Browse files14 unmodified lines151617181920211 unmodified line232425262728293014 unmodified linesPngImagePlugin.MAX_TEXT_CHUNK = 1048576 * 10 # this is 10x the amount."""This code is designed to read in the ImageNet 1K ILSVRC dataset from the Hugging Face Hub,then create a new version of this dataset with {percentage} lines with random labels between 0-9,then upload this new version of the Hugging Face Hub, in the Data Composition organization:https://huggingface.co/datasets/datacomp"""1 unmodified line# The number of examples/instances in this dataset is copied from the model card:# https://huggingface.co/datasets/ILSVRC/imagenet-1kNUM_EXAMPLES = 1281167# Arbitrary small number of dataset examples to look at, only using in devv'ing.DEV = TrueDEV_AMOUNT = 10if DEV:NUM_EXAMPLES = DEV_AMOUNT14 unmodified lines151617181920211 unmodified line232425262728293014 unmodified linesPngImagePlugin.MAX_TEXT_CHUNK = 1048576 * 10 # this is 10x the amount."""This code is designed to read in the ImageNet 1K ILSVRC dataset from the Hugging Face Hub,then create a new version of this dataset with {percentage} lines with random labels based on the observed frequencies,then upload this new version of the Hugging Face Hub, in the Data Composition organization:https://huggingface.co/datasets/datacomp"""1 unmodified line# The number of examples/instances in this dataset is copied from the model card:# https://huggingface.co/datasets/ILSVRC/imagenet-1kNUM_EXAMPLES = 1281167DEV = False# Arbitrary small number of dataset examples to look at, only using in devv'ing.DEV_AMOUNT = 10if DEV:NUM_EXAMPLES = DEV_AMOUNT
app.py+2-2