Skip to content

Commit 4800472

Browse files
committed
PyTorch Video Dataset Loading Implementation
1 parent 3f35836 commit 4800472

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,17 +89,17 @@ demo_dataset
8989
│ └───0002
9090
│ ├───img_00001.jpg
9191
│ .
92-
│ └───img_00017.jpg
92+
│ └───img_00018.jpg
9393
9494
└───running # arbitrary folder naming
9595
├───0001 # arbitrary video folder naming
9696
│ ├───img_00001.jpg
9797
│ .
98-
│ └───img_00017.jpg
98+
│ └───img_00015.jpg
9999
└───0002
100100
├───img_00001.jpg
101101
.
102-
└───img_00017.jpg
102+
└───img_00015.jpg
103103
104104
105105
```

demo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
test_mode=False
6060
)
6161

62-
sample = dataset[1]
62+
sample = dataset[2]
6363
# tensor of shape (NUM_SEGMENTS*FRAMES_PER_SEGMENT) x CHANNELS x HEIGHT x WIDTH
6464
frame_tensor = sample[0]
6565
print('Video Tensor Size:', frame_tensor.size())

0 commit comments

Comments
 (0)