bench / docs /SUBMISSION.md
milkyroad's picture
Upload folder using huggingface_hub (part 12)
11ec37f verified
|
Raw History Blame Contribute Delete
1.41 kB
# Submissions
One JSON object per line. `cystobench score` validates the schema and then scores.
## Stills, axis 2C
```json
{"sample_id": "0011a5ac.png", "class": "malignant_tumor"}
```
`class` is `malignant_tumor`, `non_malignant_lesion`, or `non_roi`. `sample_id` is the still id in the metadata. A missing still is scored as wrong.
```bash
cystobench score --level stills --axis 2c --preds preds.jsonl
```
## Clips, axes 2A and 2B
```json
{"sample_id": "P000_cystoscopy_track_000", "lesions": [{"t_start_s": 1.2, "t_end_s": 4.8, "class": "malignant_tumor", "score": 0.9}]}
```
Times are seconds from the start of the file. `t_end_s` must be inside the clip duration stored on the clip row. 2A uses the intervals. 2B reuses the 2A matches. `class` is stored so the same file can be scored as clip 2C once that gold has more than one class.
```bash
cystobench score --level clip --axis 2a --preds preds.jsonl
cystobench score --level clip --axis 2b --preds preds.jsonl
```
## Procedure, axis 1
```json
{"procedure_id": "procedure_001", "sex": "female", "landmarks": {"trigone": [[12.0, 15.5], [40.0, 44.0]]}, "lesions": [{"lesion_id": "L1", "t_start_s": 20.0, "t_end_s": 28.0, "class": "non_malignant_lesion"}]}
```
Landmark names are the eleven names in `docs/SPEC.md`. A landmark that is omitted was not inspected.
```bash
cystobench score --level procedure --axis 1 --preds preds.jsonl
```