-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
51 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
FROM nvcr.io/nvidia/pytorch:21.10-py3 | ||
|
||
ENV DEBIAN_FRONTEND noninteractive | ||
|
||
RUN rm -rf /var/lib/apt/lists/* && rm -rf /etc/apt/sources.list.d/*\ | ||
/etc/apt/sources.list.d/cuda.list \ | ||
/etc/apt/sources.list.d/nvidia-ml.list && \ | ||
sed -i s@/archive.ubuntu.com/@/mirrors.ustc.edu.cn/@g /etc/apt/sources.list && \ | ||
apt-get update && apt-get install -y ffmpeg libsm6 libxext6 git ninja-build libglib2.0-0 libsm6 libxrender-dev libxext6 \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# Install LaneDet | ||
RUN conda clean --all | ||
RUN git clone https://github.com/turoad/lanedet.git /lanedet | ||
WORKDIR /lanedet | ||
RUN pip install --no-cache-dir -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/ && \ | ||
pip install --no-cache-dir -e . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Building a LaneDet container | ||
|
||
### Install Docker and NVIDIA Container Toolkit | ||
|
||
https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/install-guide.html | ||
|
||
### Build Container | ||
|
||
> | ||
```Shell | ||
# From root of LaneDet repo | ||
cd $LANEDET_ROOT | ||
|
||
# Build: | ||
docker build -f docker/Dockerfile -t lanedet:latest . | ||
|
||
# Run: | ||
docker run --gpus all -it \ | ||
--shm-size=8gb \ | ||
--name=lanedet --ipc=host --net=host lanedet:latest | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters