Giter Site home page Giter Site logo

Comments (7)

SinDongHwan avatar SinDongHwan commented on July 17, 2024

@leon20121005

Hi~!!
Could you show 20 binary vectors?

from pytorch-vsumm-reinforce.

leon20121005 avatar leon20121005 commented on July 17, 2024

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.

SinDongHwan avatar SinDongHwan commented on July 17, 2024

@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.

leon20121005 avatar leon20121005 commented on July 17, 2024

@SinDongHwan

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.

SinDongHwan avatar SinDongHwan commented on July 17, 2024

@leon20121005

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.

anaghazachariah avatar anaghazachariah commented on July 17, 2024

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.

wss321 avatar wss321 commented on July 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.