Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in mlx.data.datasets.load_imagenet function due to missing 'archives' definition. #68

Open
lizhelang opened this issue Jul 25, 2024 · 0 comments

Comments

@lizhelang
Copy link

Traceback (most recent call last):
File "/Users/lzl/FILE/Program/python/July17/federated-learning-master_mlx/mlx-imagenet-all.py", line 47, in
dataset_train = load_imagenet_data(train_dir,'train')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/lzl/FILE/Program/python/July17/federated-learning-master_mlx/mlx-imagenet-all.py", line 32, in load_imagenet_data
return load_imagenet(root=image_folder, split=plit, quiet=False, validate_download=True, tar_index_threads=None)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/lzl/anaconda3/lib/python3.11/site-packages/mlx/data/datasets/imagenet.py", line 159, in load_imagenet
metadata, val_gt = load_imagenet_devkit(root, quiet, validate_download)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/lzl/anaconda3/lib/python3.11/site-packages/mlx/data/datasets/imagenet.py", line 74, in load_imagenet_devkit
f"The devkit is missing from {str(root)}. Make sure to download {archives.name} from the imagenet website."
^^^^^^^^
NameError: name 'archives' is not defined. Did you mean: 'archive'?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant