-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move schas dedicated dir + add model config schema
- Loading branch information
Showing
2 changed files
with
93 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-04/schema", | ||
"type": "object", | ||
"properties": { | ||
"num_classes": { | ||
"type": "integer", | ||
"description": "The number of classes the model outputs", | ||
"minimum": 1 | ||
}, | ||
"patch_size_pixels": { | ||
"type": "integer", | ||
"description": "The size of the patch in pixels (eg 350)", | ||
"minimum": 1 | ||
}, | ||
"spacing_um_px": { | ||
"type": "number", | ||
"description": "The spacing of the patch in micrometers per pixel (eg 0.5)", | ||
"minimum": 0 | ||
}, | ||
"class_names": { | ||
"type": "array", | ||
"description": "The names of the classes the model outputs. Length must be equal to 'num_classes'.", | ||
"items": { | ||
"type": "string" | ||
}, | ||
"uniqueItems": true | ||
}, | ||
"transform": { | ||
"type": "array", | ||
"items": { | ||
"type": "object", | ||
"properties": { | ||
"name": { | ||
"type": "string", | ||
"enum": [ | ||
"Resize", | ||
"ToTensor", | ||
"Normalize" | ||
] | ||
}, | ||
"arguments": { | ||
"type": "object" | ||
} | ||
}, | ||
"additionalProperties": false, | ||
"required": [ | ||
"name" | ||
] | ||
} | ||
} | ||
}, | ||
"required": [ | ||
"num_classes", | ||
"patch_size_pixels", | ||
"spacing_um_px", | ||
"class_names", | ||
"transform" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"title": "Schema for WSInfer Model Zoo registry file (wsinfer-zoo-registry.json)", | ||
"type": "object", | ||
"properties": { | ||
"models": { | ||
"type": "object", | ||
"additionalProperties": { | ||
"type": "object", | ||
"properties": { | ||
"description": { | ||
"type": "string" | ||
}, | ||
"hf_repo_id": { | ||
"type": "string" | ||
}, | ||
"hf_revision": { | ||
"type": "string" | ||
} | ||
}, | ||
"required": [ | ||
"description", | ||
"hf_repo_id", | ||
"hf_revision" | ||
], | ||
"additionalProperties": false | ||
} | ||
} | ||
}, | ||
"required": [ | ||
"models" | ||
], | ||
"additionalProperties": false | ||
} |