-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Local Projection #29
Comments
Thank you for your feedback. We have made significant changes in our latest code and have fixed this issue. We will be pushing out a new version soon. If this is impacting your work, you can replace the original code with the code from the latest main branch. |
Loading latest code seems to have resolved issue if demo mode is switched off before opening project. Running plugin in latest QGIS version seems to produce several deprecation warnings: 2024-01-04T11:39:30 WARNING warning:C:\Users\marti\AppData\Roaming\Python\Python39\site-packages\torchvision\transforms_functional_pil.py:242: DeprecationWarning: BILINEAR is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.BILINEAR instead.
2024-01-04T11:39:30 WARNING warning:C:\Users\marti\AppData\Roaming\Python\Python39\site-packages\torchvision\transforms_functional_pil.py:288: DeprecationWarning: NEAREST is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.NEAREST or Dither.NONE instead.
2024-01-04T11:39:30 WARNING warning:C:\Users\marti\AppData\Roaming\Python\Python39\site-packages\torchvision\transforms_functional_pil.py:304: DeprecationWarning: NEAREST is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.NEAREST or Dither.NONE instead.
2024-01-04T11:39:30 WARNING warning:C:\Users\marti\AppData\Roaming\Python\Python39\site-packages\torchvision\transforms_functional_pil.py:321: DeprecationWarning: BICUBIC is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.BICUBIC instead.
2024-01-04T11:39:32 WARNING warning:C:\Users/marti/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\rvt-qgis\rvt\vis.py:24: DeprecationWarning: Please use
2024-01-04T11:39:33 WARNING warning:C:\Users\marti\AppData\Roaming\Python\Python39\site-packages\remotior_sensus\core\log.py:77: ResourceWarning: unclosed file
2024-01-04T11:39:46 WARNING warning:C:\Users/marti/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\Geo-SAM\tools\widgetTool.py:146: DeprecationWarning: QgsMapLayerComboBox.setFilters() is deprecated
|
Hello everybody! When you turn on the module, the same errors as those described above pop up, namely: 2024-05-09T13:22:48 CRITICAL Traceback (most recent call last):
File "rasterio\\crs.pyx", line 586, in rasterio.crs.CRS.from_epsg
File "rasterio\\_err.pyx", line 195, in rasterio._err.exc_wrap_int
rasterio._err.CPLE_AppDefinedError: PROJ: proj_create_from_database: e:\OSGeo4W\share\proj\proj.db contains DATABASE.LAYOUT.VERSION.MINOR = 2 whereas a number >= 3 is expected. It comes from another PROJ installation.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "e:\OSGeo4W/apps/qgis/./python\qgis\utils.py", line 404, in loadPlugin
__import__(packageName)
File "e:\OSGeo4W/apps/qgis/./python\qgis\utils.py", line 923, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users/testUserb/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\Geo-SAM\__init__.py", line 7, in
from .geo_sam_tool import Geo_SAM
File "e:\OSGeo4W/apps/qgis/./python\qgis\utils.py", line 923, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users/testUserb/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\Geo-SAM\geo_sam_tool.py", line 24, in
from .tools.SAMTool import SAM_Model
File "e:\OSGeo4W/apps/qgis/./python\qgis\utils.py", line 923, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users/testUserb/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\Geo-SAM\tools\SAMTool.py", line 13, in
from .torchgeo_sam import SamTestFeatureDataset, SamTestFeatureGeoSampler
File "e:\OSGeo4W/apps/qgis/./python\qgis\utils.py", line 923, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users/testUserb/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\Geo-SAM\tools\torchgeo_sam.py", line 21, in
from torchgeo.datasets import unbind_samples, stack_samples, BoundingBox, RasterDataset, GeoDataset, IntersectionDataset
File "e:\OSGeo4W/apps/qgis/./python\qgis\utils.py", line 923, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "e:\OSGeo4W\apps\Python312\Lib\site-packages\torchgeo\datasets\__init__.py", line 6, in
from .advance import ADVANCE
File "e:\OSGeo4W/apps/qgis/./python\qgis\utils.py", line 923, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "e:\OSGeo4W\apps\Python312\Lib\site-packages\torchgeo\datasets\advance.py", line 17, in
from .geo import NonGeoDataset
File "e:\OSGeo4W/apps/qgis/./python\qgis\utils.py", line 923, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "e:\OSGeo4W\apps\Python312\Lib\site-packages\torchgeo\datasets\geo.py", line 42, in
class GeoDataset(Dataset[dict[str, Any]], abc.ABC):
File "e:\OSGeo4W\apps\Python312\Lib\site-packages\torchgeo\datasets\geo.py", line 85, in GeoDataset
_crs = CRS.from_epsg(4326)
^^^^^^^^^^^^^^^^^^^
File "rasterio\\crs.pyx", line 590, in rasterio.crs.CRS.from_epsg
rasterio.errors.CRSError: The EPSG code is unknown. PROJ: proj_create_from_database: e:\OSGeo4W\share\proj\proj.db contains DATABASE.LAYOUT.VERSION.MINOR = 2 whereas a number >= 3 is expected. It comes from another PROJ installation.
So, how it fix by myself or wait new release?! UPD: Qgis info.
|
Hi @kolegovpp , According to errors info, your current PROJ database (proj.db) found at |
Oh, thanks! I'll update it. |
On opening the segmentation tool the following messages appear even if the demo mode is switched off:
2024-01-01T12:03:07 INFO Great : SAM Features with 12 patches in 'beiluhe_google_img_201211_clip' have been loaded, you can start labeling now
2024-01-01T12:03:34 INFO Note: : Project CRS has been changed to Feature CRS temporarily, and will be reset to original CRS when this widget is closed.
CRS has to be reset to Project CRS before segmentation if working with a CRS other than the one specified for the demo.
The text was updated successfully, but these errors were encountered: