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

when --config config/miniImageNet_1shot.json , AttributeError: 'list' object has no attribute 'items' for EasyDict #81

Open
DanielaPlusPlus opened this issue Jun 24, 2021 · 1 comment

Comments

@DanielaPlusPlus
Copy link

Hello, a great work! Thank you for sharing the codes.
I to begin the Step 2 in README :
python main.py --config config/miniImageNet_1shot.yaml --seed 100 --gpu 0

Firstly, I congfig the miniImageNet_1shot.json file path in config.py like this:

def get_args():
"""
Create argparser for frequent configurations.

:return: argparser object
"""
argparser = argparse.ArgumentParser(description=__doc__)
argparser.add_argument(
    '-c', '--config',
    metavar='C',
    default="/home/dy/PP/FSL/sib_meta_learn/data/Mini-ImageNet/val1000Episode_5_way_5_shot.json",
    help='The Configuration file')

Then, I run main,py, there's an error like this:
image

Would you please help me solve the problem? Appreciate!

@hushell
Copy link

hushell commented Jun 23, 2022

Sorry for the super late reply! In case it's still relevant, you may want to print config at utils/config.py:53 to see if it's a dict. It's probably easydict had a major change.

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

2 participants