mapreader 1.1.5__tar.gz → 1.2.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {mapreader-1.1.5 → mapreader-1.2.0}/PKG-INFO +9 -10
- {mapreader-1.1.5 → mapreader-1.2.0}/mapreader/_version.py +3 -3
- {mapreader-1.1.5 → mapreader-1.2.0}/mapreader/annotate/utils.py +1 -1
- {mapreader-1.1.5 → mapreader-1.2.0}/mapreader/classify/classifier.py +3 -2
- {mapreader-1.1.5 → mapreader-1.2.0}/mapreader.egg-info/PKG-INFO +9 -10
- {mapreader-1.1.5 → mapreader-1.2.0}/mapreader.egg-info/requires.txt +7 -9
- {mapreader-1.1.5 → mapreader-1.2.0}/setup.py +9 -12
- {mapreader-1.1.5 → mapreader-1.2.0}/LICENSE +0 -0
- {mapreader-1.1.5 → mapreader-1.2.0}/README.md +0 -0
- {mapreader-1.1.5 → mapreader-1.2.0}/mapreader/__init__.py +0 -0
- {mapreader-1.1.5 → mapreader-1.2.0}/mapreader/annotate/__init__.py +0 -0
- {mapreader-1.1.5 → mapreader-1.2.0}/mapreader/annotate/annotator.py +0 -0
- {mapreader-1.1.5 → mapreader-1.2.0}/mapreader/classify/__init__.py +0 -0
- {mapreader-1.1.5 → mapreader-1.2.0}/mapreader/classify/custom_models.py +0 -0
- {mapreader-1.1.5 → mapreader-1.2.0}/mapreader/classify/datasets.py +0 -0
- {mapreader-1.1.5 → mapreader-1.2.0}/mapreader/classify/load_annotations.py +0 -0
- {mapreader-1.1.5 → mapreader-1.2.0}/mapreader/download/__init__.py +0 -0
- {mapreader-1.1.5 → mapreader-1.2.0}/mapreader/download/data_structures.py +0 -0
- {mapreader-1.1.5 → mapreader-1.2.0}/mapreader/download/downloader.py +0 -0
- {mapreader-1.1.5 → mapreader-1.2.0}/mapreader/download/downloader_utils.py +0 -0
- {mapreader-1.1.5 → mapreader-1.2.0}/mapreader/download/sheet_downloader.py +0 -0
- {mapreader-1.1.5 → mapreader-1.2.0}/mapreader/download/tile_loading.py +0 -0
- {mapreader-1.1.5 → mapreader-1.2.0}/mapreader/download/tile_merging.py +0 -0
- {mapreader-1.1.5 → mapreader-1.2.0}/mapreader/load/__init__.py +0 -0
- {mapreader-1.1.5 → mapreader-1.2.0}/mapreader/load/geo_utils.py +0 -0
- {mapreader-1.1.5 → mapreader-1.2.0}/mapreader/load/images.py +0 -0
- {mapreader-1.1.5 → mapreader-1.2.0}/mapreader/load/loader.py +0 -0
- {mapreader-1.1.5 → mapreader-1.2.0}/mapreader/process/__init__.py +0 -0
- {mapreader-1.1.5 → mapreader-1.2.0}/mapreader/process/post_process.py +0 -0
- {mapreader-1.1.5 → mapreader-1.2.0}/mapreader/process/process.py +0 -0
- {mapreader-1.1.5 → mapreader-1.2.0}/mapreader/utils/__init__.py +0 -0
- {mapreader-1.1.5 → mapreader-1.2.0}/mapreader/utils/compute_and_save_stats.py +0 -0
- {mapreader-1.1.5 → mapreader-1.2.0}/mapreader/utils/slice_parallel.py +0 -0
- {mapreader-1.1.5 → mapreader-1.2.0}/mapreader.egg-info/SOURCES.txt +0 -0
- {mapreader-1.1.5 → mapreader-1.2.0}/mapreader.egg-info/dependency_links.txt +0 -0
- {mapreader-1.1.5 → mapreader-1.2.0}/mapreader.egg-info/entry_points.txt +0 -0
- {mapreader-1.1.5 → mapreader-1.2.0}/mapreader.egg-info/not-zip-safe +0 -0
- {mapreader-1.1.5 → mapreader-1.2.0}/mapreader.egg-info/top_level.txt +0 -0
- {mapreader-1.1.5 → mapreader-1.2.0}/setup.cfg +0 -0
- {mapreader-1.1.5 → mapreader-1.2.0}/tests/test_annotator.py +0 -0
- {mapreader-1.1.5 → mapreader-1.2.0}/tests/test_geo_pipeline.py +0 -0
- {mapreader-1.1.5 → mapreader-1.2.0}/tests/test_import.py +0 -0
- {mapreader-1.1.5 → mapreader-1.2.0}/tests/test_post_processing.py +0 -0
- {mapreader-1.1.5 → mapreader-1.2.0}/tests/test_sheet_downloader.py +0 -0
- {mapreader-1.1.5 → mapreader-1.2.0}/versioneer.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: mapreader
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.2.0
|
|
4
4
|
Summary: A computer vision pipeline for the semantic exploration of maps/images at scale
|
|
5
5
|
Home-page: https://github.com/Living-with-machines/MapReader
|
|
6
6
|
Download-URL: https://github.com/Living-with-machines/MapReader/archive/refs/heads/main.zip
|
|
@@ -24,7 +24,7 @@ Classifier: Operating System :: OS Independent
|
|
|
24
24
|
Classifier: Topic :: Software Development
|
|
25
25
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
26
26
|
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
27
|
-
Requires-Python: >=3.
|
|
27
|
+
Requires-Python: >=3.9
|
|
28
28
|
Description-Content-Type: text/markdown
|
|
29
29
|
License-File: LICENSE
|
|
30
30
|
Requires-Dist: matplotlib<4.0.0,>=3.5.0
|
|
@@ -37,8 +37,8 @@ Requires-Dist: Shapely<3.0.0,>=2.0.0
|
|
|
37
37
|
Requires-Dist: nest-asyncio<2.0.0,>=1.5.1
|
|
38
38
|
Requires-Dist: scikit-image>=0.18.3
|
|
39
39
|
Requires-Dist: scikit-learn<2.0.0,>=1.0.1
|
|
40
|
-
Requires-Dist: torch
|
|
41
|
-
Requires-Dist: torchvision<0.
|
|
40
|
+
Requires-Dist: torch>=1.10.0
|
|
41
|
+
Requires-Dist: torchvision<0.17.3,>=0.11.1
|
|
42
42
|
Requires-Dist: jupyter<2.0.0,>=1.0.0
|
|
43
43
|
Requires-Dist: ipykernel<7.0.0,>=6.5.1
|
|
44
44
|
Requires-Dist: ipywidgets<9.0.0,>=8.0.0
|
|
@@ -56,15 +56,14 @@ Requires-Dist: torchinfo<2.0.0
|
|
|
56
56
|
Requires-Dist: openpyxl<4.0.0
|
|
57
57
|
Requires-Dist: geopandas<1.0.0
|
|
58
58
|
Requires-Dist: pyogrio>=0.7.2
|
|
59
|
+
Requires-Dist: cartopy>=0.22.0
|
|
59
60
|
Provides-Extra: dev
|
|
60
|
-
Requires-Dist: pytest<
|
|
61
|
-
Requires-Dist: pytest-cov<
|
|
61
|
+
Requires-Dist: pytest<9.0.0; extra == "dev"
|
|
62
|
+
Requires-Dist: pytest-cov<6.0.0,>=4.1.0; extra == "dev"
|
|
62
63
|
Requires-Dist: timm<1.0.0; extra == "dev"
|
|
63
64
|
Requires-Dist: transformers<5.0.0; extra == "dev"
|
|
64
|
-
Requires-Dist: black<
|
|
65
|
-
Requires-Dist: flake8<
|
|
66
|
-
Provides-Extra: geo
|
|
67
|
-
Requires-Dist: cartopy>=0.20.0; extra == "geo"
|
|
65
|
+
Requires-Dist: black<25.0.0,>=23.7.0; extra == "dev"
|
|
66
|
+
Requires-Dist: flake8<8.0.0,>=6.0.0; extra == "dev"
|
|
68
67
|
|
|
69
68
|
<div align="center">
|
|
70
69
|
<br>
|
|
@@ -8,11 +8,11 @@ import json
|
|
|
8
8
|
|
|
9
9
|
version_json = '''
|
|
10
10
|
{
|
|
11
|
-
"date": "2024-04-
|
|
11
|
+
"date": "2024-04-08T09:00:00+0100",
|
|
12
12
|
"dirty": false,
|
|
13
13
|
"error": null,
|
|
14
|
-
"full-revisionid": "
|
|
15
|
-
"version": "1.
|
|
14
|
+
"full-revisionid": "e9d119ffa6946e723f7977ddd7add0c9bcce34d8",
|
|
15
|
+
"version": "1.2.0"
|
|
16
16
|
}
|
|
17
17
|
''' # END VERSION_JSON
|
|
18
18
|
|
|
@@ -95,7 +95,7 @@ def prepare_data(
|
|
|
95
95
|
).values
|
|
96
96
|
if random_state in ["random"]:
|
|
97
97
|
df = df.groupby("pixel_groups").sample(
|
|
98
|
-
n=10, random_state=random.randint(0, 1e6)
|
|
98
|
+
n=10, random_state=random.randint(0, int(1e6))
|
|
99
99
|
)
|
|
100
100
|
else:
|
|
101
101
|
df = df.groupby("pixel_groups").sample(n=10, random_state=random_state)
|
|
@@ -7,8 +7,9 @@ import random
|
|
|
7
7
|
import socket
|
|
8
8
|
import sys
|
|
9
9
|
import time
|
|
10
|
+
from collections.abc import Hashable, Iterable
|
|
10
11
|
from datetime import datetime
|
|
11
|
-
from typing import Any
|
|
12
|
+
from typing import Any
|
|
12
13
|
|
|
13
14
|
import joblib
|
|
14
15
|
import matplotlib.pyplot as plt
|
|
@@ -167,7 +168,7 @@ class ClassifierContainer:
|
|
|
167
168
|
if not os.path.exists("./tmp_checkpoints"):
|
|
168
169
|
os.makedirs("./tmp_checkpoints")
|
|
169
170
|
self.tmp_save_filename = (
|
|
170
|
-
f"./tmp_checkpoints/tmp_{random.randint(0, 1e10)}_checkpoint.pkl"
|
|
171
|
+
f"./tmp_checkpoints/tmp_{random.randint(0, int(1e10))}_checkpoint.pkl"
|
|
171
172
|
)
|
|
172
173
|
|
|
173
174
|
# add colors for printing/logging
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: mapreader
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.2.0
|
|
4
4
|
Summary: A computer vision pipeline for the semantic exploration of maps/images at scale
|
|
5
5
|
Home-page: https://github.com/Living-with-machines/MapReader
|
|
6
6
|
Download-URL: https://github.com/Living-with-machines/MapReader/archive/refs/heads/main.zip
|
|
@@ -24,7 +24,7 @@ Classifier: Operating System :: OS Independent
|
|
|
24
24
|
Classifier: Topic :: Software Development
|
|
25
25
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
26
26
|
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
27
|
-
Requires-Python: >=3.
|
|
27
|
+
Requires-Python: >=3.9
|
|
28
28
|
Description-Content-Type: text/markdown
|
|
29
29
|
License-File: LICENSE
|
|
30
30
|
Requires-Dist: matplotlib<4.0.0,>=3.5.0
|
|
@@ -37,8 +37,8 @@ Requires-Dist: Shapely<3.0.0,>=2.0.0
|
|
|
37
37
|
Requires-Dist: nest-asyncio<2.0.0,>=1.5.1
|
|
38
38
|
Requires-Dist: scikit-image>=0.18.3
|
|
39
39
|
Requires-Dist: scikit-learn<2.0.0,>=1.0.1
|
|
40
|
-
Requires-Dist: torch
|
|
41
|
-
Requires-Dist: torchvision<0.
|
|
40
|
+
Requires-Dist: torch>=1.10.0
|
|
41
|
+
Requires-Dist: torchvision<0.17.3,>=0.11.1
|
|
42
42
|
Requires-Dist: jupyter<2.0.0,>=1.0.0
|
|
43
43
|
Requires-Dist: ipykernel<7.0.0,>=6.5.1
|
|
44
44
|
Requires-Dist: ipywidgets<9.0.0,>=8.0.0
|
|
@@ -56,15 +56,14 @@ Requires-Dist: torchinfo<2.0.0
|
|
|
56
56
|
Requires-Dist: openpyxl<4.0.0
|
|
57
57
|
Requires-Dist: geopandas<1.0.0
|
|
58
58
|
Requires-Dist: pyogrio>=0.7.2
|
|
59
|
+
Requires-Dist: cartopy>=0.22.0
|
|
59
60
|
Provides-Extra: dev
|
|
60
|
-
Requires-Dist: pytest<
|
|
61
|
-
Requires-Dist: pytest-cov<
|
|
61
|
+
Requires-Dist: pytest<9.0.0; extra == "dev"
|
|
62
|
+
Requires-Dist: pytest-cov<6.0.0,>=4.1.0; extra == "dev"
|
|
62
63
|
Requires-Dist: timm<1.0.0; extra == "dev"
|
|
63
64
|
Requires-Dist: transformers<5.0.0; extra == "dev"
|
|
64
|
-
Requires-Dist: black<
|
|
65
|
-
Requires-Dist: flake8<
|
|
66
|
-
Provides-Extra: geo
|
|
67
|
-
Requires-Dist: cartopy>=0.20.0; extra == "geo"
|
|
65
|
+
Requires-Dist: black<25.0.0,>=23.7.0; extra == "dev"
|
|
66
|
+
Requires-Dist: flake8<8.0.0,>=6.0.0; extra == "dev"
|
|
68
67
|
|
|
69
68
|
<div align="center">
|
|
70
69
|
<br>
|
|
@@ -8,8 +8,8 @@ Shapely<3.0.0,>=2.0.0
|
|
|
8
8
|
nest-asyncio<2.0.0,>=1.5.1
|
|
9
9
|
scikit-image>=0.18.3
|
|
10
10
|
scikit-learn<2.0.0,>=1.0.1
|
|
11
|
-
torch
|
|
12
|
-
torchvision<0.
|
|
11
|
+
torch>=1.10.0
|
|
12
|
+
torchvision<0.17.3,>=0.11.1
|
|
13
13
|
jupyter<2.0.0,>=1.0.0
|
|
14
14
|
ipykernel<7.0.0,>=6.5.1
|
|
15
15
|
ipywidgets<9.0.0,>=8.0.0
|
|
@@ -27,14 +27,12 @@ torchinfo<2.0.0
|
|
|
27
27
|
openpyxl<4.0.0
|
|
28
28
|
geopandas<1.0.0
|
|
29
29
|
pyogrio>=0.7.2
|
|
30
|
+
cartopy>=0.22.0
|
|
30
31
|
|
|
31
32
|
[dev]
|
|
32
|
-
pytest<
|
|
33
|
-
pytest-cov<
|
|
33
|
+
pytest<9.0.0
|
|
34
|
+
pytest-cov<6.0.0,>=4.1.0
|
|
34
35
|
timm<1.0.0
|
|
35
36
|
transformers<5.0.0
|
|
36
|
-
black<
|
|
37
|
-
flake8<
|
|
38
|
-
|
|
39
|
-
[geo]
|
|
40
|
-
cartopy>=0.20.0
|
|
37
|
+
black<25.0.0,>=23.7.0
|
|
38
|
+
flake8<8.0.0,>=6.0.0
|
|
@@ -26,7 +26,7 @@ setuptools.setup(
|
|
|
26
26
|
packages=setuptools.find_packages(),
|
|
27
27
|
include_package_data=True,
|
|
28
28
|
platforms="OS Independent",
|
|
29
|
-
python_requires=">=3.
|
|
29
|
+
python_requires=">=3.9",
|
|
30
30
|
install_requires=[
|
|
31
31
|
"matplotlib>=3.5.0,<4.0.0",
|
|
32
32
|
"numpy>=1.21.5,<2.0.0",
|
|
@@ -38,14 +38,13 @@ setuptools.setup(
|
|
|
38
38
|
"nest-asyncio>=1.5.1,<2.0.0",
|
|
39
39
|
"scikit-image>=0.18.3",
|
|
40
40
|
"scikit-learn>=1.0.1,<2.0.0",
|
|
41
|
-
"torch>=1.10.0
|
|
42
|
-
"torchvision>=0.11.1,<0.
|
|
41
|
+
"torch>=1.10.0",
|
|
42
|
+
"torchvision>=0.11.1,<0.17.3",
|
|
43
43
|
"jupyter>=1.0.0,<2.0.0",
|
|
44
44
|
"ipykernel>=6.5.1,<7.0.0",
|
|
45
45
|
"ipywidgets>=8.0.0,<9.0.0",
|
|
46
46
|
"ipyannotate==0.1.0-beta.0",
|
|
47
47
|
"Cython>=0.29.24,<0.30.0",
|
|
48
|
-
# "proj>=0.2.0,<0.3.0",
|
|
49
48
|
"PyYAML>=6.0,<7.0",
|
|
50
49
|
"tensorboard>=2.7.0,<3.0.0",
|
|
51
50
|
"parhugin>=0.0.3,<0.0.4",
|
|
@@ -58,20 +57,18 @@ setuptools.setup(
|
|
|
58
57
|
"openpyxl<4.0.0",
|
|
59
58
|
"geopandas<1.0.0",
|
|
60
59
|
"pyogrio>=0.7.2",
|
|
60
|
+
"cartopy>=0.22.0",
|
|
61
61
|
],
|
|
62
62
|
extras_require={
|
|
63
63
|
"dev": [
|
|
64
|
-
"pytest<
|
|
65
|
-
"pytest-cov>=4.1.0,<
|
|
64
|
+
"pytest<9.0.0",
|
|
65
|
+
"pytest-cov>=4.1.0,<6.0.0",
|
|
66
66
|
"timm<1.0.0",
|
|
67
67
|
"transformers<5.0.0",
|
|
68
|
-
"black>=23.7.0,<
|
|
69
|
-
"flake8>=6.0.0,<
|
|
68
|
+
"black>=23.7.0,<25.0.0",
|
|
69
|
+
"flake8>=6.0.0,<8.0.0",
|
|
70
70
|
],
|
|
71
|
-
|
|
72
|
-
"cartopy>=0.20.0"
|
|
73
|
-
],
|
|
74
|
-
},
|
|
71
|
+
},
|
|
75
72
|
classifiers=[
|
|
76
73
|
"Development Status :: 3 - Alpha",
|
|
77
74
|
"License :: OSI Approved :: MIT License",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|