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

KeyError: 'x is not a file in the archive' #5

Open
wdlovecjy opened this issue May 28, 2024 · 0 comments
Open

KeyError: 'x is not a file in the archive' #5

wdlovecjy opened this issue May 28, 2024 · 0 comments

Comments

@wdlovecjy
Copy link

When I use this code for training, the following error is reported
Traceback (most recent call last):
File "/home/caojiayi/桌面/AGC-net-main/main.py", line 197, in
datasets, scaler = load_dataset(args.data_path, args.batch_size)
File "/home/caojiayi/桌面/AGC-net-main/main.py", line 23, in load_dataset
datasets['x_' + category] = cat_data['x']
File "/home/caojiayi/anaconda3/envs/pytorch/lib/python3.10/site-packages/numpy/lib/npyio.py", line 263, in getitem
raise KeyError(f"{key} is not a file in the archive")
KeyError: 'x is not a file in the archive'

How do I fix this? Thank you.

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