Comments (7)
Hi~!!
Could you show 20 binary vectors?
from pytorch-vsumm-reinforce.
Yes, for example, I printed 20 binary vectors for video 10 with the following code:
target = h5py.File('eccv16_dataset_tvsum_google_pool5.h5', 'r')['video_10']['user_summary']
for index in range(len(target)):
each_target = target[index]
print(each_target)
unique, counts = numpy.unique(each_target, return_counts = True)
print(dict(zip(unique, counts)))
And the result will be:
[0. 0. 0. ... 0. 0. 0.]
{0.0: 3443, 1.0: 552}
[0. 0. 0. ... 0. 0. 0.]
{0.0: 3425, 1.0: 570}
[0. 0. 0. ... 1. 1. 1.]
{0.0: 3398, 1.0: 597}
[0. 0. 0. ... 0. 0. 0.]
{0.0: 3409, 1.0: 586}
[0. 0. 0. ... 0. 0. 0.]
{0.0: 3402, 1.0: 593}
[0. 0. 0. ... 0. 0. 0.]
{0.0: 3416, 1.0: 579}
[0. 0. 0. ... 1. 1. 1.]
{0.0: 3398, 1.0: 597}
[0. 0. 0. ... 1. 1. 1.]
{0.0: 3402, 1.0: 593}
[0. 0. 0. ... 1. 1. 1.]
{0.0: 3397, 1.0: 598}
[0. 0. 0. ... 0. 0. 0.]
{0.0: 3418, 1.0: 577}
[0. 0. 0. ... 0. 0. 0.]
{0.0: 3396, 1.0: 599}
[0. 0. 0. ... 0. 0. 0.]
{0.0: 3443, 1.0: 552}
[0. 0. 0. ... 0. 0. 0.]
{0.0: 3410, 1.0: 585}
[0. 0. 0. ... 0. 0. 0.]
{0.0: 3406, 1.0: 589}
[0. 0. 0. ... 0. 0. 0.]
{0.0: 3431, 1.0: 564}
[0. 0. 0. ... 0. 0. 0.]
{0.0: 3413, 1.0: 582}
[0. 0. 0. ... 1. 1. 1.]
{0.0: 3396, 1.0: 599}
[0. 0. 0. ... 1. 1. 1.]
{0.0: 3414, 1.0: 581}
[0. 0. 0. ... 1. 1. 1.]
{0.0: 3414, 1.0: 581}
[0. 0. 0. ... 1. 1. 1.]
{0.0: 3397, 1.0: 598}
The first row is a binary vector, and the second one is the value counts for it.
from pytorch-vsumm-reinforce.
@leon20121005
Hi~!!
"eccv16_dataset_tvsum_google_pool5.h5', 'r')['video_10']['user_summary']" is 20 binary vector.
[0. 0. 0. ... 0. 0. 0.]
{0.0: 3443, 1.0: 552}
number of '0.0' is 3443.
number of '1.0' is 552.
index having '1' is ground truth in [0. 0. 0. ... 0. 0. 0.].
why convert to 20 binary?
from pytorch-vsumm-reinforce.
Hi, what I mean is, the original user annotations from TVSum is {1, 2, 3, 4, 5} for each frames.
And I found that this dataset is {0, 1} for each frames.
So there's might be a threshold of something to convert it?
from pytorch-vsumm-reinforce.
Hi, i got it!!
i think {0,1} is "user_summary", {1,2,3,4,5} is "user_score".
i don't know how to convert. so, you need to ask converting way to @KaiyangZhou.
i guess threshold value of average about each frames is 0.5.
from pytorch-vsumm-reinforce.
Please refer https://github.com/anaghazachariah/video_summary_generaton.You can also refer my repo.I had implemented the project https://github.com/anaghazachariah/video_summary_generaton
from pytorch-vsumm-reinforce.
refer: Zhang, K.; Chao, W.-L.; Sha, F.; and Grauman, K. 2016b. Video summarization with long shortterm memory. In ECCV,766–782. Springer.
from pytorch-vsumm-reinforce.
Related Issues (20)
- Module Not Found Error HOT 15
- summary2video.py
- Question about Reward funtion ? HOT 1
- original Youtube and OVP datasets HOT 9
- How to find Reward Diversity score ?
- 0.0% Fscore for videos and probably wrong Summary. HOT 1
- Can not download the dataset.
- Could u tell me the relationship between 'gtscore' and 'gtsummary'? HOT 1
- Dataset for video summaization HOT 26
- Link to download dataset in repo is dead. HOT 2
- H5 dataset generation
- frame score
- Few Frame Ids from MachineSummary not available in VideoFrames generated. HOT 1
- Processed features and original videos HOT 1
- Problem with video index when running "summary2video.py" HOT 1
- GoogLe Net implementation HOT 5
- splits
- dist_mat = dist_mat.min(1, keepdim=True)[0] IndexError: Dimension out of range HOT 1
- DataSet Out of Date
- FileNotFoundError: [Errno 2] No such file or directory: 'path_to_your_model.pth.tar' HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pytorch-vsumm-reinforce.