S2VT
S2VT copied to clipboard
TypeError: 'map' object is not subscriptable
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?
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。