gsig / gsig/PyVideoResearch

Questions about charades_video_tsn.py

Open
#30 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
536
Forks
88
PR merge metrics
No merged PRs in 30d

Description

Thank you for sharing the code. It help a lot.
But there is some confusion about the data loading procedure in **charades_video_tsn.py**.
Here is the codes:
``

n = self.data['datas'][index]['n']
if shift is None:
shift = np.random.randint(n-self.train_gap-2)
else:
shift = int(shift * (n-self.train_gap-2))
ss = [shift] + [np.random.randint(n-self.train_gap-2)
for _ in range(self.segments-1)]

``
In this way, ss would be a list including indexes of images to be loaded. But I find the values in ss not regular, which seems not consistent with TSN.
Did I miss something? By the way, what's the difference among **charades_tsn.py**, **charades_video.py** and **charades_video_xx.py**?
Looking forward to your reply.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.