[GRASS-git] [OSGeo/grass-addons] e9df77: i.sam2: use lazy import for torch (#1338)

Markus Neteler noreply at github.com
Fri Feb 21 07:56:33 PST 2025


  Branch: refs/heads/grass8
  Home:   https://github.com/OSGeo/grass-addons
  Commit: e9df778894099cc01bf63c325fa7b86db4e6c128
      https://github.com/OSGeo/grass-addons/commit/e9df778894099cc01bf63c325fa7b86db4e6c128
  Author: Markus Neteler <neteler at osgeo.org>
  Date:   2025-02-21 (Fri, 21 Feb 2025)

  Changed paths:
    M src/imagery/i.eodag/i.eodag.py
    M src/imagery/i.sam2/i.sam2.html
    M src/imagery/i.sam2/i.sam2.md
    M src/imagery/i.sam2/i.sam2.py
    M src/imagery/i.sentinel/i.sentinel.download/i.sentinel.download.py
    M src/raster/r.green/r.green.install/r.green.install.html
    M src/raster/r.green/r.green.install/r.green.install.md

  Log Message:
  -----------
  i.sam2: use lazy import for torch (#1338)

i.sam2: use lazy import for torch to avoid Python error:

```
Traceback (most recent call last):
  File "/home/neteler/.grass8/addons/i.sam2/scripts/i.sam2", line 69, in <module>
    import torch
ModuleNotFoundError: No module named 'torch'
```

Also 
- fix HTML error (img)
- add HTML alt tag
- fix typos in several manual pages



To unsubscribe from these emails, change your notification settings at https://github.com/OSGeo/grass-addons/settings/notifications


More information about the grass-commit mailing list