Skip to content

Commit fb71e6f

Browse files
authored
Update README.md
1 parent 7671bb0 commit fb71e6f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,10 @@ We can further chain preprocessing and augmentation functions that act on batche
128128

129129
As of `torchvision 0.8.0`, all torchvision transforms can now also operate on batches of images, and they apply deterministic or random transformations
130130
on the batch identically on all images of the batch. Therefore, any torchvision transform can be used here to apply video-uniform preprocessing and augmentation.
131-
131+
132+
REMEMBER:
133+
Pytorch transforms are applied to individual dataset samples (in this case a video frame PIL list, or a frame tensor after `imglist_totensor()`) before
134+
batching. So, any transforms used here must expect its input to be a frame tensor of shape `FRAMES x CHANNELS x HEIGHT x WIDTH` or a list of PIL images if `imglist_totensor()` is not used.
132135
### 5. Conclusion
133136
A proper code-based explanation on how to use VideoFrameDataset for training is provided in `demo.py`
134137

0 commit comments

Comments
 (0)