Skip to content

Commit

Permalink
Update docker
Browse files Browse the repository at this point in the history
  • Loading branch information
wang-ps committed Mar 22, 2019
1 parent ac77d59 commit f7f1090
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ O-CNN is built upon the [Caffe](https://github.com/BVLC/caffe) framework and it
After the building, you will get the executable files which is useful for conducting the experiments:

- [`virtualscanner`](https://github.com/wang-ps/O-CNN/tree/master/virtual_scanner) - used to convert obj/off files to points files
- [`octree`](#octree) - used to convert point files to octree files
<!-- - [`octree2ply`](#octree-2-ply) - used to convert octree files to ply files -->
- [`octree`](#octree) - used to convert point files to octree files <!-- - [`octree2ply`](#octree-2-ply) - used to convert octree files to ply files -->
- [`convert_octree_data`](#convert-octree-data) - used to convert octree files to lmdb files
- `caffe` - executable for training / evaluating models
- `feature_pooling` - pools features and outputs them to an lmdb
Expand All @@ -59,13 +58,13 @@ After the building, you will get the executable files which is useful for conduc
<!-- To build the octree, the bounding sphere of the object is needed to be computed. The initial version of our code is built upon the bound sphere library from this [link](https://people.inf.ethz.ch/gaertner/subdir/software/miniball.html). However, we remove it from our code due to the licence issue. To reproduce the results in our paper, it is highly recommended to download the [bound sphere library](https://people.inf.ethz.ch/gaertner/subdir/software/miniball.html). -->


### 1.2 &nbsp; Docker Setup
### 1.2 &nbsp; Docker Setup (For Ubuntu only)
A docker build file is provided to automatically build your environments so you don't have to worry about project dependencies. To get your environment up and running, execute the following:

```
cd docker
docker build -t ocnn .
docker run --name ocnn -it ocnn /bin/bash
docker build --network=host --tag=ocnn .
docker run --runtime=nvidia --network=host --name=ocnn -it ocnn /bin/bash
```

You will now find yourself in a container environment where you can automatically prepare datasets and train/test an o-cnn.
Expand Down Expand Up @@ -126,7 +125,7 @@ Example:
convert_octree_data D:/octrees/ D:/octrees/list.txt D:/octrees_lmdb
```

### 2.2 &nbsp; Automated Dataset Setup
### 2.2 &nbsp; Automated Dataset Setup (For Ubuntu only)
For the dataset `ModelNet10` and `ModelNet40`, we provide some scripts to automatically prepare the datasets. The code is contained in the python folder. (We will update the prepare_dataset.py to support other datasets such as ShapeNet55.)
```
Usage:
Expand Down
4 changes: 2 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ WORKDIR $WORKSPACE_BIN
ARG OCNN_ROOT=$WORKSPACE/ocnn
WORKDIR $OCNN_ROOT

ARG OCNN_COMMIT=origin/pre-release
ARG OCNN_COMMIT=origin/master
RUN git clone https://github.com/Microsoft/O-CNN.git . && git reset --hard $OCNN_COMMIT
RUN cd ocnn/octree && mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Release -DOUTPUT_DIRECTORY=$WORKSPACE_BIN .. && \
make && cd ../ && rm -rf build
Expand Down Expand Up @@ -74,7 +74,7 @@ RUN cd ocnn/octree && pip install . && cd ../caffe && pip install .
ARG OCNN_TOOLS_ROOT=$WORKSPACE/ocnn_tools
WORKDIR $OCNN_TOOLS_ROOT

ARG OCNN_TOOLS_COMMIT=origin/pre-release
ARG OCNN_TOOLS_COMMIT=origin/master
RUN git clone https://github.com/wang-ps/O-CNN.git . && git reset --hard $OCNN_TOOLS_COMMIT
RUN cd virtual_scanner && mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Release .. && make && \
cp virtualscanner $WORKSPACE_BIN && cd ../ && rm -rf build && \
Expand Down
1 change: 1 addition & 0 deletions ocnn/octree/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ if(NOT src_rply)
endif()
include_directories("${PROJECT_SOURCE_DIR}/external/rply-1.1.4")
add_library(rply ${src_rply})
set_target_properties(rply PROPERTIES LINKER_LANGUAGE CXX)

# files
file(GLOB src_octree_lib
Expand Down

0 comments on commit f7f1090

Please sign in to comment.