(field: str)
| 99 | |
| 100 | |
| 101 | def parse_box(field: str) -> List[float]: |
| 102 | if not field: |
| 103 | return [] |
| 104 | x0, y0, x1, y1 = field.split(":") |
| 105 | return [float(x0), float(y0), float(x1), float(y1)] |
| 106 | |
| 107 | |
| 108 | def load_cases(path: str) -> List[PromptCase]: |