Skip to content

Commit

Permalink
Edit DOCKER.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mynameismaxz committed Oct 10, 2019
1 parent 0180eff commit 13fb9f7
Showing 1 changed file with 1 addition and 46 deletions.
47 changes: 1 addition & 46 deletions DOCKER.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,49 +37,4 @@ So when you building this image. The image will not successfully because we want
$ docker run --name mmaction --gpus all -it -v /path/to/your/data:/root mmaction
```

When you run this command. You'll see the container that have opencv 4.1.0 (with CUDA). ***Don't forget to use GPUs attach to the container*** You can follow my instruction to install the [mmaction](https://github.com/open-mmlab/mmaction)

So the step that we could do follow by: ```clone mmaction -> install decord -> dense_flow -> mmcv -> mmaction```

### 1.) clone this repository into container
```
# inside container
# clone this repository
$ git clone --recursive https://github.com/open-mmlab/mmaction.git
```

### 2.) install decord
```
$ cd third_party/decord \
&& mkdir build \
&& cd build \
&& cmake .. -DUSE_CUDA=0 \
&& make \
&& cd ../python \
&& python setup.py install --user
```

### 3.) install dense_flow
```
$ cd third_party/dense_flow \
&& mkdir build \
&& cd build \
&& OpenCV_DIR=/opencv-4.1.0/build cmake .. \
&& make -j
```
### 4.) install mmcv
```
$ git clone --recursive https://github.com/open-mmlab/mmcv.git \
&& cd mmcv \
&& pip install -e .
```

### 5.) install mmaction
```
$ cd mmaction \
&& chmod 777 compile.sh \
&& ./compile.sh \
&& python3 setup.py develop
```

When finished installation, Please follow step [GETTING_STARTED.md](https://github.com/open-mmlab/mmaction/blob/master/GETTING_STARTED.md) to use mmaction.
When run the container, Please follow step [GETTING_STARTED.md](https://github.com/open-mmlab/mmaction/blob/master/GETTING_STARTED.md) to use mmaction.

0 comments on commit 13fb9f7

Please sign in to comment.