Skip to content

Commit

Permalink
Update GPU installation instructions (#239)
Browse files Browse the repository at this point in the history
* Update GPU installation instructions

* Update jupyter server command
  • Loading branch information
giswqs authored Jan 18, 2024
1 parent 54dfb60 commit b1626e9
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ LABEL repo="https://github.com/opengeos/segment-geospatial"

RUN mamba install -c conda-forge leafmap localtileserver segment-geospatial -y && \
pip install -U segment-geospatial jupyter-server-proxy && \
jupyter serverextension enable --sys-prefix jupyter_server_proxy && \
jupyter server extension enable --sys-prefix jupyter_server_proxy && \
fix-permissions "${CONDA_DIR}" && \
fix-permissions "/home/${NB_USER}"

Expand Down
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,19 @@ conda install -c conda-forge mamba
mamba install -c conda-forge segment-geospatial
```

If your system has a GPU, but the above commands do not install the GPU version of pytorch, you can force the installation of the GPU version of pytorch using the following command:

```bash
mamba install -c conda-forge segment-geospatial "pytorch=*=cuda*"
```

````bash

Samgeo-geospatial has some optional dependencies that are not included in the default conda environment. To install these dependencies, run the following command:

```bash
mamba install -c conda-forge groundingdino-py segment-anything-fast
```
````
As of July 9th, 2023 Linux systems have also required that `libgl1` be installed for segment-geospatial to work. The following command will install that dependency
Expand Down
6 changes: 6 additions & 0 deletions docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ conda install -c conda-forge mamba
mamba install -c conda-forge segment-geospatial
```

If your system has a GPU, but the above commands do not install the GPU version of pytorch, you can force the installation of the GPU version of pytorch using the following command:

```bash
mamba install -c conda-forge segment-geospatial "pytorch=*=cuda*"
```

Samgeo-geospatial has some optional dependencies that are not included in the default conda environment. To install these dependencies, run the following command:

```bash
Expand Down

0 comments on commit b1626e9

Please sign in to comment.