Skip to content

Commit 00159ea

Browse files
authored
Remove 0-padding from example filenames (#32)
* Remove 0-padding from filenames * Update filename examples in project_structure.md
1 parent 0523ae7 commit 00159ea

9 files changed

+20
-20
lines changed

docs/source/project_structure.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ For a session with 5 labelled frames sampled from different parts of the video,
152152
{"id": 2300, "file_name": "sub-M708149_ses-20200317_cam-topdown_frame-02300.png", "width": 1300, "height": 1028},
153153
{"id": 3500, "file_name": "sub-M708149_ses-20200317_cam-topdown_frame-03500.png", "width": 1300, "height": 1028},
154154
{"id": 7200, "file_name": "sub-M708149_ses-20200317_cam-topdown_frame-07200.png", "width": 1300, "height": 1028},
155-
{"id": 9800, "file_name": "sub-M708149_ses-20200317_cam-topdown_frame-09800.png", "width": 1300, "height": 1028}
155+
{"id": 19800, "file_name": "sub-M708149_ses-20200317_cam-topdown_frame-19800.png", "width": 1300, "height": 1028}
156156
]
157157
```
158158

@@ -176,15 +176,15 @@ For a clip starting at frame 1000 with a duration of 5 frames, the `images` arra
176176

177177
```json
178178
[
179-
{"id": 0, "file_name": "sub-M708149_ses-20200317_cam-topdown_frame-01000", "width": 1300, "height": 1028},
180-
{"id": 1, "file_name": "sub-M708149_ses-20200317_cam-topdown_frame-01001", "width": 1300, "height": 1028},
181-
{"id": 2, "file_name": "sub-M708149_ses-20200317_cam-topdown_frame-01002", "width": 1300, "height": 1028},
182-
{"id": 3, "file_name": "sub-M708149_ses-20200317_cam-topdown_frame-01003", "width": 1300, "height": 1028},
183-
{"id": 4, "file_name": "sub-M708149_ses-20200317_cam-topdown_frame-01004", "width": 1300, "height": 1028}
179+
{"id": 0, "file_name": "sub-M708149_ses-20200317_cam-topdown_frame-1000", "width": 1300, "height": 1028},
180+
{"id": 1, "file_name": "sub-M708149_ses-20200317_cam-topdown_frame-1001", "width": 1300, "height": 1028},
181+
{"id": 2, "file_name": "sub-M708149_ses-20200317_cam-topdown_frame-1002", "width": 1300, "height": 1028},
182+
{"id": 3, "file_name": "sub-M708149_ses-20200317_cam-topdown_frame-1003", "width": 1300, "height": 1028},
183+
{"id": 4, "file_name": "sub-M708149_ses-20200317_cam-topdown_frame-1004", "width": 1300, "height": 1028}
184184
]
185185
```
186186

187-
Here `id: 0` through `id: 4` are the local clip indices, while `frame-01000` through `frame-01004` in the `file_name` values refer to the original frame positions in the session video.
187+
Here `id: 0` through `id: 4` are the local clip indices, while `frame-1000` through `frame-1004` in the `file_name` values refer to the original frame positions in the session video.
188188
:::
189189

190190
### Visibility encoding
@@ -207,10 +207,10 @@ Train/
207207
│ ├── sub-M708149_ses-20200317_cam-topdown_frame-02300.png
208208
│ ├── sub-M708149_ses-20200317_cam-topdown_frame-03500.png
209209
│ ├── sub-M708149_ses-20200317_cam-topdown_frame-07200.png
210-
│ ├── sub-M708149_ses-20200317_cam-topdown_frame-09800.png
210+
│ ├── sub-M708149_ses-20200317_cam-topdown_frame-19800.png
211211
│ └── sub-M708149_ses-20200317_cam-topdown_framelabels.json
212212
├── Clips/
213-
│ ├── sub-M708149_ses-20200317_cam-topdown_start-01000_dur-5.mp4
214-
│ └── sub-M708149_ses-20200317_cam-topdown_start-01000_dur-5_cliplabels.json
213+
│ ├── sub-M708149_ses-20200317_cam-topdown_start-1000_dur-5.mp4
214+
│ └── sub-M708149_ses-20200317_cam-topdown_start-1000_dur-5_cliplabels.json
215215
└── sub-M708149_ses-20200317_cam-topdown.mp4
216216
```

tests/data/Train/SWC-plusmaze/sub-M708149_ses-20200317/Clips/sub-M708149_ses-20200317_cam-topdown_start-01000_dur-5.mp4 renamed to tests/data/Train/SWC-plusmaze/sub-M708149_ses-20200317/Clips/sub-M708149_ses-20200317_cam-topdown_start-1000_dur-5.mp4

File renamed without changes.

