Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Nov 6, 2025. It is now read-only.
This repository was archived by the owner on Nov 6, 2025. It is now read-only.

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

@DanielaPlusPlus

Description

@DanielaPlusPlus

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions