Spaces:
Sleeping
Sleeping
Download src/data/schemas.py from alphamike/GraphAttributeLearning: direct link, hf CLI and curl.
- Browser
- Download file 372 Bytes
-
https://huggingface.co/spaces/alphamike/GraphAttributeLearning/resolve/main/src/data/schemas.py
- Command line
-
hf download hf://spaces/alphamike/GraphAttributeLearning/src/data/schemas.py
-
curl -L -o schemas.py https://huggingface.co/spaces/alphamike/GraphAttributeLearning/resolve/main/src/data/schemas.py
372 Bytes
| from __future__ import annotations | |
| from dataclasses import asdict, dataclass | |
| from typing import Dict, List | |
| 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) | |