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

TypeError: 'map' object is not subscriptable #14

Open
holibert opened this issue Mar 21, 2018 · 1 comment
Open

TypeError: 'map' object is not subscriptable #14

holibert opened this issue Mar 21, 2018 · 1 comment

Comments

@holibert
Copy link

File "model_RGB.py", line 327, in train
current_feats[ind][:len(current_feats_vals[ind])] = feat
TypeError: 'map' object is not subscriptable

I can't fix it. Anyone can help?

@holibert
Copy link
Author

holibert commented Mar 22, 2018

if use python3.x to compile, you need:

current_feats[ind][:len(current_feats_vals[ind])] = feat

change to

current_feats_vals = list(map(lambda vid: np.load(vid), current_videos))

Python 2.x return list。

Python 3.x return 'map' object。

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