feat: renamed loading script to matche the dataset name
Browse files
sacred_buildings_loader.py → WikiChurches.py
RENAMED
|
@@ -15,7 +15,7 @@ logger = get_logger(__name__) # <- same pattern used in HF scripts
|
|
| 15 |
|
| 16 |
|
| 17 |
_DESCRIPTION = "WikiChurches is a dataset for architectural style classification"
|
| 18 |
-
_HOMEPAGE = "https://huggingface.co/datasets/LZSI-2/
|
| 19 |
_LICENSE = "cc-by-nc-4.0"
|
| 20 |
_CITATION = """@article{barz2021wikichurches,
|
| 21 |
title={WikiChurches: A Fine-Grained Dataset of Architectural Styles with Real-World Challenges},
|
|
@@ -26,21 +26,14 @@ _CITATION = """@article{barz2021wikichurches,
|
|
| 26 |
|
| 27 |
TAR_PARTS = 40
|
| 28 |
|
| 29 |
-
_TAR_URLS =[f"https://huggingface.co/datasets/LZSI-2/
|
| 30 |
|
| 31 |
_URLS = {
|
| 32 |
-
"churches_json": "https://huggingface.co/datasets/LZSI-2/
|
| 33 |
-
"style_levels": "https://huggingface.co/datasets/LZSI-2/
|
| 34 |
-
"style_names": "https://huggingface.co/datasets/LZSI-2/
|
| 35 |
}
|
| 36 |
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
_DESCRIPTION = """WikiChurches is a dataset for architectural style classification"""
|
| 41 |
-
_HOMEPAGE = "https://github.com/yourusername/sacred_buildings"
|
| 42 |
-
|
| 43 |
-
|
| 44 |
class SacredBuildingsDataset(datasets.GeneratorBasedBuilder):
|
| 45 |
"""Sacred Buildings Dataset with support for different hierarchy levels."""
|
| 46 |
|
|
|
|
| 15 |
|
| 16 |
|
| 17 |
_DESCRIPTION = "WikiChurches is a dataset for architectural style classification"
|
| 18 |
+
_HOMEPAGE = "https://huggingface.co/datasets/LZSI-2/WikiChurches"
|
| 19 |
_LICENSE = "cc-by-nc-4.0"
|
| 20 |
_CITATION = """@article{barz2021wikichurches,
|
| 21 |
title={WikiChurches: A Fine-Grained Dataset of Architectural Styles with Real-World Challenges},
|
|
|
|
| 26 |
|
| 27 |
TAR_PARTS = 40
|
| 28 |
|
| 29 |
+
_TAR_URLS =[f"https://huggingface.co/datasets/LZSI-2/WikiChurches/resolve/main/images/images_part{part_id}.tar" for part_id in range(1, TAR_PARTS + 1)]
|
| 30 |
|
| 31 |
_URLS = {
|
| 32 |
+
"churches_json": "https://huggingface.co/datasets/LZSI-2/WikiChurches/resolve/main/churches.json",
|
| 33 |
+
"style_levels": "https://huggingface.co/datasets/LZSI-2/WikiChurches/resolve/main/style_levels.json",
|
| 34 |
+
"style_names": "https://huggingface.co/datasets/LZSI-2/WikiChurches/resolve/main/style_names.txt",
|
| 35 |
}
|
| 36 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 37 |
class SacredBuildingsDataset(datasets.GeneratorBasedBuilder):
|
| 38 |
"""Sacred Buildings Dataset with support for different hierarchy levels."""
|
| 39 |
|