Deep Reinforcement article Learning for Unsupervised Video Summarization with Diversity-Representativeness Reward, which implements an unsupervised method of video summarization, based on Reinforcement Learning. This method puts in place architecture on which is based a process formulated as a decision problem in which an agent (DSN - Deep Summarization Network consisting of a CNN and a BiRNN) interacts through actions, via a 
You need some dependencies, please install them as Follow this template.
conda env create --name envname --file=requirements.yml[google drive link][https://drive.google.com/open?id=1Bf0beMN_ieiM3JpprghaoOwQe9QJIyAN]
[alt_dataset][https://www.kaggle.com/datasets/c572e52ed35f22090e1d4b8a304c8b81c5411cef539030663b2b75bfd193f2e7]
python create_split.py -d datasets/eccv16_dataset_summe_google_pool5.h5 --save-dir datasets --save-name summe_splits --num-splits 5As a result, the dataset is randomly split for 5 times, which are saved as json file. Adapt and apply the same command to the alternative dataset.
Train and test codes are written in main.py. To see the detailed arguments, please do python main.py -h.
python main.py -d datasets/eccv16_dataset_summe_google_pool5.h5 -s datasets/summe_splits.json -m summe --gpu 0 --save-dir log/summe-split0 --split-id 0 --verbosepython main.py -d datasets/eccv16_dataset_summe_google_pool5.h5 -s datasets/summe_splits.json -m summe --gpu 0 --save-dir log/summe-split0 --split-id 0 --evaluate --resume path_to_your_model.pth.tar --verbose --save-resultsIf argument --save-results is enabled, output results will be saved to results.h5 under the same folder specified by --save-dir. To visualize the score-vs-gtscore, simple do
python visualize_results.py -p path_to/result.h5Read the result.h5 file:
h5ls -r path_to/result.h5Note the index of chosen video (i=0,...)
python direct_summary2video.py -p path_to/result.h5 -v path_to/real_video.mp4 -i index_of_the_chosen_videoThe video summary is produced inside the summaries folder
@article{zhou2017reinforcevsumm,
title={Deep Reinforcement Learning for Unsupervised Video Summarization with Diversity-Representativeness Reward},
author={Zhou, Kaiyang and Qiao, Yu and Xiang, Tao},
journal={arXiv:1801.00054},
year={2017}
}