Skip to content

Commit 5a65c71

Browse files
authored
Update README.md
1 parent 1d6ee5f commit 5a65c71

File tree

1 file changed

+29
-1
lines changed

1 file changed

+29
-1
lines changed

README.md

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,36 @@ running/0001 5 10 1
133133
running/0002 1 15 1
134134
```
135135
(END_FRAME is inclusive)
136+
137+
Another, simpler, example of the way your dataset's RGB frames can be organized on disk is the following:
138+
```
139+
demo_dataset
140+
141+
├───annotations.txt
142+
└───rgb
143+
├───video_1
144+
│ ├───img_00001.jpg
145+
│ .
146+
│ └───img_00017.jpg
147+
├───video_2
148+
│ ├───img_00001.jpg
149+
│ .
150+
│ └───img_00044.jpg
151+
└───video_3
152+
├───img_00001.jpg
153+
.
154+
└───img_00023.jpg
155+
156+
157+
```
158+
The accompanying annotation `.txt` file contains the following rows (PATH, START_FRAME, END_FRAME, LABEL_ID)
159+
```
160+
video_1 1 17 1
161+
video_2 1 44 0
162+
video_3 1 23 0
163+
```
136164

137-
Instantiating a VideoFrameDataset with the `root_path` parameter pointing to `demo_dataset`, the `annotationsfile_path` parameter pointing to the annotation file, and
165+
Instantiating a VideoFrameDataset with the `root_path` parameter pointing to `demo_dataset/rgb/`, the `annotationsfile_path` parameter pointing to the annotation file `demo_dataset/annotations.txt`, and
138166
the `imagefile_template` parameter as "img_{:05d}.jpg", is all that it takes to start using the VideoFrameDataset class.
139167

140168
### 3. Video Frame Sampling Method

0 commit comments

Comments
 (0)