Dataset Viewer
The dataset viewer is not available for this subset.
Cannot get the split names for the config 'default' of the dataset.
Exception:    SplitsNotFoundError
Message:      The split names could not be parsed from the dataset config.
Traceback:    Traceback (most recent call last):
                File "/usr/local/lib/python3.14/site-packages/datasets/inspect.py", line 286, in get_dataset_config_info
                  for split_generator in builder._split_generators(
                                         ~~~~~~~~~~~~~~~~~~~~~~~~~^
                      StreamingDownloadManager(base_path=builder.base_path, download_config=download_config)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                  )
                  ^
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/webdataset/webdataset.py", line 81, in _split_generators
                  first_examples = list(islice(pipeline, self.NUM_EXAMPLES_FOR_FEATURES_INFERENCE))
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/webdataset/webdataset.py", line 32, in _get_pipeline_from_tar
                  fs: fsspec.AbstractFileSystem = fsspec.filesystem("memory")
                                                  ~~~~~~~~~~~~~~~~~^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/fsspec/registry.py", line 302, in filesystem
                  cls = get_filesystem_class(protocol)
                File "/usr/local/lib/python3.14/site-packages/fsspec/registry.py", line 239, in get_filesystem_class
                  raise ValueError(f"Protocol not known: {protocol}")
              ValueError: Protocol not known: memory
              
              The above exception was the direct cause of the following exception:
              
              Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/config/split_names.py", line 71, in compute_split_names_from_streaming_response
                  for split in get_dataset_split_names(
                               ~~~~~~~~~~~~~~~~~~~~~~~^
                      path=dataset,
                      ^^^^^^^^^^^^^
                      config_name=config,
                      ^^^^^^^^^^^^^^^^^^^
                      token=hf_token,
                      ^^^^^^^^^^^^^^^
                  )
                  ^
                File "/usr/local/lib/python3.14/site-packages/datasets/inspect.py", line 340, in get_dataset_split_names
                  info = get_dataset_config_info(
                      path,
                  ...<6 lines>...
                      **config_kwargs,
                  )
                File "/usr/local/lib/python3.14/site-packages/datasets/inspect.py", line 291, in get_dataset_config_info
                  raise SplitsNotFoundError("The split names could not be parsed from the dataset config.") from err
              datasets.inspect.SplitsNotFoundError: The split names could not be parsed from the dataset config.

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

SAM3 Joint Surgical Dataset

Mehmet Kerem Turkcan, Soham Samal, Zoran Kostic
AIDL Lab, Columbia University, IPAL Lab

Four laparoscopic images from CholecInstanceSeg, CholecSeg8k, Endoscapes, and DSAD with human reference masks for instruments and anatomy

The SAM3 Joint Surgical Dataset contains 41,372 physical images with 175,674 COCO annotations for surgical instruments, anatomy, and tissue. Its schema contains 29 categories and consolidates labels from CholecInstanceSeg, CholecSeg8k, the Dresden Surgical Anatomy Dataset, and Endoscapes. Positive annotations cover 25 categories. The test split contains positive instances for 24 categories.

Matched grouped test results for the base SAM 3 checkpoint and the joint surgical model

The matched evaluation uses the same images, text prompts, annotation scopes, postprocessing, and COCO evaluator for both checkpoints on the grouped test split of 4,134 images. Box AP and mask AP each report mean interpolated precision over 10 IoU thresholds, 101 recall points, and the 24 categories with positive test instances, with at most 100 detections per image.

Model Box AP Mask AP
Joint model, joint_grouped_seg_best_builder.pt 0.479 0.352
Base SAM 3, sam3.pt 0.024 0.018

Human reference masks for grasper, hook, irrigator, and clipper

Human reference masks for bipolar, scissors, snare, and surgical instrument

Human reference masks for abdominal wall, liver, gastrointestinal tract, fat, connective tissue, and cystic duct

Human reference masks for gallbladder, hepatic vein, liver ligament, cystic plate, Calot triangle, and cystic artery

Human reference masks for colon, pancreas, small intestine, spleen, and stomach

The galleries visualize human reference masks. Of the 25 examples, 24 use validation or test annotations. Hepatic vein uses a training annotation because it has no validation or test instances.

