Datasets:
Add crop parameters
Browse files- .gitattributes +1 -0
- crop_params/README.md +18 -0
- crop_params/crop_params.lmdb/data.mdb +3 -0
- crop_params/failed.csv +5 -0
.gitattributes
CHANGED
|
@@ -57,3 +57,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 57 |
# Video files - compressed
|
| 58 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 59 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 57 |
# Video files - compressed
|
| 58 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 59 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
| 60 |
+
crop_params/crop_params.lmdb/data.mdb filter=lfs diff=lfs merge=lfs -text
|
crop_params/README.md
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Crop parameters
|
| 2 |
+
|
| 3 |
+
One square crop box per clip that frames the signer, found by running a YOLO person detector on every frame
|
| 4 |
+
(code: [crop-params](https://github.com/croco-corp/crop-params)). The videos are stored uncropped; the crop is
|
| 5 |
+
applied when loading data.
|
| 6 |
+
|
| 7 |
+
- `crop_params.lmdb/`: LMDB with the clip key (the `__key__` of the segment record) as key and a msgpack map as
|
| 8 |
+
value: `x_start`, `y_start`, `x_end`, `y_end` and `padding` (`top`, `bottom`, `left`, `right`). It covers all
|
| 9 |
+
39,813 segments, before the dataset filters.
|
| 10 |
+
- `failed.csv`: the 4 clips that could not be opened (`video_name`, `exception`).
|
| 11 |
+
|
| 12 |
+
```python
|
| 13 |
+
import lmdb, msgpack
|
| 14 |
+
|
| 15 |
+
env = lmdb.open("crop_params.lmdb", readonly=True, lock=False)
|
| 16 |
+
with env.begin() as txn:
|
| 17 |
+
box = msgpack.unpackb(txn.get(b"001_000_M"))
|
| 18 |
+
```
|
crop_params/crop_params.lmdb/data.mdb
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1edf3fe8dcd0c77f887413a7fb251d6c510d02e9fa4245384ffd8223d074a359
|
| 3 |
+
size 6422528
|
crop_params/failed.csv
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
video_name,exception
|
| 2 |
+
043_020_R,Failed to open video /tmp/tmpi9bb7j4j.ts
|
| 3 |
+
160_043_L,Failed to open video /tmp/tmpyiuawncw.ts
|
| 4 |
+
426_031_R,Failed to open video /tmp/tmp303ezfz1.ts
|
| 5 |
+
689_103_R,Failed to open video /tmp/tmp5dzyon1k.ts
|