Open jeffbl opened 3 months ago
Draft will be to @VenissaCarolQuadros from @AndyBaiMQC by EOD Friday, as discussed in sprint meeting yesterday.
Workflow
Json Schema:
For all 3 graphs, the LLaVa understanding component is the same:
{ "$schema": "", "$id": "", "type": "", "title": "Segmentation Understanding by LLaVa", "description": "", "properties": { "explanations": { "description": "Char string paragraph explaning the inputs from segmentations", "type": "string", "minLength": 1 } }, "required": ["explanations"] }
https://llava-vl.github.io/llava-interactive/
This is a very useful tool (our use case is a lot easier)
Evolution Heart Cell
The actual schema for SEEM segmentation tool is similar to what we have for image segmentation:
{ "$schema": "", "$id": "", "type": "object", "title": "Segmentation Data", "description": "JSON containing pixel coordinates of different segments in an photograph", "definitions": { "normCoord": { "description": "A pair of normalized coordinates.", "type": "array", "items": { "type": "number", "minimum": 0, "maximum": 1 }, "minItems": 2, "maxItems": 2 }, "contour": { "type": "object", "description": "A single contour of a segment as detected. Each contour is a separate region.", "properties": { "coordinates": { "description": "The normalized coordinates forming the contour as returned by OpenCV.", "type": "array", "items": { "$ref": "#/definitions/normCoord" } }, "centroid": { "allOf": [ { "$ref": "#/definitions/normCoord" }, { "description": "The center of the contour with normalized coordinates." } ] }, "area": { "description": "The area of the image taken by this contour", "type": "number", "minimum": 0, "maximum": 1 } } } }, "properties": { "segments": { "type": "array", "description": "Divides the entire photograph into different segments where each segment indicates a noteworthy region or structure. For example a park photograph would be divided into sections that contain grass, sections that contain trees etc.", "items": { "type": "object", "description": "Contains information about each individual segment in an photograph. Information such as area, centre of segment etc are included in this section", "properties": { "name": { "description": "The name of the segment.", "type": "string" }, "contours": { "description": "The separate contours making up the segment.", "type": "array", "items": { "$ref": "#/definitions/contour" } }, "centroid": { "allOf": [ { "$ref": "#/definitions/normCoord" }, { "description": "The overall centroid of the segment with normalized coordinates." } ] }, "area": { "description": "Total area occupied by the segment in a given photograph. the area is normalised between 0 and 1", "type": "number", "minimum": 0, "maximum": 1 } }, "required": [ "name", "contours", "centroid", "area" ] } } }, "required": [ "segments" ] }
However, there would be further post-processing, therefore the final useable formats are:
Evolution
[{“text”:[”abiogenesis”, “3.8 billion years”], “images”:[<image/>]},…,…]
Cell/Heart
[{“text”:[<name/>], “images”:[<arrow/>, <image/>]},…] -> [{“name”: “image”]