Skip to content

Commit

Permalink
update docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
oneLOH committed May 17, 2024
1 parent c651a4c commit d278498
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
run:
shell: bash -l {0}
container:
image: openxrlab/xrsfm_runtime:ubuntu1804_x64_cu116
image: openxrlab/xrsfm_runtime:ubuntu20.04_cu12.1.0
credentials:
username: ${{secrets.DOCKERHUB_USERNAME}}
password: ${{secrets.DOCKERHUB_PWD}}
Expand Down
2 changes: 1 addition & 1 deletion docs/en/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ Run it with
```shell
docker run --name xrsfm-container --gpus all --network=host -it xrsfm
```
```

Compile xrsfm

```shell
git clone https://github.com/openxrlab/xrsfm.git
cd xrsfm && cmake -B build && cmake --build build -j4
Expand Down
15 changes: 7 additions & 8 deletions docs/zh/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

## 从源码安装 (Linux)

版本要求
版本要求:
+ C++17
+ GCC 7.5+
+ CMake 3.16+
Expand All @@ -31,35 +31,34 @@
libopencv-dev
```

如果cmake版本小于3.16,按照以下步骤更新
如果cmake版本小于3.16,按照以下步骤更新:
```shell
wget https://cmake.org/files/v3.21/cmake-3.21.0-linux-x86_64.tar.gz
tar -xf cmake-3.21.0-linux-x86_64.tar.gz
cp -r cmake-3.21.0-linux-x86_64 /usr/share/
ln -sf /usr/share/cmake-3.21.0-linux-x86_64/bin/cmake /usr/bin/cmake
```

编译 XRSfM
编译 XRSfM:
```shell
git clone https://github.com/openxrlab/xrsfm.git
cd xrsfm && cmake -B build && cmake --build build -j4
```

### Dockerfile

我们提供了[Dockerfile](../../Dockerfile)文件来方便环境配置.使用前请确认[docker version](https://docs.docker.com/engine/install/) >=19.03,并且在daemon.json文件中已经设置`"default-runtime": "nvidia"` .
我们提供了[Dockerfile](../../Dockerfile)文件来方便环境配置。
使用前请确认[docker version](https://docs.docker.com/engine/install/) >=19.03,并且在daemon.json文件中已经设置`"default-runtime": "nvidia"`

```shell
docker build -t xrsfm .
```

Run it with

启动容器:
```shell
docker run --name xrsfm-container --gpus all --network=host -it xrsfm
```

编译 XRSfM
编译 XRSfM:
```shell
git clone https://github.com/openxrlab/xrsfm.git
cd xrsfm && cmake -B build && cmake --build build -j4
Expand Down

0 comments on commit d278498

Please sign in to comment.