XuanhaoChang commited on
Commit
05fb7de
·
verified ·
1 Parent(s): decb98c

Add defect ground-truth annotations and schema

Browse files
Files changed (4) hide show
  1. README.md +19 -5
  2. annotations/gt.jsonl +0 -0
  3. annotations/schema.json +19 -0
  4. checksums.sha256 +3 -1
README.md CHANGED
@@ -103,12 +103,26 @@ Temporary inference tensors, model weights and API credentials are not part of
103
  the dataset. Media verification records concern file integrity and stream
104
  structure; the owner has reported a spot check of the generated clips.
105
 
106
- ## Annotation status
107
 
108
- This release contains generation inputs and outputs. Human defect annotations
109
- and evaluator predictions are not included. It does not label clips as correct
110
- or defective. A future annotated release can be joined using `sample_id` and
111
- `video_sha256`.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
112
 
113
  ## License
114
 
 
103
  the dataset. Media verification records concern file integrity and stream
104
  structure; the owner has reported a spot check of the generated clips.
105
 
106
+ ## Ground truth
107
 
108
+ `annotations/gt.jsonl` contains defect annotations for **88 videos**, with
109
+ **259 defect events**. Each record includes `sample_id`, the video path,
110
+ the video SHA-256, and an `issues` list. Records without labeled defects have
111
+ an empty list. Join annotations with `data/metadata.jsonl` using `sample_id`.
112
+
113
+ Issues include a description, coarse and fine defect types, a temporal interval,
114
+ and available keyframe and bounding-box references. Box coordinates use normalized
115
+ `[x1, y1, x2, y2]` format, and each box is associated with its keyframe timestamp.
116
+ Field definitions are in `annotations/schema.json`.
117
+
118
+ ```python
119
+ import json
120
+ from huggingface_hub import hf_hub_download
121
+
122
+ path = hf_hub_download("XuanhaoChang/DefectLens-H3", "annotations/gt.jsonl", repo_type="dataset")
123
+ gt = [json.loads(line) for line in open(path, encoding="utf-8")]
124
+ print(gt[0]["sample_id"], gt[0]["issues"])
125
+ ```
126
 
127
  ## License
128
 
annotations/gt.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
annotations/schema.json ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "format_version": "1.0",
3
+ "files": {
4
+ "gt.jsonl": "One record per video; empty issues lists are retained."
5
+ },
6
+ "sample_id": "Join key matching data/metadata.jsonl.",
7
+ "video": "Path relative to repository root.",
8
+ "video_sha256": "SHA-256 of the corresponding original MP4 bytes.",
9
+ "issues": {
10
+ "event_id": "Unique stable identifier within this annotation release.",
11
+ "description": "Defect description.",
12
+ "coarse_type": "Defect category.",
13
+ "fine_type": "Defect subtype.",
14
+ "time": "start_sec/end_sec in seconds.",
15
+ "keyframes": "timestamp_sec plus boxes belonging to that frame.",
16
+ "bboxes": "label and normalized [x1, y1, x2, y2] coordinates; origin is top left.",
17
+ "*_applicable": "Whether this annotation has the corresponding localization reference."
18
+ }
19
+ }
checksums.sha256 CHANGED
@@ -1,5 +1,7 @@
1
  c309152836ef806a3e88c1f348b105884b0ecdb225da3c44ec64ed9aa45dbc3d .gitattributes
2
- 3e0cc44d2512584cc8c338965b1b5db15d41dbe9b725807ad7f207b7363ee348 README.md
 
 
3
  f00cd2c236d3f1d31e1bf8e4050b298de17162276e06e0a47b5e8eacb69297fd data/metadata.jsonl
4
  28fb21bf358c4da9e572bc19e5f21d08e06f6139edf84c4d305cab3aab65f675 data/videos/sample_001.mp4
5
  245c859d13861965b36ed6d370635ac7a51df494141658f0ede152c9e4d45848 data/videos/sample_002.mp4
 
1
  c309152836ef806a3e88c1f348b105884b0ecdb225da3c44ec64ed9aa45dbc3d .gitattributes
2
+ 5bbcd306c6cb59ae8a05737b2bb29553419cba070f370d9fdd7893fccaa2e415 README.md
3
+ 336b632fef8443d9cb5c58f0fc2ec77e9d13d0fac5707a7006257b3c30ed8868 annotations/gt.jsonl
4
+ cf156e05e295e7cd7c4b0abf2d8f825fd4ec55fa62a5a39951c02c5a36caa432 annotations/schema.json
5
  f00cd2c236d3f1d31e1bf8e4050b298de17162276e06e0a47b5e8eacb69297fd data/metadata.jsonl
6
  28fb21bf358c4da9e572bc19e5f21d08e06f6139edf84c4d305cab3aab65f675 data/videos/sample_001.mp4
7
  245c859d13861965b36ed6d370635ac7a51df494141658f0ede152c9e4d45848 data/videos/sample_002.mp4