NIS3D / conversion.json
tyluan's picture
Add NIfTI (.nii.gz) copies of image and segmentation volumes alongside the originals
37de02c verified
Raw History Blame Contribute Delete
10.1 kB
{
"ops_run": "bench-fleet D1 NIfTI conversion (nucleus_instance_3d)",
"purpose": "NIfTI (.nii.gz) copies of this repo's image and segmentation volumes, added ALONGSIDE the originals (nothing deleted or overwritten), so the MedOtter scoring engine -- which reads NIfTI only, via nibabel -- can score the nucleus_instance_3d benchmark cohort.",
"date": "2026-09-08",
"tools": {
"python": "3.12.3",
"numpy": "2.5.3",
"nibabel": "5.4.2",
"h5py": "3.16.0",
"tifffile": "2026.8.23"
},
"conventions": {
"axis_order": "(Z, Y, X): the source page/voxel order is written unchanged. medotter_core.inference's VolumeLoader / InstanceVolumeLoader read np.asarray(img.dataobj) and do NOT reorient, so they see exactly the source array.",
"affine": "identity (np.eye(4)), zooms (1, 1, 1). Neither source format carries a machine-readable voxel size (NIS3D states resolution as prose in Info.txt; the NucMM-Z HDF5 files carry none) and this benchmark's metrics (f1 / aji / pq over voxel IoU) consume no spacing, so no spacing is invented.",
"values": "preserved exactly: every written file was reloaded and asserted np.array_equal against the source array (and, for segmentations, against the int32 cast the instance loader applies).",
"dtypes": "images keep their stored dtype; segmentations use the smallest integer dtype that holds the cohort's maximum instance id, capped at int32 because InstanceVolumeLoader.load_gt casts to int32. No relabelling: instance ids are byte-identical."
},
"license": {
"dataset_card": "medotter/knowledge/datasets/NIS3D.data.final.yaml",
"license": "CC BY 4.0",
"redistribution_allowed": "yes",
"verdict": "Zenodo record 11456029 (NIS3D, NeurIPS 2023 D&B) is CC BY 4.0, which permits redistribution with attribution; the card's redistribution.allowed is 'yes'.",
"origin_url": "https://zenodo.org/records/11456029"
},
"files": [
{
"repo": "NIS3D",
"kind": "seg",
"key": "Drosophila_1",
"source_path": "NIS3D/Drosophila_1/GroundTruth.tif",
"source_sha256": "10c39521a251ace05df52d9109226e453c28ec2307aafad9a7a0425160c0c34f",
"source_dtype": "uint16",
"output_path": "NIS3D/Drosophila_1/GroundTruth.nii.gz",
"output_sha256": "b61f1d096fd7a84483555be55132cff0431c8b41d576d964b6e266635f7f9e69",
"output_dtype": "uint16",
"output_bytes": 6170756,
"shape_zyx": [
198,
978,
987
],
"min": 0,
"max": 1694,
"affine": "identity",
"axis_order": "(Z, Y, X) as stored in the source",
"roundtrip_array_equal": true,
"n_ids": 1695,
"n_ids_nonzero": 1694,
"max_id": 1694,
"has_background_zero": true
},
{
"repo": "NIS3D",
"kind": "image",
"key": "Drosophila_1",
"source_path": "NIS3D/Drosophila_1/data.tif",
"source_sha256": "9faa707494cef4e081a7b0be1af7b2bab8623f94d13622a10b2ac093dd58a994",
"source_dtype": "uint16",
"output_path": "NIS3D/Drosophila_1/data.nii.gz",
"output_sha256": "c4d2a37f3237e186f7e02a822e34823473ec9dbad2d89397e30df2d9ecc3c0d5",
"output_dtype": "uint16",
"output_bytes": 81848567,
"shape_zyx": [
198,
978,
987
],
"min": 0,
"max": 6208,
"affine": "identity",
"axis_order": "(Z, Y, X) as stored in the source",
"roundtrip_array_equal": true
},
{
"repo": "NIS3D",
"kind": "seg",
"key": "Drosophila_2",
"source_path": "NIS3D/Drosophila_2/GroundTruth.tif",
"source_sha256": "38ebfc3b1e30709343c4b24266a63d2ea8c4c1cbaa99e50a339f409ae80891bc",
"source_dtype": "uint16",
"output_path": "NIS3D/Drosophila_2/GroundTruth.nii.gz",
"output_sha256": "589837f278c60846a90793530cda6fbb5ea88513f766fffbf00303e6d972cfdb",
"output_dtype": "uint16",
"output_bytes": 4233713,
"shape_zyx": [
200,
978,
987
],
"min": 0,
"max": 490,
"affine": "identity",
"axis_order": "(Z, Y, X) as stored in the source",
"roundtrip_array_equal": true,
"n_ids": 491,
"n_ids_nonzero": 490,
"max_id": 490,
"has_background_zero": true
},
{
"repo": "NIS3D",
"kind": "image",
"key": "Drosophila_2",
"source_path": "NIS3D/Drosophila_2/data.tif",
"source_sha256": "4262bf868ac163d2965ca9a16816cfc1705031fec46212a9bd381e72d91eb8dd",
"source_dtype": "uint16",
"output_path": "NIS3D/Drosophila_2/data.nii.gz",
"output_sha256": "b5699d529a459473d23a76ebafd3efdcaacb57abdc0a8b558868188f434fb7cc",
"output_dtype": "uint16",
"output_bytes": 81820774,
"shape_zyx": [
200,
978,
987
],
"min": 0,
"max": 3979,
"affine": "identity",
"axis_order": "(Z, Y, X) as stored in the source",
"roundtrip_array_equal": true
},
{
"repo": "NIS3D",
"kind": "seg",
"key": "MusMusculus_1",
"source_path": "NIS3D/MusMusculus_1/GroundTruth.tif",
"source_sha256": "b29f24366463f6d520dc20f5ef011989a4185a543e8d48a9b80c2a287b0979ca",
"source_dtype": "uint16",
"output_path": "NIS3D/MusMusculus_1/GroundTruth.nii.gz",
"output_sha256": "f482dae45aa40b8e1765d3b5f581841e12ee2dc29172f0e6793a5ec4e5323e24",
"output_dtype": "uint16",
"output_bytes": 6814698,
"shape_zyx": [
70,
2024,
1954
],
"min": 0,
"max": 2055,
"affine": "identity",
"axis_order": "(Z, Y, X) as stored in the source",
"roundtrip_array_equal": true,
"n_ids": 2056,
"n_ids_nonzero": 2055,
"max_id": 2055,
"has_background_zero": true
},
{
"repo": "NIS3D",
"kind": "image",
"key": "MusMusculus_1",
"source_path": "NIS3D/MusMusculus_1/data.tif",
"source_sha256": "87d8559e995b6939b5276addd01921af80da150830fe6cc4137f3ed7cf9274c6",
"source_dtype": "uint16",
"output_path": "NIS3D/MusMusculus_1/data.nii.gz",
"output_sha256": "f79b263e1fecb317b18b54b95b89c251ca7c8ffa7425d845fb8546d17ff665e1",
"output_dtype": "uint16",
"output_bytes": 84149209,
"shape_zyx": [
70,
2024,
1954
],
"min": 0,
"max": 2100,
"affine": "identity",
"axis_order": "(Z, Y, X) as stored in the source",
"roundtrip_array_equal": true
},
{
"repo": "NIS3D",
"kind": "seg",
"key": "MusMusculus_2",
"source_path": "NIS3D/MusMusculus_2/gt.tif",
"source_sha256": "ee53ca0e82d4e3169bb9ebb2e1c6222b11ac7d47800592ab14faea4160733766",
"source_dtype": "uint16",
"output_path": "NIS3D/MusMusculus_2/GroundTruth.nii.gz",
"output_sha256": "2a342914aa0efc5b98fcc79269fcdd69b08d84c3712c87339d81b8f81305e7c4",
"output_dtype": "uint16",
"output_bytes": 5592595,
"shape_zyx": [
65,
1356,
1551
],
"min": 0,
"max": 1580,
"affine": "identity",
"axis_order": "(Z, Y, X) as stored in the source",
"roundtrip_array_equal": true,
"n_ids": 1581,
"n_ids_nonzero": 1580,
"max_id": 1580,
"has_background_zero": true
},
{
"repo": "NIS3D",
"kind": "image",
"key": "MusMusculus_2",
"source_path": "NIS3D/MusMusculus_2/data.tif",
"source_sha256": "233f7c66f670f3e33363933ff26863d36de9f24c354cf7f86c924e94cf56e00c",
"source_dtype": "uint16",
"output_path": "NIS3D/MusMusculus_2/data.nii.gz",
"output_sha256": "60158865f8dfdedc209f7f277ad6cf963f820792bf17d1b7c888a9edaeade9ce",
"output_dtype": "uint16",
"output_bytes": 42729134,
"shape_zyx": [
65,
1356,
1551
],
"min": 0,
"max": 2517,
"affine": "identity",
"axis_order": "(Z, Y, X) as stored in the source",
"roundtrip_array_equal": true
},
{
"repo": "NIS3D",
"kind": "seg",
"key": "Zebrafish_1",
"source_path": "NIS3D/Zebrafish_1/GroundTruth.tif",
"source_sha256": "b6768994c1f5e7eb515ba174be84e1c80398f2e6ac4ca39462032e1583e6e451",
"source_dtype": "uint16",
"output_path": "NIS3D/Zebrafish_1/GroundTruth.nii.gz",
"output_sha256": "bd9d98d48744136c1520328091d4395e04d0604452aa619248b71809e7e57f70",
"output_dtype": "uint16",
"output_bytes": 18076431,
"shape_zyx": [
170,
1920,
1920
],
"min": 0,
"max": 12793,
"affine": "identity",
"axis_order": "(Z, Y, X) as stored in the source",
"roundtrip_array_equal": true,
"n_ids": 12794,
"n_ids_nonzero": 12793,
"max_id": 12793,
"has_background_zero": true
},
{
"repo": "NIS3D",
"kind": "image",
"key": "Zebrafish_1",
"source_path": "NIS3D/Zebrafish_1/data.tif",
"source_sha256": "d5d0a158f3031e28205e5b3f5e630d2cdb93fa2c6bb35d230ad46429a30a8e8c",
"source_dtype": "uint16",
"output_path": "NIS3D/Zebrafish_1/data.nii.gz",
"output_sha256": "066758898c6fd33b9c876441614611e44df06330daaa51ae92b46c2949ed35b0",
"output_dtype": "uint16",
"output_bytes": 408996194,
"shape_zyx": [
170,
1920,
1920
],
"min": 0,
"max": 1532,
"affine": "identity",
"axis_order": "(Z, Y, X) as stored in the source",
"roundtrip_array_equal": true
},
{
"repo": "NIS3D",
"kind": "seg",
"key": "Zebrafish_2",
"source_path": "NIS3D/Zebrafish_2/GroundTruth.tif",
"source_sha256": "dd0e4af4a4ae1092dde3630e14d09dd624cf5978aa7cc4a61677b5cc6e562b07",
"source_dtype": "uint16",
"output_path": "NIS3D/Zebrafish_2/GroundTruth.nii.gz",
"output_sha256": "28bf61c633abf39fb9ab7f4fbf26713252ed0e265d024f64e241f93390057404",
"output_dtype": "uint16",
"output_bytes": 1367934,
"shape_zyx": [
201,
333,
333
],
"min": 0,
"max": 5966,
"affine": "identity",
"axis_order": "(Z, Y, X) as stored in the source",
"roundtrip_array_equal": true,
"n_ids": 5967,
"n_ids_nonzero": 5966,
"max_id": 5966,
"has_background_zero": true
},
{
"repo": "NIS3D",
"kind": "image",
"key": "Zebrafish_2",
"source_path": "NIS3D/Zebrafish_2/data.tif",
"source_sha256": "3fa05f348eb2a45fc9d91ba8b556cec20a01c4f87b1305965fe55395af47d730",
"source_dtype": "uint16",
"output_path": "NIS3D/Zebrafish_2/data.nii.gz",
"output_sha256": "551208374f905fc2edf9c700beb055faf1e881804095ee765c433bdd552cf09b",
"output_dtype": "uint16",
"output_bytes": 17422544,
"shape_zyx": [
201,
333,
333
],
"min": 99,
"max": 3101,
"affine": "identity",
"axis_order": "(Z, Y, X) as stored in the source",
"roundtrip_array_equal": true
}
]
}