hding2455 commited on
Commit
c17e643
·
verified ·
1 Parent(s): 6039214

Add Gold benchmark split (splits/gold_v2) and document it in the card

Browse files

Copy of training/pipeline/splits/gold_v2 from github.com/Ruifreddie/TACTUS. No existing data files changed.

README.md CHANGED
@@ -122,7 +122,19 @@ The benchmark uses held-out Gold videos. Each source video belongs to exactly on
122
  | Test | 11 | 1,523 |
123
  | **Total** | **101** | **15,499** |
124
 
125
- These are the benchmark counts from the paper (Supplement Table S9). They cover 15,499 of the 15,668 released Gold clips. The video-level split is in the code repository at [`training/pipeline/splits/gold_v2/`](https://github.com/Ruifreddie/TACTUS/tree/main/training/pipeline/splits/gold_v2), not in this dataset. Gold-only, Silver-only, and Gold + Silver models all select checkpoints on Gold Val and are scored on the same Gold Test set.
 
 
 
 
 
 
 
 
 
 
 
 
126
 
127
  The paper compares TactusNet with 13 published baselines. With per-head encoder fine-tuning, TactusNet reaches 95.8% tool–action pair accuracy. The best temporal recall at tIoU 0.7 is 46.6% (ActionFormer), and the best contact Dice is 0.351 (SegFormer). Adding Silver to Gold training raises the default TactusNet's pair accuracy from 93.8% to 95.5%. See the [project page](https://ruifreddie.github.io/TACTUS/#benchmark) for the full tables and the [evaluation protocol](https://github.com/Ruifreddie/TACTUS/blob/main/evaluation/README.md) for the metrics and scoring commands.
128
 
@@ -135,6 +147,7 @@ This repository is an export of the annotation tool, in the tool's own clip form
135
  <video>/annotation/<action>_<start>_<end>.json # tracks
136
  <video>/annotation/<action>_<start>_<end>_prompt.json # the spatial prompt points (empty if none were stored)
137
  index_{gold,silver,all}.json
 
138
  review_status.json # uuid -> {"status": "approved" | "success", "task_status": "Complete" | "None"}
139
  videos.csv # one row per video: split, group, counts, frames, fps, duration, resolution
140
  excluded_video_mismatch.json # annotations left out because their source video no longer matches
@@ -201,7 +214,7 @@ The full release is about 63.5 GB (58.9 GB of clips). To download only the metad
201
 
202
  ```bash
203
  hf download hding2455/surgical-action-affordance --repo-type dataset \
204
- --include "index_*.json" "videos.csv" "review_status.json" --local-dir TACTUS
205
  ```
206
 
207
  The [TACTUS code](https://github.com/Ruifreddie/TACTUS/tree/main/training) reads this repository directly. It crops each video to its picture content, samples 16 frames per action window, and trains and scores TactusNet and the baselines.
 
122
  | Test | 11 | 1,523 |
123
  | **Total** | **101** | **15,499** |
124
 
125
+ These are the benchmark counts from the paper (Supplement Table S9). Gold-only, Silver-only, and Gold + Silver models all select checkpoints on Gold Val and are scored on the same Gold Test set.
126
+
127
+ The video-level split is in [`splits/gold_v2/`](https://huggingface.co/datasets/hding2455/surgical-action-affordance/tree/main/splits/gold_v2), a copy of [`training/pipeline/splits/gold_v2/`](https://github.com/Ruifreddie/TACTUS/tree/main/training/pipeline/splits/gold_v2) in the code repository.
128
+
129
+ | File | Contents |
130
+ | --- | --- |
131
+ | `index_gold_train.json` | 12,443 entries from 79 videos |
132
+ | `index_gold_val.json` | 1,654 entries from 11 videos |
133
+ | `index_gold_test.json` | 1,541 entries from 11 videos |
134
+ | `split_videos.csv` | One row per Gold video: split, source, clips, annotated frames, fps, resolution |
135
+ | `gold_split.json` | Seed and video lists of the split |
136
+
137
+ The split files use the same entry format as `index_gold.json`. The 15,668 Gold annotations point to 15,638 distinct clip files, because 30 uuids repeat a clip file. The split keeps one entry per clip file. The exporter in the code repository then drops clips that fail to export, which leaves the 15,499 benchmark clips above. It writes the final clip lists as `all_{train,val,test}.txt`.
138
 
139
  The paper compares TactusNet with 13 published baselines. With per-head encoder fine-tuning, TactusNet reaches 95.8% tool–action pair accuracy. The best temporal recall at tIoU 0.7 is 46.6% (ActionFormer), and the best contact Dice is 0.351 (SegFormer). Adding Silver to Gold training raises the default TactusNet's pair accuracy from 93.8% to 95.5%. See the [project page](https://ruifreddie.github.io/TACTUS/#benchmark) for the full tables and the [evaluation protocol](https://github.com/Ruifreddie/TACTUS/blob/main/evaluation/README.md) for the metrics and scoring commands.
140
 
 
147
  <video>/annotation/<action>_<start>_<end>.json # tracks
148
  <video>/annotation/<action>_<start>_<end>_prompt.json # the spatial prompt points (empty if none were stored)
149
  index_{gold,silver,all}.json
150
+ splits/gold_v2/ # video-level benchmark split of Gold (see Benchmark)
151
  review_status.json # uuid -> {"status": "approved" | "success", "task_status": "Complete" | "None"}
152
  videos.csv # one row per video: split, group, counts, frames, fps, duration, resolution
153
  excluded_video_mismatch.json # annotations left out because their source video no longer matches
 
214
 
215
  ```bash
216
  hf download hding2455/surgical-action-affordance --repo-type dataset \
217
+ --include "index_*.json" "splits/*" "videos.csv" "review_status.json" --local-dir TACTUS
218
  ```
219
 
220
  The [TACTUS code](https://github.com/Ruifreddie/TACTUS/tree/main/training) reads this repository directly. It crops each video to its picture content, samples 16 frames per action window, and trains and scores TactusNet and the baselines.
splits/gold_v2/gold_split.json ADDED
@@ -0,0 +1,170 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "seed": 20261101,
3
+ "basis": "merged annotated frames",
4
+ "loss_test": 2.829420668930283,
5
+ "loss_val": 5.180385437328193,
6
+ "train_videos": [
7
+ "case_000_video_part_001_segment_2",
8
+ "case_002_video_part_002_segment_2",
9
+ "case_003_video_part_001_segment_5",
10
+ "case_004_video_part_002_segment_2",
11
+ "case_007_video_part_002_segment_2",
12
+ "case_008_video_part_001_segment_7",
13
+ "case_010_video_part_002_segment_2",
14
+ "case_011_video_part_002_segment_2",
15
+ "case_013_video_part_002_segment_2",
16
+ "case_015_video_part_001_segment_2",
17
+ "case_018_video_part_002_segment_3",
18
+ "case_022_video_part_002_segment_2",
19
+ "case_023_video_part_001_segment_3",
20
+ "case_025_video_part_002_segment_1",
21
+ "case_032_video_part_002_segment_2",
22
+ "case_034_video_part_001_segment_4",
23
+ "case_036_video_part_002_segment_3",
24
+ "case_038_video_part_002_segment_3",
25
+ "case_040_video_part_002_segment_2",
26
+ "case_045_video_part_001_segment_7",
27
+ "case_055_video_part_002_segment_2",
28
+ "case_056_video_part_002_segment_3",
29
+ "case_057_video_part_002_segment_3",
30
+ "case_059_video_part_001_segment_6",
31
+ "case_061_video_part_002_segment_2",
32
+ "case_067_video_part_002_segment_2",
33
+ "cholec80_01",
34
+ "cholec80_02",
35
+ "cholec80_03",
36
+ "cholec80_04",
37
+ "cholec80_05",
38
+ "cholec80_06",
39
+ "cholec80_08",
40
+ "cholec80_09",
41
+ "cholec80_10",
42
+ "cholec80_11",
43
+ "cholec80_12",
44
+ "cholec80_15",
45
+ "cholec80_16",
46
+ "cholec80_18",
47
+ "cholec80_19",
48
+ "cholec80_20",
49
+ "cholec80_21",
50
+ "cholec80_23",
51
+ "cholec80_24",
52
+ "cholec80_26",
53
+ "cholec80_27",
54
+ "cholec80_28",
55
+ "cholec80_29",
56
+ "cholec80_30",
57
+ "comprehensive_001_left",
58
+ "comprehensive_003_left",
59
+ "comprehensive_004_left",
60
+ "comprehensive_007_left",
61
+ "comprehensive_008_left",
62
+ "comprehensive_009_left",
63
+ "heichole_001",
64
+ "heichole_002",
65
+ "heichole_003",
66
+ "heichole_004",
67
+ "heichole_008",
68
+ "heichole_009",
69
+ "heichole_010",
70
+ "heichole_011",
71
+ "youtube_cholecystectomy_chenyan_00000",
72
+ "youtube_cholecystectomy_chenyan_00001",
73
+ "youtube_cholecystectomy_chenyan_00002",
74
+ "youtube_cholecystectomy_chenyan_00003",
75
+ "youtube_cholecystectomy_chenyan_00004",
76
+ "youtube_cholecystectomy_chenyan_00005",
77
+ "youtube_cholecystectomy_chenyan_00006",
78
+ "youtube_cholecystectomy_chenyan_00007",
79
+ "youtube_cholecystectomy_chenyan_00008",
80
+ "youtube_cholecystectomy_chenyan_00010",
81
+ "youtube_cholecystectomy_chenyan_00011",
82
+ "youtube_cholecystectomy_chenyan_00012",
83
+ "youtube_cholecystectomy_chenyan_00016",
84
+ "youtube_cholecystectomy_chenyan_00017",
85
+ "youtube_cholecystectomy_chenyan_00019"
86
+ ],
87
+ "val_videos": [
88
+ "case_001_video_part_001_segment_3",
89
+ "case_009_video_part_002_segment_3",
90
+ "case_042_video_part_002_segment_2",
91
+ "cholec80_14",
92
+ "cholec80_17",
93
+ "cholec80_25",
94
+ "comprehensive_005_left",
95
+ "heichole_012",
96
+ "youtube_cholecystectomy_chenyan_00013",
97
+ "youtube_cholecystectomy_chenyan_00018",
98
+ "youtube_cholecystectomy_chenyan_00020"
99
+ ],
100
+ "test_videos": [
101
+ "case_012_video_part_002_segment_1",
102
+ "case_049_video_part_002_segment_1",
103
+ "case_064_video_part_002_segment_1",
104
+ "cholec80_07",
105
+ "cholec80_13",
106
+ "cholec80_22",
107
+ "comprehensive_006_left",
108
+ "heichole_006",
109
+ "youtube_cholecystectomy_chenyan_00009",
110
+ "youtube_cholecystectomy_chenyan_00023",
111
+ "youtube_cholecystectomy_chenyan_00028"
112
+ ],
113
+ "youtube_channels": {
114
+ "channel_b": [
115
+ "00000",
116
+ "00001",
117
+ "00008"
118
+ ],
119
+ "channel_d": [
120
+ "00003",
121
+ "00004",
122
+ "00005",
123
+ "00006",
124
+ "00007",
125
+ "00010",
126
+ "00011",
127
+ "00017"
128
+ ],
129
+ "channel_a": [
130
+ "00016",
131
+ "00019"
132
+ ],
133
+ "channel_c": [
134
+ "00013",
135
+ "00018"
136
+ ]
137
+ },
138
+ "dropped_repeated_clip_uuids": [
139
+ "1e9bf6a4-355e-4840-9f0e-7ddeace9fea5",
140
+ "3acc11a2-3bd4-408c-85d2-76dee6dbf54c",
141
+ "49a979b7-fc36-462d-869b-78ec3589cbec",
142
+ "4aafddb8-a1ae-414e-bd5c-f7fbab7ec734",
143
+ "4cbc07ec-23ad-476c-8c72-236fec575011",
144
+ "5905bc50-5d96-4d5f-9385-87c2b8d1d79e",
145
+ "5953eb0e-6ef2-431a-9677-0823669d7178",
146
+ "5c9e0283-7549-4817-b819-8fe7e4d1a3b9",
147
+ "640d6316-3546-4419-a2a0-ce8ad6637f83",
148
+ "77a52274-88fc-4128-bb37-955e9561289f",
149
+ "7a573e5e-3c0c-40b0-a6c5-e5fe7bbf9e5e",
150
+ "7f6a65af-6f56-4c85-9edd-822e85ebd7bd",
151
+ "7f9cf04d-b01c-4b08-b3de-8b4a999849e2",
152
+ "876bac3b-d868-4633-b276-757cf1af9859",
153
+ "9539dbff-b1e2-4ab3-aef7-80028f968d2b",
154
+ "9630978b-ae1a-4f26-a763-3f7fbeb5cd41",
155
+ "9bdd340f-d720-4e50-8d27-e54e7f825ceb",
156
+ "a2748315-6568-4020-a53c-a4b8453ed127",
157
+ "a93a8eb7-44c6-46e2-889a-46f6c100c626",
158
+ "acbd7f5b-b193-402a-afad-b5523034ad16",
159
+ "b0540281-5655-47ed-99d1-9b3661819e60",
160
+ "bea2756f-a801-44e5-9ae8-6b990cd46307",
161
+ "c16895f2-dc02-45a8-9e29-1802ad26c052",
162
+ "c683642a-ce02-4b47-a318-76cc9aab9250",
163
+ "c87a9cdc-a6d7-45ac-b178-d3f0b1bb8121",
164
+ "de2f399c-7528-4032-9dc7-61203a8803ee",
165
+ "e567b89c-9ad7-41c7-bd3f-f8a286746a39",
166
+ "ec0a076a-db83-42d8-bd20-c29217db0212",
167
+ "ee2545d6-8e9c-40cb-8657-fce1d6f1d6c6",
168
+ "eec9a2f3-73df-4214-bfeb-5523055bd34e"
169
+ ]
170
+ }
splits/gold_v2/index_gold_test.json ADDED
The diff for this file is too large to render. See raw diff
 
splits/gold_v2/index_gold_train.json ADDED
The diff for this file is too large to render. See raw diff
 
splits/gold_v2/index_gold_val.json ADDED
The diff for this file is too large to render. See raw diff
 
splits/gold_v2/split_videos.csv ADDED
@@ -0,0 +1,102 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ split,source,task,clips,annotated_frames,fps,width,height
2
+ test,case,case_012_video_part_002_segment_1,62,15123,60.0,1280,720
3
+ test,case,case_049_video_part_002_segment_1,100,17565,60.0,1280,720
4
+ test,case,case_064_video_part_002_segment_1,243,34723,60.0,1280,720
5
+ test,cholec80,cholec80_07,300,29016,25.0,854,480
6
+ test,cholec80,cholec80_13,127,13113,25.0,854,480
7
+ test,cholec80,cholec80_22,175,16409,25.0,854,480
8
+ test,comprehensive,comprehensive_006_left,71,16443,60.0,1280,792
9
+ test,heichole,heichole_006,169,9159,25.0,960,540
10
+ test,youtube_chenyan,youtube_cholecystectomy_chenyan_00009,31,4292,30.0,638,360
11
+ test,youtube_chenyan,youtube_cholecystectomy_chenyan_00023,57,5127,25.0,640,360
12
+ test,youtube_chenyan,youtube_cholecystectomy_chenyan_00028,206,8791,29.97,640,360
13
+ train,case,case_000_video_part_001_segment_2,76,18080,60.0,1280,720
14
+ train,case,case_002_video_part_002_segment_2,97,15748,60.0,1280,720
15
+ train,case,case_003_video_part_001_segment_5,85,15149,60.0,1280,720
16
+ train,case,case_004_video_part_002_segment_2,108,20166,60.0,1280,720
17
+ train,case,case_007_video_part_002_segment_2,82,18576,60.0,1280,720
18
+ train,case,case_008_video_part_001_segment_7,166,24456,60.0,1280,720
19
+ train,case,case_010_video_part_002_segment_2,120,26546,60.0,1280,720
20
+ train,case,case_011_video_part_002_segment_2,177,38300,60.0,1280,720
21
+ train,case,case_013_video_part_002_segment_2,191,28322,60.0,1280,720
22
+ train,case,case_015_video_part_001_segment_2,112,24134,60.0,1280,720
23
+ train,case,case_018_video_part_002_segment_3,59,11671,60.0,1280,720
24
+ train,case,case_022_video_part_002_segment_2,379,40541,60.0,1280,720
25
+ train,case,case_023_video_part_001_segment_3,101,19904,60.0,1280,720
26
+ train,case,case_025_video_part_002_segment_1,143,21041,60.0,1280,720
27
+ train,case,case_032_video_part_002_segment_2,108,27057,60.0,1280,720
28
+ train,case,case_034_video_part_001_segment_4,150,26079,60.0,1280,720
29
+ train,case,case_036_video_part_002_segment_3,104,19055,60.0,1280,720
30
+ train,case,case_038_video_part_002_segment_3,225,36996,60.0,1280,720
31
+ train,case,case_040_video_part_002_segment_2,76,17141,60.0,1280,720
32
+ train,case,case_045_video_part_001_segment_7,67,14497,60.0,1280,720
33
+ train,case,case_055_video_part_002_segment_2,223,43368,60.0,1280,720
34
+ train,case,case_056_video_part_002_segment_3,114,33433,60.0,1280,720
35
+ train,case,case_057_video_part_002_segment_3,143,53026,60.0,1280,720
36
+ train,case,case_059_video_part_001_segment_6,47,11790,60.0,1280,720
37
+ train,case,case_061_video_part_002_segment_2,205,30419,60.0,1280,720
38
+ train,case,case_067_video_part_002_segment_2,96,15097,60.0,1280,720
39
+ train,cholec80,cholec80_01,142,14049,25.0,854,480
40
+ train,cholec80,cholec80_02,170,23269,25.0,854,480
41
+ train,cholec80,cholec80_03,245,24154,25.0,854,480
42
+ train,cholec80,cholec80_04,167,11385,25.0,854,480
43
+ train,cholec80,cholec80_05,152,17174,25.0,854,480
44
+ train,cholec80,cholec80_06,145,16834,25.0,854,480
45
+ train,cholec80,cholec80_08,107,13619,25.0,854,480
46
+ train,cholec80,cholec80_09,243,26551,25.0,854,480
47
+ train,cholec80,cholec80_10,126,8338,25.0,854,480
48
+ train,cholec80,cholec80_11,153,19562,25.0,854,480
49
+ train,cholec80,cholec80_12,192,7770,25.0,854,480
50
+ train,cholec80,cholec80_15,165,14419,25.0,854,480
51
+ train,cholec80,cholec80_16,323,24376,25.0,854,480
52
+ train,cholec80,cholec80_18,168,17324,25.0,854,480
53
+ train,cholec80,cholec80_19,528,34912,25.0,854,480
54
+ train,cholec80,cholec80_20,133,13696,25.0,854,480
55
+ train,cholec80,cholec80_21,136,11176,25.0,854,480
56
+ train,cholec80,cholec80_23,175,15583,25.0,854,480
57
+ train,cholec80,cholec80_24,184,11513,25.0,854,480
58
+ train,cholec80,cholec80_26,192,14307,25.0,854,480
59
+ train,cholec80,cholec80_27,308,28471,25.0,854,480
60
+ train,cholec80,cholec80_28,170,14034,25.0,854,480
61
+ train,cholec80,cholec80_29,207,22615,25.0,854,480
62
+ train,cholec80,cholec80_30,261,34817,25.0,854,480
63
+ train,comprehensive,comprehensive_001_left,37,4355,60.0,1280,792
64
+ train,comprehensive,comprehensive_003_left,40,7250,60.0,1280,792
65
+ train,comprehensive,comprehensive_004_left,38,8115,60.0,1280,792
66
+ train,comprehensive,comprehensive_007_left,105,20072,60.0,1280,792
67
+ train,comprehensive,comprehensive_008_left,180,35949,60.0,1280,792
68
+ train,comprehensive,comprehensive_009_left,191,41642,60.0,1280,792
69
+ train,heichole,heichole_001,151,17356,25.0,960,540
70
+ train,heichole,heichole_002,216,19470,25.0,960,540
71
+ train,heichole,heichole_003,262,13975,25.0,960,540
72
+ train,heichole,heichole_004,124,9531,25.0,960,540
73
+ train,heichole,heichole_008,187,13800,25.0,960,540
74
+ train,heichole,heichole_009,258,21597,25.0,960,540
75
+ train,heichole,heichole_010,140,9628,25.0,960,540
76
+ train,heichole,heichole_011,110,5922,25.0,960,540
77
+ train,youtube_chenyan,youtube_cholecystectomy_chenyan_00000,101,12661,29.97,640,360
78
+ train,youtube_chenyan,youtube_cholecystectomy_chenyan_00001,77,9126,30.0,640,360
79
+ train,youtube_chenyan,youtube_cholecystectomy_chenyan_00002,218,9662,29.97,640,360
80
+ train,youtube_chenyan,youtube_cholecystectomy_chenyan_00003,56,4593,29.97,1280,720
81
+ train,youtube_chenyan,youtube_cholecystectomy_chenyan_00004,16,1158,30.0,640,360
82
+ train,youtube_chenyan,youtube_cholecystectomy_chenyan_00005,88,6270,30.0,1280,720
83
+ train,youtube_chenyan,youtube_cholecystectomy_chenyan_00006,65,4366,29.97,1280,720
84
+ train,youtube_chenyan,youtube_cholecystectomy_chenyan_00007,247,13532,29.97,1280,720
85
+ train,youtube_chenyan,youtube_cholecystectomy_chenyan_00008,95,10794,29.97,640,360
86
+ train,youtube_chenyan,youtube_cholecystectomy_chenyan_00010,234,10480,30.0,1280,720
87
+ train,youtube_chenyan,youtube_cholecystectomy_chenyan_00011,39,3572,30.0,1280,720
88
+ train,youtube_chenyan,youtube_cholecystectomy_chenyan_00012,326,18715,30.0,640,360
89
+ train,youtube_chenyan,youtube_cholecystectomy_chenyan_00016,360,20484,30.0,640,360
90
+ train,youtube_chenyan,youtube_cholecystectomy_chenyan_00017,34,3091,30.0,640,360
91
+ train,youtube_chenyan,youtube_cholecystectomy_chenyan_00019,202,9172,30.0,640,360
92
+ val,case,case_001_video_part_001_segment_3,167,27897,60.0,1280,720
93
+ val,case,case_009_video_part_002_segment_3,127,23937,60.0,1280,720
94
+ val,case,case_042_video_part_002_segment_2,125,34016,60.0,1280,720
95
+ val,cholec80,cholec80_14,175,10116,25.0,854,480
96
+ val,cholec80,cholec80_17,256,17714,25.0,854,480
97
+ val,cholec80,cholec80_25,217,22945,25.0,854,480
98
+ val,comprehensive,comprehensive_005_left,102,17356,60.0,1280,792
99
+ val,heichole,heichole_012,177,13879,25.0,960,540
100
+ val,youtube_chenyan,youtube_cholecystectomy_chenyan_00013,137,12687,29.97,640,360
101
+ val,youtube_chenyan,youtube_cholecystectomy_chenyan_00018,48,4036,29.97,640,360
102
+ val,youtube_chenyan,youtube_cholecystectomy_chenyan_00020,123,5424,29.97,640,360