KaiyangZhou / pytorch-vsumm-reinforce

Unsupervised video summarization with deep reinforcement learning (AAAI'18)
MIT License
474 stars 150 forks source link

How to create user summary of custom video dataset and save it in H5 py file? #32

Open Swati640 opened 5 years ago

Swati640 commented 5 years ago

Please explain, how to create the user summary and save it in the H5py file. I am able to create h5py file for my own video dataset but have no idea for user summary key for H5py file. Please help.

Harryjun commented 5 years ago

you can see here, I make some introduction code

First make datastes python video_forward2.py --makedatasets --dataset data_our/data_h5/data1.h5 --video-dir data_video/data1/ --frm-dir data_our/frames Second make score and generate summary python3 video_forward2.py --makescore --model log/summe-split0/model_epoch1000.pth.tar --gpu 0 --dataset data_our/data_h5/data2.h5 --save-dir logs/videolog/ \ --summary --frm-dir data_our/frames

Swati640 commented 5 years ago

@Harryjun I think what you are explaining, that is machine summary and machine score. But I am asking for ground truth summary, which is mentioned as "user_summary" in h5py file. Please explain

anaghazachariah commented 4 years ago

Please refer Zhang, K., Chao, W.L., Sha, F., Grauman, K.: Video summarization with longshort-term memory. In: European conference on computer vision. pp. 766–782.Springer (2016). You can also refer my repo.I had implemented this project https://github.com/anaghazachariah/video_summary_generaton