You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+19-2Lines changed: 19 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,11 +42,28 @@ The **segment-geospatial** package draws its inspiration from [segment-anything-
42
42
43
43
### Install from PyPI
44
44
45
-
**segment-geospatial** is available on [PyPI](https://pypi.org/project/segment-geospatial/). To install **segment-geospatial**, run this command in your terminal:
45
+
**segment-geospatial** is available on [PyPI](https://pypi.org/project/segment-geospatial/) and can be installed in several ways so that its dependencies can be controlled more granularly. This reduces package size for CI environments, since not every time all of the models will be used.
46
+
47
+
Depending on what tools you need to use, you might want to do:
48
+
*`segment-geospatial` or `segment-geospatial[samgeo]`: Installs only the minimum required dependencies to run SAMGeo
49
+
*`segment-geospatial[samgeo2]`: Installs the dependencies to run SAMGeo 2
50
+
*`segment-geospatial[fast]`: Installs the dependencies to run Fast SAM
51
+
*`segment-geospatial[hq]`: Installs the dependencies to run HQ-SAM
52
+
*`segment-geospatial[text]`: Installs Grounding DINO to use SAMGeo 1 and 2 with text prompts
53
+
*`segment-geospatial[fer]`: Installs the dependencies to run the feature
54
+
edge reconstruction algorithm
55
+
56
+
Additionally, these other two optional imports are defined:
57
+
*`segment-geospatial[all]`: Installs the dependencies to run all of the SAMGeo models
58
+
*`segment-geospatial[extra]`: Installs the dependencies to run all of the SAMGeo models and other utilities to run the examples like Jupyter notebook support, `leafmap`, etc.
59
+
60
+
Simply running the following should install the dependencies for each use case:
46
61
47
62
```bash
48
-
pip install segment-geospatial
63
+
pip install segment-geospatial[samgeo2] # Or any other choice of the above
49
64
```
65
+
To see more in detail what packages come with each choice, please refer to `pyproject.toml`.
0 commit comments