Box and mask average precision for each category on the grouped test split

The conversion pipeline merges records that resolve to the same physical frame before the split builder assigns each group identifier, which denotes a complete procedure, video, or patient, to one partition. Every pair of splits has zero overlap in group identifiers, physical frame components, normalized frame identifiers, and SHA-256 image digests.

Surgical SAM 3 was trained on this dataset.

Dataset summary

Split Physical images Annotations Group identifiers
Train 33,094 139,912 204
Validation 4,144 15,624 22
Test 4,134 20,138 22
Total 41,372 175,674 248

The split assignment targeted 80 percent training, 10 percent validation, and 10 percent test images while assigning every complete group to one split. Because group sizes differ, the resulting image counts approximate these targets.

Group composition

Source family Train group identifiers Validation group identifiers Test group identifiers
Cholec 67 5 13
Endoscapes 120 14 6
Dresden Surgical Anatomy Dataset 17 3 3

The training loader uses sampling_repeat to increase the contribution of source streams with fewer physical images. Summing sampling_repeat across the 33,094 training images yields 52,747 repeated training records per epoch. The distributed sampler pads this index to 52,752 samples across eight ranks. Validation and test evaluate each physical image once.

Physical frame merge

The merge begins with 48,267 source image records and 187,642 source annotations.

Merge result Count
Physical frame components 41,372
Redundant source records merged 6,895
Retained annotations 175,674
CholecSeg8k generic instrument annotations removed when CholecInstanceSeg is present 11,950
Identical category and mask duplicates removed 18

The pipeline joins records when their image bytes have the same SHA-256 digest or when their normalized source identifiers denote the same frame. The resulting identity graph contains 34,483 components with one record, 6,886 components with two records, and 3 components with four records.

Each component retains one canonical image file. The pipeline converts each compatible mask to compressed COCO RLE and attaches the retained instance annotations to one canonical image record. When a component contains CholecInstanceSeg and CholecSeg8k annotations, the merge retains the typed CholecInstanceSeg tool masks and their generic counterparts, then removes the coarser CholecSeg8k generic tool masks.

Grouped split

The split builder uses one group identifier for each normalized Cholec procedure, Endoscapes video, or Dresden patient. Before assignment, the builder treats ten normalized procedure identifiers as shared between CholecSeg8k and CholecT50.

The assignment uses seed 20260801 and a mixed integer linear program with the following constraints:

  1. Every complete group identifier belongs to exactly one split.
  2. Every source family contributes at least one group identifier to every split.
  3. A category supported by at least three group identifiers contributes at least one group identifier to every split.
  4. A category supported by two group identifiers contributes one to training and one to test.
  5. A category supported by one group identifier contributes that group identifier to training.
  6. Every Endoscapes group identifier whose retained supervision consists only of generated tool masks belongs to training.

The HiGHS solver reported an optimal assignment with a relative MIP gap of 0.0.

Pair of splits Group identifiers Physical components Normalized frame IDs SHA-256 values
Train and validation 0 0 0 0
Train and test 0 0 0 0
Validation and test 0 0 0 0

The split method and category support audit are provided in docs/SPLIT_AUDIT.md.

Categories

Each split cell gives the image count first and the annotation count second, in parentheses. A zero indicates that the split contains no positive annotation for that category.

