weirme / FCSN

A PyTorch reimplementation of FCSN in paper "Video Summarization Using Fully Convolutional Sequence Networks"
115 stars 33 forks source link

Interval problem #14

Open pcshih opened 5 years ago

pcshih commented 5 years ago

https://github.com/weirme/Video_Summary_using_FCSN/blob/0895cccbb2a488369b1bfc7d2c087b3050250898/eval.py#L24

The [start:end] operator excludes the end element

should it be pred_value = np.array([pred_score[cp[0]:(cp[1]+1)].mean() for cp in cps]) ?

Also https://github.com/weirme/Video_Summary_using_FCSN/blob/0895cccbb2a488369b1bfc7d2c087b3050250898/eval.py#L29