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

load train_data error #12

Open
TongfangZhou opened this issue Oct 26, 2021 · 0 comments
Open

load train_data error #12

TongfangZhou opened this issue Oct 26, 2021 · 0 comments

Comments

@TongfangZhou
Copy link

when I'm trying to load the train and val data, there is an error popped out like:
unhashable type: 'dict'

The complete error message lookes like this.

 49             name_dict = {"1": 1,"2": 2,"3": 3}
 50             #key = tuple(name_dict)

---> 51 num_ids = [name_dict[a] for a in types]
52
53 # num_ids = [int(n['Event']) for n in objects]

TypeError: unhashable type: 'dict'

can you help to have a look one what's going on? thanks a lot

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