CoolFace
Datasetpublic

MONAI/testing_data

This is testing data for use with MONAI unit tests.

sourceHugging Faceapache-2.0updated 1y agoView on Hugging Face
1likes8.4kdownloads
meta_schema_20240725.json221 linesDownload Raw Back to root
1{2    "$schema": "https://json-schema.org/draft/2019-09/schema",3    "$defs": {4        "tensor": {5            "$comment": "Represents a tensor object argument/return value, can be MetaTensor.",6            "type": "object",7            "properties": {8                "type": {9                    "type": "string"10                },11                "format": {12                    "type": "string"13                },14                "num_channels": {15                    "type": "integer"16                },17                "spatial_shape": {18                    "type": "array",19                    "items": {20                        "type": [21                            "string",22                            "integer"23                        ]24                    }25                },26                "dtype": {27                    "type": "string"28                },29                "value_range": {30                    "type": "array",31                    "items": {32                        "type": "number"33                    }34                },35                "is_patch_data": {36                    "type": "boolean"37                },38                "channel_def": {39                    "type": "object"40                }41            },42            "required": [43                "type",44                "format",45                "num_channels",46                "spatial_shape",47                "dtype",48                "value_range"49            ]50        },51        "argument": {52            "$comment": "Acceptable input types for model forward pass, arbitrary Python objects not covered.",53            "anyOf": [54                {55                    "type": "number"56                },57                {58                    "type": "integer"59                },60                {61                    "type": "string"62                },63                {64                    "type": "boolean"65                },66                {67                    "$ref": "#/$defs/tensor"68                }69            ]70        },71        "result": {72            "$comment": "Return value from a model's forward pass, same as an argument for now.",73            "$ref": "#/$defs/argument"74        },75        "network_io": {76            "description": "Defines the format, shape, and meaning of inputs, outputs (and optionally post-processed outputs) to the model.",77            "type": "object",78            "$comment": "Arguments/return values described by pattern property, order considered significant.",79            "properties": {80                "inputs": {81                    "type": "object",82                    "patternProperties": {83                        "^.+$": {84                            "$ref": "#/$defs/argument"85                        }86                    }87                },88                "outputs": {89                    "type": "object",90                    "patternProperties": {91                        "^.+$": {92                            "$ref": "#/$defs/result"93                        }94                    }95                },96                "post_processed_outputs": {97                    "$comment": "Return value format after post-processing, not needed if not changed.",98                    "type": "object",99                    "patternProperties": {100                        "^.+$": {101                            "$ref": "#/$defs/result"102                        }103                    }104                }105            },106            "required": [107                "inputs",108                "outputs"109            ]110        }111    },112    "type": "object",113    "properties": {114        "schema": {115            "description": "URL of the schema file.",116            "type": "string"117        },118        "version": {119            "description": "Version number of the bundle.",120            "type": "string"121        },122        "changelog": {123            "description": "Dictionary relating previous version names to strings describing the version.",124            "type": "object"125        },126        "monai_version": {127            "description": "Version of MONAI the bundle was generated with.",128            "type": "string"129        },130        "pytorch_version": {131            "description": "Version of PyTorch the bundle was generated with.",132            "type": "string"133        },134        "numpy_version": {135            "description": "Version of NumPy the bundlewas generated with.",136            "type": "string"137        },138        "required_packages_version": {139            "description": "Dictionary relating required package names to their versions. The bundle requires these packages to operate which are additional to the base requirements for MONAI.",140            "type": "object"141        },142        "task": {143            "description": "Plain-language description of what the bundle is meant to do.",144            "type": "string"145        },146        "description": {147            "description": "Longer form description of what the bundle is, what it does, etc.",148            "type": "string"149        },150        "authors": {151            "description": "State author(s) of the bundle.",152            "type": "string"153        },154        "copyright": {155            "description": "State copyright of the bundle.",156            "type": "string"157        },158        "data_source": {159            "description": "Where to download or prepare the data used in this bundle.",160            "type": "string"161        },162        "data_type": {163            "description": "Type of the data, like: `dicom`, `nibabel`, etc.",164            "type": "string"165        },166        "image_classes": {167            "description": "Description for every class of the input tensors.",168            "type": "string"169        },170        "label_classes": {171            "description": "Description for every class of the input tensors if present.",172            "type": "string"173        },174        "pred_classes": {175            "description": "Description for every class of the output prediction(s).",176            "type": "string"177        },178        "eval_metrics": {179            "description": "Dictionary relating evaluation metrics to the achieved scores.",180            "type": "object"181        },182        "intended_use": {183            "description": "What the bundle is to be used for, ie. what task it accomplishes.",184            "type": "string"185        },186        "references": {187            "description": "List of published referenced relating to the bundle.",188            "type": "array",189            "items": {190                "type": "string"191            }192        },193        "supported_apps": {194            "description": "List of supported applications, eg. 'monai-label'",195            "type": "object"196        },197        "network_data_format": {198            "$ref": "#/$defs/network_io"199        }200    },201    "$comment": "This permits definitions for multiple networks with format <network-name>_data_format",202    "patternProperties": {203        "^[_a-zA-Z0-9]+_data_format$": {204            "$ref": "#/$defs/network_io"205        }206    },207    "required": [208        "schema",209        "version",210        "monai_version",211        "pytorch_version",212        "numpy_version",213        "required_packages_version",214        "task",215        "description",216        "authors",217        "copyright",218        "network_data_format"219    ]220}221