Skip to content

Commit 6bd8d32

Browse files
authored
Update README.md
1 parent 014a77a commit 6bd8d32

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,9 @@ the `imagefile_template` parameter as "img_{:05d}.jpg", is all that it takes to
119119
When loading a video, only a number of its frames are loaded. They are chosen in the following way:
120120
1. The frame indices [1,N] are divided into NUM_SEGMENTS even segments. From each segment, FRAMES_PER_SEGMENT consecutive indices are chosen at random.
121121
This results in NUM_SEGMENTS*FRAMES_PER_SEGMENT chosen indices, whose frames are loaded as PIL images and put into a list and returned when calling
122-
`dataset[i]`.
122+
`dataset[i]`.
123+
124+
![alt text](https://github.com/RaivoKoot/images/blob/main/Sparse_Temporal_Sampling.jpg "Sparse-Temporal-Sampling-Strategy")
123125

124126
### 4. Using VideoFrameDataset for training
125127
As demonstrated in `demo.py`, we can use PyTorch's `torch.utils.data.DataLoader` class with VideoFrameDataset to take care of shuffling, batching, and more.

0 commit comments

Comments
 (0)