tests/data/Train/SWC-plusmaze/sub-M708149_ses-20200317/Clips/sub-M708149_ses-20200317_cam-topdown_start-01000_dur-5_cliplabels.json renamed to tests/data/Train/SWC-plusmaze/sub-M708149_ses-20200317/Clips/sub-M708149_ses-20200317_cam-topdown_start-1000_dur-5_cliplabels.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,31 +2,31 @@
22
"images": [
33
{
44
"id": 0,
5-
"file_name": "sub-M708149_ses-20200317_cam-topdown_frame-01000",
5+
"file_name": "sub-M708149_ses-20200317_cam-topdown_frame-1000",
66
"width": 1300,
77
"height": 1028
88
},
99
{
1010
"id": 1,
11-
"file_name": "sub-M708149_ses-20200317_cam-topdown_frame-01001",
11+
"file_name": "sub-M708149_ses-20200317_cam-topdown_frame-1001",
1212
"width": 1300,
1313
"height": 1028
1414
},
1515
{
1616
"id": 2,
17-
"file_name": "sub-M708149_ses-20200317_cam-topdown_frame-01002",
17+
"file_name": "sub-M708149_ses-20200317_cam-topdown_frame-1002",
1818
"width": 1300,
1919
"height": 1028
2020
},
2121
{
2222
"id": 3,
23-
"file_name": "sub-M708149_ses-20200317_cam-topdown_frame-01003",
23+
"file_name": "sub-M708149_ses-20200317_cam-topdown_frame-1003",
2424
"width": 1300,
2525
"height": 1028
2626
},
2727
{
2828
"id": 4,
29-
"file_name": "sub-M708149_ses-20200317_cam-topdown_frame-01004",
29+
"file_name": "sub-M708149_ses-20200317_cam-topdown_frame-1004",
3030
"width": 1300,
3131
"height": 1028
3232
}

tests/data/Train/SWC-plusmaze/sub-M708149_ses-20200317/Frames/sub-M708149_ses-20200317_cam-topdown_frame-01000.png renamed to tests/data/Train/SWC-plusmaze/sub-M708149_ses-20200317/Frames/sub-M708149_ses-20200317_cam-topdown_frame-1000.png

File renamed without changes.

tests/data/Train/SWC-plusmaze/sub-M708149_ses-20200317/Frames/sub-M708149_ses-20200317_cam-topdown_frame-01001.png renamed to tests/data/Train/SWC-plusmaze/sub-M708149_ses-20200317/Frames/sub-M708149_ses-20200317_cam-topdown_frame-1001.png

File renamed without changes.

tests/data/Train/SWC-plusmaze/sub-M708149_ses-20200317/Frames/sub-M708149_ses-20200317_cam-topdown_frame-01002.png renamed to tests/data/Train/SWC-plusmaze/sub-M708149_ses-20200317/Frames/sub-M708149_ses-20200317_cam-topdown_frame-1002.png

File renamed without changes.

tests/data/Train/SWC-plusmaze/sub-M708149_ses-20200317/Frames/sub-M708149_ses-20200317_cam-topdown_frame-01003.png renamed to tests/data/Train/SWC-plusmaze/sub-M708149_ses-20200317/Frames/sub-M708149_ses-20200317_cam-topdown_frame-1003.png

File renamed without changes.

tests/data/Train/SWC-plusmaze/sub-M708149_ses-20200317/Frames/sub-M708149_ses-20200317_cam-topdown_frame-01004.png renamed to tests/data/Train/SWC-plusmaze/sub-M708149_ses-20200317/Frames/sub-M708149_ses-20200317_cam-topdown_frame-1004.png

File renamed without changes.

tests/data/Train/SWC-plusmaze/sub-M708149_ses-20200317/Frames/sub-M708149_ses-20200317_cam-topdown_framelabels.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,31 +2,31 @@
22
"images": [
33
{
44
"id": 1000,
5-
"file_name": "sub-M708149_ses-20200317_cam-topdown_frame-01000.png",
5+
"file_name": "sub-M708149_ses-20200317_cam-topdown_frame-1000.png",
66
"width": 1300,
77
"height": 1028
88
},
99
{
1010
"id": 1001,
11-
"file_name": "sub-M708149_ses-20200317_cam-topdown_frame-01001.png",
11+
"file_name": "sub-M708149_ses-20200317_cam-topdown_frame-1001.png",
1212
"width": 1300,
1313
"height": 1028
1414
},
1515
{
1616
"id": 1002,
17-
"file_name": "sub-M708149_ses-20200317_cam-topdown_frame-01002.png",
17+
"file_name": "sub-M708149_ses-20200317_cam-topdown_frame-1002.png",
1818
"width": 1300,
1919
"height": 1028
2020
},
2121
{
2222
"id": 1003,
23-
"file_name": "sub-M708149_ses-20200317_cam-topdown_frame-01003.png",
23+
"file_name": "sub-M708149_ses-20200317_cam-topdown_frame-1003.png",
2424
"width": 1300,
2525
"height": 1028
2626
},
2727
{
2828
"id": 1004,
29-
"file_name": "sub-M708149_ses-20200317_cam-topdown_frame-01004.png",
29+
"file_name": "sub-M708149_ses-20200317_cam-topdown_frame-1004.png",
3030
"width": 1300,
3131
"height": 1028
3232
}

0 commit comments

Comments
 (0)