<jupyter_start><jupyter_text>Load Imagenet Dataset<jupyter_code>from importlib.util import find_spec
if find_spec("vgg") is None:
    import sys
    sys.path.append('..')
from torchvision import datasets, transforms
from vgg.base import base_data_loader
normalize = transforms.Normalize(mean=[0.485, 0.456, 0.406],
                                     std=[0.229, 0.224, 0.225])
trsfm = transforms.Compose([
    transforms.RandomResizedCrop(224),
    transforms.RandomHorizontalFlip(),
    transforms.ToTensor(),
    normalize
])

dataset = datasets.ImageNet('../data', train=True, download=True, transform=trsfm)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.12441679626749612, 'fraction_numerical': 0.041990668740279936, 'mean_word_length': 4.070866141732283, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '523347', 'license': 'MIT', 'n_tokens_mistral': 232, 'n_tokens_neox': 208, 'n_words': 40, 'path': 'notebooks/01_imagenet.ipynb', 'repo_name': 'mhd53/vgg-from-torch', 'size': '643'}