Spaces:
Sleeping
Sleeping
File size: 372 Bytes
4687353 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | from __future__ import annotations
from dataclasses import asdict, dataclass
from typing import Dict, List
@dataclass
class SampleRecord:
image_id: int
object_id: int
object_name: str
image_url: str
image_path: str
attributes_raw: List[str]
attributes_norm: List[str]
def to_dict(self) -> Dict[str, object]:
return asdict(self)
|