geoai-py 0.9.2__py2.py3-none-any.whl → 0.10.0__py2.py3-none-any.whl

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.
geoai/__init__.py CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  __author__ = """Qiusheng Wu"""
4
4
  __email__ = "giswqs@gmail.com"
5
- __version__ = "0.9.2"
5
+ __version__ = "0.10.0"
6
6
 
7
7
 
8
8
  import os
geoai/change_detection.py CHANGED
@@ -9,7 +9,11 @@ import numpy as np
9
9
  import rasterio
10
10
  from rasterio.windows import from_bounds
11
11
  from skimage.transform import resize
12
- from torchange.models.segment_any_change import AnyChange, show_change_masks
12
+
13
+ try:
14
+ from torchange.models.segment_any_change import AnyChange, show_change_masks
15
+ except ImportError:
16
+ print("torchange requires Python 3.11 or higher")
13
17
 
14
18
  from .utils import download_file
15
19
 
geoai/train.py CHANGED
@@ -2063,7 +2063,7 @@ def train_semantic_one_epoch(
2063
2063
  elapsed_time = time.time() - start_time
2064
2064
  if verbose:
2065
2065
  print(
2066
- f"Epoch: {epoch}, Batch: {i}/{num_batches}, Loss: {loss.item():.4f}, Time: {elapsed_time:.2f}s"
2066
+ f"Epoch: {epoch + 1}, Batch: {i + 1}/{num_batches}, Loss: {loss.item():.4f}, Time: {elapsed_time:.2f}s"
2067
2067
  )
2068
2068
  start_time = time.time()
2069
2069
 
geoai/utils.py CHANGED
@@ -3149,6 +3149,11 @@ def export_geotiff_tiles_batch(
3149
3149
  Raises:
3150
3150
  ValueError: If no images or masks found, or if counts don't match
3151
3151
  """
3152
+
3153
+ import logging
3154
+
3155
+ logging.getLogger("rasterio").setLevel(logging.ERROR)
3156
+
3152
3157
  # Default extensions if not provided
3153
3158
  if image_extensions is None:
3154
3159
  image_extensions = [".tif", ".tiff", ".jpg", ".jpeg", ".png", ".jp2", ".img"]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: geoai-py
3
- Version: 0.9.2
3
+ Version: 0.10.0
4
4
  Summary: A Python package for using Artificial Intelligence (AI) with geospatial data
5
5
  Author-email: Qiusheng Wu <giswqs@gmail.com>
6
6
  License: MIT License
@@ -0,0 +1,19 @@
1
+ geoai/__init__.py,sha256=NaZb3vKclD1g50Cp45BvKY-dLnYC8ilz1J6wyRAgPY4,3766
2
+ geoai/change_detection.py,sha256=XkJjMEU1nD8uX3-nQy7NEmz8cukVeSaRxKJHlrv8xPM,59636
3
+ geoai/classify.py,sha256=0DcComVR6vKU4qWtH2oHVeXc7ZTcV0mFvdXRtlNmolo,35637
4
+ geoai/detectron2.py,sha256=dOOFM9M9-6PV8q2A4-mnIPrz7yTo-MpEvDiAW34nl0w,14610
5
+ geoai/download.py,sha256=B0EwpQFndJknOKmwRfEEnnCJhplOAwcLyNzFuA6FjZs,47633
6
+ geoai/extract.py,sha256=595MBcSaFx-gQLIEv5g3oEM90QA5In4L59GPVgBOlQc,122092
7
+ geoai/geoai.py,sha256=ZPr7hyJhOnwPO9c-nVJVaOUqMRZ77UpK95TFjKzDt0A,9782
8
+ geoai/hf.py,sha256=HbfJfpO6XnANKhmFOBvpwULiC65TeMlnLNtyQHHmlKA,17248
9
+ geoai/sam.py,sha256=O6S-kGiFn7YEcFbfWFItZZQOhnsm6-GlunxQLY0daEs,34345
10
+ geoai/segment.py,sha256=yBGTxA-ti8lBpk7WVaBOp6yP23HkaulKJQk88acrmZ0,43788
11
+ geoai/segmentation.py,sha256=7yEzBSKCyHW1dNssoK0rdvhxi2IXsIQIFSga817KdI4,11535
12
+ geoai/train.py,sha256=tf29H_1GojczQnBzJpNPYXYfo1dDT7W1EivMlpXiEjM,135893
13
+ geoai/utils.py,sha256=c171Gpk6WF5c2l4Hk9NYBGwSifGf-AuBKnA_SlnoTuA,300492
14
+ geoai_py-0.10.0.dist-info/licenses/LICENSE,sha256=vN2L5U7cZ6ZkOHFmc8WiGlsogWsZc5dllMeNxnKVOZg,1070
15
+ geoai_py-0.10.0.dist-info/METADATA,sha256=fwxfmIApQl0bmwZmVj-A8X0vvPfELJOCp0QllFfNxyE,6764
16
+ geoai_py-0.10.0.dist-info/WHEEL,sha256=JNWh1Fm1UdwIQV075glCn4MVuCRs0sotJIq-J6rbxCU,109
17
+ geoai_py-0.10.0.dist-info/entry_points.txt,sha256=uGp3Az3HURIsRHP9v-ys0hIbUuBBNUfXv6VbYHIXeg4,41
18
+ geoai_py-0.10.0.dist-info/top_level.txt,sha256=1YkCUWu-ii-0qIex7kbwAvfei-gos9ycyDyUCJPNWHY,6
19
+ geoai_py-0.10.0.dist-info/RECORD,,
@@ -1,19 +0,0 @@
1
- geoai/__init__.py,sha256=Udtv5X0N90h8vLLPvjQuib_iAMGQl5LjYbM7aZJATzk,3765
2
- geoai/change_detection.py,sha256=DUhC8nqOYL2cKSuc1s7G4tw9tFb7armDIS84mHulSnE,59552
3
- geoai/classify.py,sha256=0DcComVR6vKU4qWtH2oHVeXc7ZTcV0mFvdXRtlNmolo,35637
4
- geoai/detectron2.py,sha256=dOOFM9M9-6PV8q2A4-mnIPrz7yTo-MpEvDiAW34nl0w,14610
5
- geoai/download.py,sha256=B0EwpQFndJknOKmwRfEEnnCJhplOAwcLyNzFuA6FjZs,47633
6
- geoai/extract.py,sha256=595MBcSaFx-gQLIEv5g3oEM90QA5In4L59GPVgBOlQc,122092
7
- geoai/geoai.py,sha256=ZPr7hyJhOnwPO9c-nVJVaOUqMRZ77UpK95TFjKzDt0A,9782
8
- geoai/hf.py,sha256=HbfJfpO6XnANKhmFOBvpwULiC65TeMlnLNtyQHHmlKA,17248
9
- geoai/sam.py,sha256=O6S-kGiFn7YEcFbfWFItZZQOhnsm6-GlunxQLY0daEs,34345
10
- geoai/segment.py,sha256=yBGTxA-ti8lBpk7WVaBOp6yP23HkaulKJQk88acrmZ0,43788
11
- geoai/segmentation.py,sha256=7yEzBSKCyHW1dNssoK0rdvhxi2IXsIQIFSga817KdI4,11535
12
- geoai/train.py,sha256=k-nniOSRSZgwItBPukvFhTfTymAIAGPlCDoNYOV8S5Y,135885
13
- geoai/utils.py,sha256=MK9zaijX4v_UnPdvsee8S4W2-ZPr09TgzNrkMF0oqVQ,300412
14
- geoai_py-0.9.2.dist-info/licenses/LICENSE,sha256=vN2L5U7cZ6ZkOHFmc8WiGlsogWsZc5dllMeNxnKVOZg,1070
15
- geoai_py-0.9.2.dist-info/METADATA,sha256=Bd3lQwAWMSV2spDncP7iaceKSmQWAkogGv5K_NLg_Ww,6763
16
- geoai_py-0.9.2.dist-info/WHEEL,sha256=JNWh1Fm1UdwIQV075glCn4MVuCRs0sotJIq-J6rbxCU,109
17
- geoai_py-0.9.2.dist-info/entry_points.txt,sha256=uGp3Az3HURIsRHP9v-ys0hIbUuBBNUfXv6VbYHIXeg4,41
18
- geoai_py-0.9.2.dist-info/top_level.txt,sha256=1YkCUWu-ii-0qIex7kbwAvfei-gos9ycyDyUCJPNWHY,6
19
- geoai_py-0.9.2.dist-info/RECORD,,