amzn / xfer

Transfer Learning library for Deep Neural Networks.
Apache License 2.0
253 stars 63 forks source link

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

Open DanielaPlusPlus opened 3 years ago

DanielaPlusPlus commented 3 years ago

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 commented 2 years ago

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.