Skip to content
Branch: master
Find file History
ppwwyyxx and facebook-github-bot update docs
Summary: Pull Request resolved: fairinternal/detectron2#351

Differential Revision: D19215444

Pulled By: ppwwyyxx

fbshipit-source-id: f4d9f0376e24be57fdf9ae31886b911b314c4e6d
Latest commit c03e89b Dec 23, 2019


Type Name Latest commit message Commit time
Failed to load latest commit information.
Dockerfile update docs Dec 23, 2019
Dockerfile-circleci Run GPU CI with docker Dec 14, 2019 dockerfile: install python packages with non-root Dec 13, 2019
docker-compose.yml dockerfile: install python packages with non-root Dec 13, 2019

Run the container

Change to the docker directory of this repository:

cd docker
USER_ID=$UID docker-compose run detectron2

Using a persistent cache directory

Prevents models to be re-downloaded on every run, by storing them in a cache directory.

docker-compose run --volume=/path/to/cache:/tmp:rw detectron2

Rebuild the container

Rebuild the container by USER_ID=$UID docker-compose build detectron2. This is only necessary when Dockerfile has been changed. The initial build is done automatically.

Install new dependencies

Add the following to Dockerfile to make persistent changes.

RUN sudo apt-get update && sudo apt-get install -y \
  nano vim emacs
RUN pip install --user pandas

Or run them in the container to make temporary changes.

You can’t perform that action at this time.