Skip to content

What does SampleFrames means? #655

Answered by irvingzhang0512
nixczhou asked this question in Q&A
Discussion options

You must be logged in to vote

SampleFrames defines sample strategy for input frames. Sample strategy is defined as clip_len x frame_interval x num_clips. There are two sample strategy, uniform sampling and dense sampling.

Dense strategy samples continuous frames. To be more specific, samples one frame every frame_interval frames and finally get clip_len frames.
Uniform strategy(clip_len == 1) devides all frames into num_clips parts and samples one frame from each part.

If there are 96 frames for one sample, frame id in range [1, 96].
Dense strategy demo: 32x2x1 may select no.1, 3, 5, ..., 63 frames.
Uniform strategy demo:1x1x8 divides 100 frames into [1, 12], [13, 24], [25, 36], [37, 48], ..., [85, 96] and may select no.

Replies: 5 comments 10 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
10 replies
@nixczhou
Comment options

@irvingzhang0512
Comment options

@nixczhou
Comment options

@irvingzhang0512
Comment options

@nixczhou
Comment options

Answer selected by nixczhou
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants