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

np.rand? #28

Open sohamirian opened 4 years ago

sohamirian commented 4 years ago

Hi, for this part in utils:

def fetch_data_batch(batch_size):

curr_batch_vids = np.random.rand(video_files,batch_size)

I get this error: TypeError: 'dict_keys' object cannot be interpreted as an integer

What should I do? Any idea? Thanks!