Skip to content

Commit

Permalink
With a functional dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
kauevestena committed Jan 19, 2024
1 parent 38663b5 commit a260fa5
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 38 deletions.
18 changes: 18 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM pytorch/pytorch:latest

# prevent apt from hanging
ARG DEBIAN_FRONTEND=noninteractive

ENV HOME /workspace

WORKDIR $HOME

# dependency: lang-segment-anything
RUN apt update
RUN apt install -y git
RUN apt install libgl1-mesa-glx -y
RUN apt install libglib2.0-0 -y
RUN git clone https://github.com/kauevestena/lang-segment-anything.git
WORKDIR $HOME/lang-segment-anything
RUN pip install -e .
RUN python running_test.py
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,21 @@ conda env create -f environment.yml
conda activate lsa
```

#### Docker Installation

first buid the image:

```
docker build --tag 'lang-segment-anything' .
```

then run it (on windows use powershell):

```
docker run --name running-langsam --mount type=bind,source=D:\data,target=/workspace/data --gpus all -it 'lang-segment-anything'
```

replace `D:\data` with the desired path for mounting a shared folder. If you wanna more than one running container, you can remove `--name running_deep_pavements`. Include `--detach` to run in background and `--rm` to remove on exit

### Usage

Expand Down
36 changes: 0 additions & 36 deletions SETUP.md

This file was deleted.

2 changes: 0 additions & 2 deletions requirements.txt

This file was deleted.

0 comments on commit a260fa5

Please sign in to comment.