diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 27a5d7d..fa169e7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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}} diff --git a/docs/en/installation.md b/docs/en/installation.md index 467d646..6ddf61f 100644 --- a/docs/en/installation.md +++ b/docs/en/installation.md @@ -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 diff --git a/docs/zh/installation.md b/docs/zh/installation.md index 1af0998..4f6ae74 100644 --- a/docs/zh/installation.md +++ b/docs/zh/installation.md @@ -4,7 +4,7 @@ ## 从源码安装 (Linux) -版本要求 +版本要求: + C++17 + GCC 7.5+ + CMake 3.16+ @@ -31,7 +31,7 @@ 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 @@ -39,7 +39,7 @@ 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 @@ -47,19 +47,18 @@ 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