vijayvee / video-captioning

This repository contains the code for a video captioning system inspired by Sequence to Sequence -- Video to Text. This system takes as input a video and generates a caption in English describing the video.
MIT License
165 stars 66 forks source link

curr_frames = curr_frames[idx,:,:,:] IndexError: only integers, slices (`:`), ellipsis (`...`), numpy.newaxis (`None`) and integer or boolean arrays are valid indices #15

Closed Aishwaryabaskaran closed 5 years ago

Aishwaryabaskaran commented 5 years ago

I am trying to execute Extract_Feats.py and hitting the following error.

curr_frames = curr_frames[idx,:,:,:] IndexError: only integers, slices (:), ellipsis (...), numpy.newaxis (None) and integer or boolean arrays are valid indices

How do I proceed?

I am using Py 3.6. And it seeems to be necessary to convert the map object to list manually to proceed.