{
  "schema_version": 1,
  "method": "swin-unetr-mlx 0.2.5 SwinUNETR BTCV inference on one TCIA contrast CT, shown as axial slices with semi-transparent predicted labels",
  "runtime": {
    "package": "swin-unetr-mlx",
    "version": "0.2.5",
    "medmlx_core_version": "0.2.5",
    "mlx_version": "0.32.4",
    "python_version": "3.13.18",
    "macos_version": "27.2",
    "device": "Apple M5 Max GPU (Device(gpu, 0))",
    "precision": "float32",
    "entry_point": "swin_unetr_mlx.medmlx.run"
  },
  "weights": {
    "repository": "MedMLX/swin-unetr-mlx",
    "file": "swinunetr.safetensors",
    "sha256": "629d0e51cd0763e278f76ede496e495611c8b523804316f7e8d9c1354df53a56",
    "matches_revision": "0052abb4bfb1c56bd7d52d5353267393399b8743",
    "identity": "file sha256 equals the Git LFS oid of swinunetr.safetensors at that Hugging Face revision; read from the local cache without changes",
    "upstream_bundle": "MONAI/swin_unetr_btcv_segmentation"
  },
  "source": {
    "dataset": "HCC-TACE-Seg",
    "collection_doi": "10.7937/TCIA.5FNA-0924",
    "source_url": "https://www.cancerimagingarchive.net/collection/hcc-tace-seg/",
    "license": "CC BY 4.0",
    "case": "HCC_063",
    "study_instance_uid": "1.3.6.1.4.1.14519.5.2.1.1706.8374.318441467603028280579017661087",
    "series_instance_uid": "1.3.6.1.4.1.14519.5.2.1.1706.8374.125226904930109418407714368092",
    "series_number": 6,
    "series_description": "Recon 3: LIVER 2 PHASE (C/A/P)",
    "study_description": "CT C/A/P LIVER PR.",
    "contrast_bolus_agent": null,
    "contrast_bolus_route": "Oral & IV",
    "slice_thickness_mm": 2.5,
    "convolution_kernel": "STANDARD",
    "dicom_files": 99,
    "dicom_bytes": 52163298,
    "dicom_listing_sha256": "832b65475a7ea68760742860b41e5334775ec7a2528cec4d6d67963fc861f9d1",
    "dicom_listing_rule": "sha256 of \"<file name> <file sha256>\\n\" lines in GDCM slice order",
    "conversion": {
      "method": "SimpleITK ImageSeriesReader (GDCM) with rescale slope/intercept to HU, cast to int16 and written as gzip NIfTI by SimpleITK; read-back is voxel-identical. No resampling, reorientation or intensity change.",
      "simpleitk_version": "2.5.7",
      "size_xyz": [
        512,
        512,
        99
      ],
      "spacing_mm_xyz": [
        0.859375,
        0.859375,
        2.5
      ],
      "origin_lps_mm": [
        -220.0,
        -260.0,
        -421.0
      ],
      "direction_lps": [
        1.0,
        0.0,
        0.0,
        0.0,
        1.0,
        0.0,
        0.0,
        0.0,
        1.0
      ],
      "hu_range": [
        -2048,
        1158
      ]
    },
    "ct_nifti_sha256": "5ed6ebe1e40f787b1afb9afff4ea61d530d9c1ecaaf8f2275a4a92762e38df61"
  },
  "inference": {
    "preprocessing": "Runner defaults from the pinned MONAI bundle config: ITK read, RAS orientation, bilinear resampling to 1.5 x 1.5 x 2.0 mm, clip -175..250 HU and scale to [0, 1]; 96^3 sliding windows, batch 4, overlap 0.5, constant blending; softmax, inverse spacing and orientation, argmax on the input grid.",
    "labels_present": [
      0,
      1,
      2,
      3,
      4,
      5,
      6,
      7,
      8,
      9,
      10,
      11,
      12,
      13
    ],
    "network_input_shape": [
      294,
      294,
      124
    ],
    "peak_mlx_bytes": 7427478344,
    "seconds": {
      "load_inputs_and_weights": 0.2961,
      "preprocess": 0.2801,
      "inference": 12.2542,
      "postprocess_and_write": 4.5856
    },
    "mask_nifti_sha256": "6192b7a0191af29e01797c926b1d08b4d880ae3b60cf7a4af0324f6d1d0a7d7a",
    "local_artifact": "dist/abdomen-scroll-demo/swin-unetr/ct/ct_trans.nii.gz"
  },
  "label_map": {
    "0": "background",
    "1": "spleen",
    "2": "right kidney",
    "3": "left kidney",
    "4": "gallbladder",
    "5": "esophagus",
    "6": "liver",
    "7": "stomach",
    "8": "aorta",
    "9": "inferior vena cava",
    "10": "portal and splenic veins",
    "11": "pancreas",
    "12": "right adrenal gland",
    "13": "left adrenal gland"
  },
  "display": {
    "renderer": "docs/hero/render_abdomen_scroll.py",
    "renderer_sha256": "2911309ad304c8a971719ea681dd12583d6ea11bdedce6443a4b0ccedaa6ba77",
    "orientation": "Axial, radiological display: patient right on image left, anterior at top; DICOM pixel rows and columns unflipped",
    "ct_window_hu": {
      "level": 40,
      "width": 400,
      "range": [
        -160.0,
        240.0
      ]
    },
    "overlay": {
      "mode": "fill",
      "alpha": 0.5,
      "outlines": false,
      "unlabelled": "plain grayscale CT"
    },
    "palette_rgb": {
      "spleen": [
        70,
        166,
        160
      ],
      "right kidney": [
        222,
        142,
        62
      ],
      "left kidney": [
        222,
        142,
        62
      ],
      "gallbladder": [
        218,
        208,
        92
      ],
      "esophagus": [
        196,
        116,
        178
      ],
      "liver": [
        190,
        106,
        120
      ],
      "stomach": [
        148,
        116,
        204
      ],
      "aorta": [
        214,
        72,
        66
      ],
      "inferior vena cava": [
        72,
        96,
        196
      ],
      "portal and splenic veins": [
        112,
        178,
        222
      ],
      "pancreas": [
        122,
        184,
        102
      ],
      "right adrenal gland": [
        232,
        214,
        162
      ],
      "left adrenal gland": [
        232,
        214,
        162
      ]
    },
    "slice_range": {
      "rule": "longest contiguous run of axial slices where at least four of ['left kidney', 'liver', 'pancreas', 'right kidney', 'spleen', 'stomach'] each cover >= 100 mm^2 in the prediction",
      "first_index": 33,
      "last_index": 67,
      "slices": 35,
      "z_lps_mm": [
        -338.5,
        -253.5
      ],
      "index_convention": "SimpleITK array index, 0 = most inferior slice"
    },
    "organs_in_range": {
      "spleen": {
        "label": 1,
        "slices": 31,
        "max_area_mm2": 4338.8
      },
      "right kidney": {
        "label": 2,
        "slices": 34,
        "max_area_mm2": 1967.4
      },
      "left kidney": {
        "label": 3,
        "slices": 35,
        "max_area_mm2": 2245.9
      },
      "gallbladder": {
        "label": 4,
        "slices": 18,
        "max_area_mm2": 209.0
      },
      "liver": {
        "label": 6,
        "slices": 35,
        "max_area_mm2": 16247.6
      },
      "stomach": {
        "label": 7,
        "slices": 35,
        "max_area_mm2": 8515.9
      },
      "aorta": {
        "label": 8,
        "slices": 35,
        "max_area_mm2": 426.9
      },
      "inferior vena cava": {
        "label": 9,
        "slices": 35,
        "max_area_mm2": 651.4
      },
      "portal and splenic veins": {
        "label": 10,
        "slices": 20,
        "max_area_mm2": 921.7
      },
      "pancreas": {
        "label": 11,
        "slices": 24,
        "max_area_mm2": 2645.4
      },
      "right adrenal gland": {
        "label": 12,
        "slices": 7,
        "max_area_mm2": 86.4
      },
      "left adrenal gland": {
        "label": 13,
        "slices": 13,
        "max_area_mm2": 200.1
      }
    },
    "poster": {
      "slice_index": 50,
      "z_lps_mm": -296.0,
      "rule": "in-range slice whose smallest core-organ area is largest; also the first video frame",
      "smallest_core_area_mm2": 1898.7
    },
    "body_mask": "largest 3D CT > -300 HU component, holes filled per axial slice; pixels outside it set to black; contains every displayed label",
    "source_crop_xyxy": [
      -35,
      76,
      530,
      443
    ],
    "crop_rule": "union body bounding box over the range, 12-pixel margin, widened to 800:520; same crop for every frame; out-of-image area black",
    "display_resampling": "uniform Lanczos of the composited RGB panel",
    "label_editing": false,
    "interslice_interpolation": false,
    "frame_schedule": "cosine ping-pong: slice = first + round((n-1)(1 - cos(2*pi*k/frames + phase))/2), phase chosen so frame 0 is the poster slice; each frame is one whole real slice; seamless loop",
    "frames": 192
  },
  "encode": {
    "video": {
      "codec": "H.264 (libx264)",
      "preset": "veryslow",
      "crf": 28,
      "pix_fmt": "yuv420p",
      "color": "BT.709, limited range",
      "fps": 24,
      "seconds": 8,
      "size_px": [
        800,
        520
      ],
      "audio": false,
      "movflags": "+faststart",
      "ffmpeg": "ffmpeg version 7.1",
      "decoded_frames": 192,
      "outside_body_decoded_max_rgb": 0,
      "sha256": "f4d189a06a92f35c5302d7b08b67da922c284861debc40dc02a0d51f363b0296",
      "bytes": 687167
    },
    "poster": {
      "format": "WebP",
      "quality": 85,
      "method": 6,
      "size_px": [
        800,
        520
      ],
      "sha256": "91bb68656a3bb51e2624809c832fd29b5d60a2627c6bedcb51b8bcfca2cc3bb3",
      "bytes": 32976
    }
  },
  "outputs": {
    "video": "site/assets/hero/abdomen-scroll.mp4",
    "poster": "site/assets/hero/abdomen-scroll-poster.webp"
  },
  "interpretation": "Automated organ labels on one public, de-identified case for a software visualization. Not reviewed, not a clinical finding and not a performance validation. HCC-TACE-Seg reference segmentations were not used."
}
