Download mapper/data/base.py from mapitanywhere/MapItAnywhereModel: direct link, hf CLI and curl.
- Browser
- Download file 434 Bytes
-
https://huggingface.co/spaces/mapitanywhere/MapItAnywhereModel/resolve/main/mapper/data/base.py
- Command line
-
hf download hf://spaces/mapitanywhere/MapItAnywhereModel/mapper/data/base.py
-
curl -L -o base.py https://huggingface.co/spaces/mapitanywhere/MapItAnywhereModel/resolve/main/mapper/data/base.py
434 Bytes
| from abc import abstractmethod | |
| from typing import Optional | |
| class DataBase(): | |
| def __init__(self) -> None: | |
| raise NotImplementedError | |
| def prepare_data(self) -> None: | |
| raise NotImplementedError | |
| def setup(self, stage: Optional[str] = None): | |
| raise NotImplementedError | |
| def dataset(self, stage: str): | |
| raise NotImplementedError |