ID Text category Train Validation Test
1 grasper 23,416 (31,418) 2,695 (3,300) 2,808 (3,695)
2 hook 14,910 (14,911) 2,138 (2,139) 2,232 (2,232)
3 irrigator 1,939 (1,939) 240 (240) 241 (241)
4 clipper 1,075 (1,075) 107 (107) 142 (142)
5 bipolar 2,150 (2,150) 193 (193) 215 (215)
6 scissors 586 (586) 75 (75) 51 (51)
7 snare 41 (41) 0 (0) 2 (2)
8 surgical instrument 31,221 (54,746) 3,999 (6,391) 3,992 (6,711)
9 abdominal wall 6,716 (6,716) 574 (574) 769 (769)
10 liver 6,223 (6,223) 549 (549) 971 (971)
11 gastrointestinal tract 3,425 (3,425) 429 (429) 380 (380)
12 fat 6,317 (6,317) 480 (480) 1,280 (1,280)
13 connective tissue 640 (640) 0 (0) 960 (960)
14 cystic duct 285 (285) 66 (66) 264 (264)
15 gallbladder 1,597 (1,597) 266 (266) 843 (843)
16 hepatic vein 155 (155) 0 (0) 0 (0)
17 liver ligament 5,152 (5,152) 477 (477) 1,099 (1,099)
18 cystic plate 154 (154) 19 (19) 19 (19)
19 calot triangle 117 (117) 15 (15) 14 (14)
20 cystic artery 227 (227) 28 (28) 28 (28)
21 colon 580 (580) 74 (74) 58 (58)
22 inferior mesenteric artery 0 (0) 0 (0) 0 (0)
23 intestinal veins 0 (0) 0 (0) 0 (0)
24 pancreas 169 (169) 22 (22) 17 (17)
25 small intestine 61 (61) 13 (13) 4 (4)
26 spleen 82 (82) 24 (24) 2 (2)
27 stomach 1,146 (1,146) 143 (143) 141 (141)
28 ureter 0 (0) 0 (0) 0 (0)
29 vesicular glands 0 (0) 0 (0) 0 (0)

Inferior mesenteric artery, intestinal veins, ureter, and vesicular glands are unsupported by positive supervision. They remain in the shared schema as placeholders for compatibility. Hepatic vein occurs in one training group. Test metrics cover the 24 categories with positive test instances.

Source annotation scopes

Source stream Retained supervision Exhaustive annotation scope Training repeat
CholecInstanceSeg Typed and generic instrument instance masks Seven instrument types and surgical instrument 1
CholecSeg8k Anatomy, tissue, and generic instrument masks surgical instrument and nine anatomy or tissue categories 3
Endoscapes anatomy Five critical view of safety structures Five structures and surgical instrument 6
Endoscapes tools Generic instrument masks surgical instrument 2
Dresden Surgical Anatomy Dataset Abdominal anatomy masks Eleven DSAD anatomy categories 5

The exhaustive_category_ids field stores the union of the applicable source scopes for each merged image. Four schema categories without positive annotations are excluded from this field.

Visible structures can remain unlabeled when they fall outside a source scope. A missing annotation is therefore a negative label only for a category listed in exhaustive_category_ids.

CholecInstanceSeg

CholecInstanceSeg provides polygon masks for grasper, hook, irrigator, clipper, bipolar, scissors, and snare. Each typed instrument also receives the generic surgical instrument category.

CholecSeg8k

The converter maps the source semantic palette to abdominal wall, liver, gastrointestinal tract, fat, connective tissue, cystic duct, gallbladder, hepatic vein, and liver ligament. Instrument pixels map to surgical instrument. Masks with areas smaller than 400 pixels are excluded during source conversion.

Dresden Surgical Anatomy Dataset

The dataset contains frames from the subset with annotations for multiple anatomy categories. All retained anatomy masks for a physical frame are stored together. Masks with areas smaller than 400 pixels are excluded during source conversion.

Endoscapes

The anatomy stream provides gallbladder, cystic duct, cystic artery, cystic plate, and Calot triangle. Tool annotations map to surgical instrument.

The base SAM 3 interactive image model generated candidate tool masks from source bounding boxes for 820 training images that lack source masks. Candidates with predicted IoU below 0.5 were excluded. Validation and test contain zero images from this generated mask stream.

COCO format

Each split annotation file contains the standard COCO fields and additional image provenance fields:

images:
  id, file_name, height, width
  procedure_group, physical_component_id
  source_records, source_streams
  normalized_frame_ids, sha256_values
  exhaustive_category_ids, sampling_repeat

annotations:
  id, image_id, category_id
  bbox, area, iscrowd, segmentation

categories:
  id, name, supercategory

Bounding boxes use COCO [x, y, width, height] coordinates. Masks use compressed COCO RLE with [height, width] in segmentation.size. All annotations have iscrowd = 0.

sampling_repeat is training metadata. Evaluation should process every physical image once. exhaustive_category_ids is required for training and evaluation that respect annotation scope.

Repository layout

annotations/
  train.json
  validation.json
  test.json
data/
  train-*.tar
  validation-*.tar
  test-*.tar
manifest.jsonl
docs/
  group_assignment.json
  identity_audit.json
  split_audit.json
  SPLIT_AUDIT.md
pipeline/
  build_grouped_split.py
scripts/
  audit_splits.py
  package_webdataset.py
  render_concept_gallery.py
assets/
  surgical_sam3_overview.png
  instrument_examples_*.png
  anatomy_tissue_examples_*.png
  results_summary.png
  per_concept_results.png
  concept_gallery_manifest.json
README.md
LICENSE
THIRD_PARTY.md

manifest.jsonl maps each physical image to its TAR shard and member, and records the image hash, source lineage, annotation scope, and sampling repeat. The packaged validation split corresponds to the local builder name valid.

Loading the data

Download the dataset from Hugging Face:

hf download mehmetkeremturkcan/SAM3-Joint-Surgical-Dataset \
  --repo-type dataset \
  --revision main \
  --local-dir sam3_joint

Extract one split:

cd sam3_joint
mkdir -p train
for shard in data/train-*.tar; do
  tar -xf "$shard" -C train
done

Load one image and its annotations:

from pathlib import Path

from PIL import Image
from pycocotools.coco import COCO

root = Path("sam3_joint")
coco = COCO(root / "annotations" / "train.json")
image_id = coco.getImgIds()[0]
record = coco.loadImgs([image_id])[0]
image = Image.open(root / "train" / record["file_name"]).convert("RGB")
annotations = coco.loadAnns(coco.getAnnIds(imgIds=[image_id]))
evaluation_scope = record["exhaustive_category_ids"]
sampling_repeat = record["sampling_repeat"]

Limitations

The schema contains four categories without positive annotations. Hepatic vein has positive annotations from one training group and no validation or test support.

Several test categories have limited image support. Snare and spleen each appear in 2 test images, while small intestine appears in 4. Metrics for these categories have high sampling uncertainty.

The source datasets use different taxonomies and annotation protocols. exhaustive_category_ids records the categories for which each image supplies valid presence and absence supervision.

The Endoscapes generated masks provide training supervision and are identified by the source provenance fields. Validation and test use masks supplied by the source datasets.

The images represent specific laparoscopic procedures, institutions, and acquisition systems. The dataset and associated model have not been validated for clinical decision making or patient care.

Licenses and citations

Source images and annotations retain their original licenses and citation requirements. CC BY-NC-SA 4.0 applies only to the original compilation metadata and documentation.

Material Terms recorded for this release Primary record
CholecInstanceSeg images and annotations Dataset record and source citation requirements Dataset DOI
CholecInstanceSeg code Apache 2.0 applies only to repository code Official repository
CholecInstanceSeg article CC BY-NC-ND 4.0 for the article Paper
Cholec80 source images EndoNet citation required Official repository, paper
CholecT50 source images CC BY-NC-SA 4.0; citation is required Official repository, paper
CholecSeg8k CC BY-NC-SA 4.0 paper
Endoscapes CC BY-NC-SA 4.0 official repository
Dresden Surgical Anatomy Dataset CC BY 4.0 official dataset

THIRD_PARTY.md records source citations, licenses, and compilation changes. Several source licenses restrict commercial use.

Citation

@misc{turkcan2026sam3jointsurgicaldataset,
  title        = {SAM3 Joint Surgical Dataset},
  author       = {Turkcan, Mehmet Kerem and Samal, Soham and Kostic, Zoran},
  year         = {2026},
  howpublished = {\url{https://huggingface.co/datasets/mehmetkeremturkcan/SAM3-Joint-Surgical-Dataset}}
}

Users must also cite the annotation sources and their underlying image datasets. Complete bibliographic records are provided in THIRD_PARTY.md.

Authors

Mehmet Kerem Turkcan, Soham Samal, and Zoran Kostic. This project was developed by the AIDL Lab at Columbia University and IPAL Lab.

Downloads last month
221

Models trained or fine-tuned on mehmetkeremturkcan/SAM3-Joint-Surgical-Dataset

Paper for mehmetkeremturkcan/SAM3-Joint-Surgical-Dataset