-
Notifications
You must be signed in to change notification settings - Fork 248
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: 'class_name' #33
Comments
Make sure you successfully ran the two datasets preparing files ( I hope this works. |
I had the same problem. Apparently, in my case |
I encountered the same error, and the reason for my error is that I moved the two scripts for processing data to the project directory to run. My solution : ensure that these two scripts ('prepare_mini_imagenet. py' and 'prepare_omniglot. py') are run in the scripts directory. For example, in 'config. py', you set DATA_ PATH='../data', you need to create a new data folder under the project directory, put the dataset in the data folder as required, and then run two scripts under the scripts directory respectively. After successfully processing the data, this problem should not occur again when you train the model. |
Hi, I encountered the same problem. It's because the data were not placed in the correct directory. As mentioned in README.md file, put the 'images_background' and 'images_evaluation' files into 'DATA_PATH/Omniglot/', and the problem could be resolved. |
when i train the model ,it occurd KeyError: 'class_name'
Traceback (most recent call last):
File "/home/cc/anaconda3/envs/HowToTrainYourMAMLPytorch-master/lib/python3.6/site-packages/pandas/core/indexes/base.py", line 2889, in get_loc
return self._engine.get_loc(casted_key)
File "pandas/_libs/index.pyx", line 70, in pandas._libs.index.IndexEngine.get_loc
File "pandas/_libs/index.pyx", line 97, in pandas._libs.index.IndexEngine.get_loc
File "pandas/_libs/hashtable_class_helper.pxi", line 1675, in pandas._libs.hashtable.PyObjectHashTable.get_item
File "pandas/_libs/hashtable_class_helper.pxi", line 1683, in pandas._libs.hashtable.PyObjectHashTable.get_item
KeyError: 'class_name'
please tell me methods of resolution,thank you very much
The text was updated successfully, but these errors were encountered: