Datasets:
Add files using upload-large-folder tool
Browse files- README.md +33 -0
- clips/P03/P03_101_12.mp4 +3 -0
- clips/P03/P03_101_129.mp4 +3 -0
- clips/P03/P03_101_155.mp4 +3 -0
- clips/P03/P03_101_161.mp4 +3 -0
- clips/P03/P03_101_167.mp4 +3 -0
- clips/P03/P03_101_172.mp4 +3 -0
- clips/P03/P03_101_227.mp4 +3 -0
- clips/P03/P03_101_335.mp4 +3 -0
- clips/P03/P03_101_97.mp4 +3 -0
- clips/P03/P03_102_42.mp4 +3 -0
- clips/P03/P03_102_75.mp4 +3 -0
- clips/P03/P03_107_12.mp4 +3 -0
- clips/P03/P03_107_9.mp4 +3 -0
- clips/P03/P03_109_124.mp4 +3 -0
- clips/P03/P03_109_150.mp4 +3 -0
- clips/P03/P03_109_154.mp4 +3 -0
- clips/P03/P03_109_235.mp4 +3 -0
- clips/P03/P03_109_350.mp4 +3 -0
- clips/P03/P03_109_384.mp4 +3 -0
- clips/P03/P03_109_395.mp4 +3 -0
- clips/P03/P03_109_77.mp4 +3 -0
- clips/P03/P03_111_18.mp4 +3 -0
- clips/P03/P03_112_134.mp4 +3 -0
- clips/P03/P03_112_154.mp4 +3 -0
- clips/P03/P03_112_170.mp4 +3 -0
- clips/P03/P03_113_2.mp4 +3 -0
- clips/P03/P03_115_8.mp4 +3 -0
- clips/P03/P03_116_14.mp4 +3 -0
- clips/P03/P03_117_109.mp4 +3 -0
- clips/P03/P03_117_136.mp4 +3 -0
- clips/P03/P03_117_151.mp4 +3 -0
- clips/P03/P03_117_19.mp4 +3 -0
- clips/P03/P03_117_2.mp4 +3 -0
- clips/P03/P03_117_20.mp4 +3 -0
- clips/P03/P03_117_24.mp4 +3 -0
- clips/P03/P03_117_35.mp4 +3 -0
- clips/P03/P03_117_98.mp4 +3 -0
- clips/P03/P03_118_61.mp4 +3 -0
- clips/P03/P03_119_168.mp4 +3 -0
- clips/P03/P03_120_109.mp4 +3 -0
- clips/P03/P03_120_145.mp4 +3 -0
- clips/P03/P03_120_251.mp4 +3 -0
- clips/P03/P03_120_54.mp4 +3 -0
- clips/P03/P03_120_82.mp4 +3 -0
- clips/P03/P03_120_92.mp4 +3 -0
- clips/P03/P03_121_3.mp4 +3 -0
- clips/P03/P03_123_18.mp4 +3 -0
- cut_clips.py +109 -0
- license.txt +7 -0
README.md
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# EPIC-KITCHENS-100 Extracted Clips
|
| 2 |
+
|
| 3 |
+
## About
|
| 4 |
+
|
| 5 |
+
Dataset of 37455 video clips (24GB) extracted from videos in the EPIC-KITCHENS-100 dataset,
|
| 6 |
+
more precisely the extension part not contained in EPIC-KITCHENS-55. For details,
|
| 7 |
+
see https://lightly.ai/blog. (TODO: Update the link when the blogpost is published.)
|
| 8 |
+
|
| 9 |
+
The `clips` folder contains one video for every narration from action annotations stored
|
| 10 |
+
as a file named `{narration_id}.mp4`. The videos have been downscaled an compressed for easier
|
| 11 |
+
manipulation, the extraction script is `cut_clips.py`. The annotation files are preserved
|
| 12 |
+
in `epic-kitchens-100-annotations/` folder.
|
| 13 |
+
|
| 14 |
+
**Note:** The extracted clips have been sorted into folders by participants
|
| 15 |
+
|
| 16 |
+
## Citation
|
| 17 |
+
|
| 18 |
+
The credit is due to the original authors of the EPIC-KITCHENS-100 dataset: https://epic-kitchens.github.io
|
| 19 |
+
|
| 20 |
+
```
|
| 21 |
+
@ARTICLE{Damen2021PAMI,
|
| 22 |
+
title={The EPIC-KITCHENS Dataset: Collection, Challenges and Baselines},
|
| 23 |
+
author={Damen, Dima and Doughty, Hazel and Farinella, Giovanni Maria and Fidler, Sanja and
|
| 24 |
+
Furnari, Antonino and Kazakos, Evangelos and Moltisanti, Davide and Munro, Jonathan
|
| 25 |
+
and Perrett, Toby and Price, Will and Wray, Michael},
|
| 26 |
+
journal={IEEE Transactions on Pattern Analysis and Machine Intelligence (TPAMI)},
|
| 27 |
+
year={2021},
|
| 28 |
+
volume={43},
|
| 29 |
+
number={11},
|
| 30 |
+
pages={4125-4141},
|
| 31 |
+
doi={10.1109/TPAMI.2020.2991965}
|
| 32 |
+
}
|
| 33 |
+
```
|
clips/P03/P03_101_12.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:60c14ceb0040a190519bd2823529192dbdbdc5cd76ec2a09257a68a4251bfeca
|
| 3 |
+
size 533809
|
clips/P03/P03_101_129.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9d745f8a77690fe919235a0342167c7c32a37b11b0d6715187eeb9974acf981c
|
| 3 |
+
size 310129
|
clips/P03/P03_101_155.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8de5248aeb919e006083b7752a9afd1547b9ab59163e145b7e9d53e4579df1a4
|
| 3 |
+
size 269686
|
clips/P03/P03_101_161.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:14fa72b3e85d943065eb8ce6208dcd809196293063bfbd6e424bc58f3d9e64f3
|
| 3 |
+
size 302438
|
clips/P03/P03_101_167.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:42240f598fc8b30f4d30141301ace40e42f21c3ef45569bd3f383aec2dc7bf2e
|
| 3 |
+
size 412974
|
clips/P03/P03_101_172.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f3be93761a6879a9e958df18343990816280fe0c0ef1ecb3e6fb485904019b2a
|
| 3 |
+
size 164752
|
clips/P03/P03_101_227.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f68a915dc7cb078eb2053291bccbc2061f242d27438a4997609e5894d5f5e7ee
|
| 3 |
+
size 311899
|
clips/P03/P03_101_335.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:33b3a241ad29436cb90a6cc741f2dc9071f43de4cc5762122244209ed182f31b
|
| 3 |
+
size 147771
|
clips/P03/P03_101_97.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:35148837bae63fb9929b871ebccdaf647356894ebc5797016d1103c0b937e932
|
| 3 |
+
size 410398
|
clips/P03/P03_102_42.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5a649082a34ea9f3ceb6124e17a663fb9aeceb6d9a99517de8a7ba78b17f873c
|
| 3 |
+
size 203451
|
clips/P03/P03_102_75.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:747e4e39e9b97b68b1df09e0a12e2d08b85ded697837af78f8532551cc5e98df
|
| 3 |
+
size 291441
|
clips/P03/P03_107_12.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b4a569ec9c60af2a563cf372710612a67f8ba259cf2a2a986621778b6247252e
|
| 3 |
+
size 657927
|
clips/P03/P03_107_9.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:23a988edc0fde0095c99679999ddf42f29be3e25074caa152d56fa5609a7fe44
|
| 3 |
+
size 367446
|
clips/P03/P03_109_124.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6c4edb60fd1679a1b07be8e499cdd619cd759fa74d4d40c04f088022151d8c6e
|
| 3 |
+
size 189725
|
clips/P03/P03_109_150.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2668fdec6d688831acbad00105d10f1b742bdd382e01f727edb34983c94ad279
|
| 3 |
+
size 611379
|
clips/P03/P03_109_154.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:43070086c5d8457be83b8412561f8b9e825ad2aef35baf75a4ad3d0c32edd095
|
| 3 |
+
size 252514
|
clips/P03/P03_109_235.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6e167269987dc3e08ca0836bce1fff1f2f096cce18b65c934ff54d09e6f8d22b
|
| 3 |
+
size 255785
|
clips/P03/P03_109_350.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:767fcd5dd414c239d0abc5865daa1f1d4caecdde0bc29f7a0b8d2e7604182317
|
| 3 |
+
size 354844
|
clips/P03/P03_109_384.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cc926f18ad9b595880eaa93e3c4de7f400d72c157f6927121a679afeb17860b5
|
| 3 |
+
size 532796
|
clips/P03/P03_109_395.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b05e091691bb900072732bb5e14106daa962dace7143575cfb64bde0c078d56c
|
| 3 |
+
size 186503
|
clips/P03/P03_109_77.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:48cfee62c2961344c5e8552031a6e29229158b3ca6411e3c8b213ef0b6303ae8
|
| 3 |
+
size 1678397
|
clips/P03/P03_111_18.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5aef4225d138293db7fde05caef54f62888dcacd30f526dccbd2b0ffc4cc6c1d
|
| 3 |
+
size 662475
|
clips/P03/P03_112_134.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b9b84f0b14ef4cf8e575d1a071957d7c93d4956c69120e4bea3b9b892b66a0fd
|
| 3 |
+
size 362733
|
clips/P03/P03_112_154.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a8c129c007f3765e426bb740c12105a7c3de352e4bea8747621329b4a1314eb5
|
| 3 |
+
size 978293
|
clips/P03/P03_112_170.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:014cad07946ba8b63ae620e6d007c357f84afe238872722aa75669667b1e61bb
|
| 3 |
+
size 1671581
|
clips/P03/P03_113_2.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c8299761f236d9f87b7677ab3e7bb021d3cbfdf01eedc386881ab5b5c182b6af
|
| 3 |
+
size 328591
|
clips/P03/P03_115_8.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9e4d82277e33783f016733b7232dfa3f5efcb18c95e7231be6ad55bc0fbb9d64
|
| 3 |
+
size 142229
|
clips/P03/P03_116_14.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:27740b79dcadb23059763c08ae1de63298952d91bf83557fee7d8c38c3fcafc0
|
| 3 |
+
size 318896
|
clips/P03/P03_117_109.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8d17eed2dc9c92bc365dc7a6c7b987b1abc13f90bf5c22cc302524dba6d1de18
|
| 3 |
+
size 314382
|
clips/P03/P03_117_136.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4835548efc04f8c3dd3f7a949af2a3924b6adbeb86b77157883a10aef8a83e0a
|
| 3 |
+
size 372600
|
clips/P03/P03_117_151.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9e24a39beb7f2fef2b6c5a594f38936e763f554479cc44cfbb13479be141d26b
|
| 3 |
+
size 234945
|
clips/P03/P03_117_19.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1004d3be3d6245cec72d1e0fb58679b6371b48ea045a777e426544ed0b43f8be
|
| 3 |
+
size 1327829
|
clips/P03/P03_117_2.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f438c88adf976d5c38c22e63320e9fd325203c64646ee97bbd2bbc6af34f6c96
|
| 3 |
+
size 254699
|
clips/P03/P03_117_20.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:abd0661790f30761156d8f4465221e329affc2a1374a4561ed4e2d8983f78501
|
| 3 |
+
size 386151
|
clips/P03/P03_117_24.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:40fb3361e17aa153c1214140359761dcccf362ad2572da37e0359e8707f062a1
|
| 3 |
+
size 2648519
|
clips/P03/P03_117_35.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:09ddc1f3f450d49f4bcea6bed3d33e71f07edb49826e6b2b84a9815dd0b3edcd
|
| 3 |
+
size 239344
|
clips/P03/P03_117_98.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8ace708d6cf506d811b122249bae5466dd9f3c63deae7243ad46371747f43526
|
| 3 |
+
size 2113190
|
clips/P03/P03_118_61.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:14b39b900e0f203f02fcfe2887c2f13e28c3b52d1747859ce9e2d4a0eb6939d6
|
| 3 |
+
size 247991
|
clips/P03/P03_119_168.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3c7f954880db335a3daae43c4d716f90f7ab80533a1f3525856ed3cb490f3efc
|
| 3 |
+
size 243094
|
clips/P03/P03_120_109.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:32a8c1dfebd2479637c89949fec82b8c128a90fa27b260883af714c3d841ea8a
|
| 3 |
+
size 287616
|
clips/P03/P03_120_145.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:176b18550d84a5a49f9874dd0860cf088fd2b9888026ab2c72cff0b42213291f
|
| 3 |
+
size 272164
|
clips/P03/P03_120_251.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e2de88be15b7633b832bb470bab4bce355fa75665e20b65e04470aeed4d6506f
|
| 3 |
+
size 378419
|
clips/P03/P03_120_54.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c822d4790aac268afb3be4033912754f865b05a380115fe322e2eb60bec99000
|
| 3 |
+
size 790614
|
clips/P03/P03_120_82.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:22cb6b8d8999a909c2331ac8e70e993b2cd6bd6c2f115c771d6f6d208030d62a
|
| 3 |
+
size 216195
|
clips/P03/P03_120_92.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:44a1a16db3d92a7ee1dd6aed9e8ae7290240b2c97367333af98cc1c0b3f8aa5f
|
| 3 |
+
size 428665
|
clips/P03/P03_121_3.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1584930ab048240ca8c0efea06f60ef9448fe5ad4399d9aefb354684c3953eff
|
| 3 |
+
size 3449518
|
clips/P03/P03_123_18.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:469b608f498d3bb880219860ec0d5501cca23ab84af1a486f260e31846c7f20c
|
| 3 |
+
size 137871
|
cut_clips.py
ADDED
|
@@ -0,0 +1,109 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Cut short action clips from full EPIC-KITCHENS videos using annotations."""
|
| 2 |
+
|
| 3 |
+
import argparse
|
| 4 |
+
import subprocess
|
| 5 |
+
import sys
|
| 6 |
+
from pathlib import Path
|
| 7 |
+
|
| 8 |
+
import pandas as pd
|
| 9 |
+
from tqdm import tqdm
|
| 10 |
+
|
| 11 |
+
ANNOTATIONS_DIR = Path("epic-kitchens-100-annotations")
|
| 12 |
+
DATA_DIR = Path("EPIC-KITCHENS-100")
|
| 13 |
+
CLIPS_DIR = Path("clips")
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
def load_annotations(video_ids: list[str] | None) -> pd.DataFrame:
|
| 17 |
+
train = pd.read_csv(ANNOTATIONS_DIR / "EPIC_100_train.csv")
|
| 18 |
+
val = pd.read_csv(ANNOTATIONS_DIR / "EPIC_100_validation.csv")
|
| 19 |
+
annotations = pd.concat([train, val], ignore_index=True)
|
| 20 |
+
|
| 21 |
+
if not video_ids:
|
| 22 |
+
return annotations
|
| 23 |
+
|
| 24 |
+
filtered = annotations[annotations["video_id"].isin(video_ids)]
|
| 25 |
+
|
| 26 |
+
found_ids = set(filtered["video_id"].unique())
|
| 27 |
+
for vid in video_ids:
|
| 28 |
+
if vid not in found_ids:
|
| 29 |
+
print(f"WARNING: No annotations found for video {vid}")
|
| 30 |
+
|
| 31 |
+
return filtered
|
| 32 |
+
|
| 33 |
+
|
| 34 |
+
def video_path(participant_id: str, video_id: str) -> Path:
|
| 35 |
+
return DATA_DIR / participant_id / "videos" / f"{video_id}.MP4"
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
def build_ffmpeg_cmd(row: pd.Series) -> list[str]:
|
| 39 |
+
input_path = video_path(row["participant_id"], row["video_id"])
|
| 40 |
+
output_path = CLIPS_DIR / row["participant_id"] / f"{row['narration_id']}.mp4"
|
| 41 |
+
output_path.parent.mkdir(parents=True, exist_ok=True)
|
| 42 |
+
return [
|
| 43 |
+
"ffmpeg",
|
| 44 |
+
"-ss", str(row["start_timestamp"]),
|
| 45 |
+
"-to", str(row["stop_timestamp"]),
|
| 46 |
+
"-i", str(input_path),
|
| 47 |
+
"-vf", "scale=854:480",
|
| 48 |
+
"-c:v", "libx264", "-crf", "23", "-preset", "medium",
|
| 49 |
+
"-c:a", "aac", "-b:a", "128k",
|
| 50 |
+
"-movflags", "+faststart",
|
| 51 |
+
"-y", str(output_path),
|
| 52 |
+
]
|
| 53 |
+
|
| 54 |
+
|
| 55 |
+
def main():
|
| 56 |
+
parser = argparse.ArgumentParser(description="Cut action clips from EPIC-KITCHENS videos")
|
| 57 |
+
parser.add_argument("video_ids", nargs="*", help="Video IDs to process (e.g. P04_26 P03_11). If omitted, process all.")
|
| 58 |
+
parser.add_argument("--dry-run", action="store_true", help="Print ffmpeg commands without executing")
|
| 59 |
+
parser.add_argument("--force", action="store_true", help="Reprocess clips even if they already exist")
|
| 60 |
+
args = parser.parse_args()
|
| 61 |
+
|
| 62 |
+
annotations = load_annotations(args.video_ids or None)
|
| 63 |
+
if annotations.empty:
|
| 64 |
+
print("No annotations found. Exiting.")
|
| 65 |
+
sys.exit(1)
|
| 66 |
+
|
| 67 |
+
CLIPS_DIR.mkdir(exist_ok=True)
|
| 68 |
+
|
| 69 |
+
created = 0
|
| 70 |
+
skipped = 0
|
| 71 |
+
failed = 0
|
| 72 |
+
|
| 73 |
+
rows = list(annotations.iterrows())
|
| 74 |
+
progress = tqdm(rows, unit="clip")
|
| 75 |
+
for _, row in progress:
|
| 76 |
+
narration_id = row["narration_id"]
|
| 77 |
+
progress.set_description(narration_id)
|
| 78 |
+
|
| 79 |
+
input_file = video_path(row["participant_id"], row["video_id"])
|
| 80 |
+
if not input_file.exists():
|
| 81 |
+
tqdm.write(f"WARNING: Source video not found: {input_file}, skipping {narration_id}")
|
| 82 |
+
failed += 1
|
| 83 |
+
continue
|
| 84 |
+
|
| 85 |
+
cmd = build_ffmpeg_cmd(row)
|
| 86 |
+
|
| 87 |
+
if args.dry_run:
|
| 88 |
+
tqdm.write(" ".join(cmd))
|
| 89 |
+
continue
|
| 90 |
+
|
| 91 |
+
output_path = CLIPS_DIR / f"{narration_id}.mp4"
|
| 92 |
+
if output_path.exists() and not args.force:
|
| 93 |
+
skipped += 1
|
| 94 |
+
continue
|
| 95 |
+
|
| 96 |
+
result = subprocess.run(cmd, capture_output=True, text=True)
|
| 97 |
+
if result.returncode != 0:
|
| 98 |
+
tqdm.write(f"ERROR: ffmpeg failed for {narration_id}: {result.stderr.splitlines()[-1] if result.stderr else 'unknown error'}")
|
| 99 |
+
failed += 1
|
| 100 |
+
else:
|
| 101 |
+
created += 1
|
| 102 |
+
|
| 103 |
+
if not args.dry_run:
|
| 104 |
+
print(f"\nDone: {created} created, {skipped} skipped, {failed} failed")
|
| 105 |
+
|
| 106 |
+
|
| 107 |
+
if __name__ == "__main__":
|
| 108 |
+
main()
|
| 109 |
+
|
license.txt
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
All files in this dataset are copyright by us and published under the
|
| 2 |
+
Creative Commons Attribution-NonCommerial 4.0 International License, found
|
| 3 |
+
at https://creativecommons.org/licenses/by-nc/4.0/.
|
| 4 |
+
This means that you must give appropriate credit, provide a link to the license,
|
| 5 |
+
and indicate if changes were made. You may do so in any reasonable manner,
|
| 6 |
+
but not in any way that suggests the licensor endorses you or your use. You
|
| 7 |
+
may not use the material for commercial purposes.
|