Open3D 0.13.0 build (Windows11 + CUDA 11.4 + Visual Studio 2019)

6540 단어 Open3Dtech

Introduction


Notes on building Open3D 0.13.0.

Reference


https://github.com/isl-org/Open3D/blob/v0.13.0/docs/compilation.rst#windows

Envirionment


Hardware

  • CPU : Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz 2.21 GHz
  • GPU : NVIDIA GeForce GTX 1060 with Max-Q Design
  • Software

  • OS : Windows 11 Insider Preview (Version 21H2, OS Build 22000.176)
  • Driver : NVIDIA Graphics Driver 471.96
  • CUDA : 11.4.1-1 (cuda_11.4.1_471.41_win10.exe)
  • cuDNN : 8.2.4.15 (cudnn-11.4-windows-x64-v8.2.4.15.zip)
  • Python : 3.8.10
  • CMake : 3.21.1
  • Visual Studio 2019 16.11.2
  • Instructions


    https://github.com/isl-org/Open3D/blob/v0.13.0/docs/compilation.rst

    1. Enable UTF-8 Unicode


    When I tried to build it in my environment, it failed with errors C2220 and C4819.
    I was able to build it with UTF-8 Unicode enabled by referring to the following site.
    https://github.com/dotnet/aspnetcore/issues/24908

    1-1. Win+R and type "control"



    1-2. Click "Change date, time, or number format" in the Control Panel



    1-3. Select the "Administrative" tab and Click the "Change system locale" button



    1-4. Check the "Beta: Use Unicode UTF-8 ..." box



    2. Install CUDA


    Download the installer from the following site and run it.
    https://developer.nvidia.com/cuda-downloads

    3. Install cuDNN


    Download the ZIP file from the following site and extract it to the directory where you installed CUDA.
    https://developer.nvidia.com/rdp/cudnn-download

    4. Install Python


    Download the installer from the following site and run it.
    https://www.python.org/downloads/windows/

    6. Clone and Checkout


    git clone --recursive https://github.com/isl-org/Open3D.git
    cd Open3D
    git checkout v0.13.0
    git submodule update --init --recursive
    

    6. Configure


    mkdir build
    cd build
    cmake .. -G "Visual Studio 16 2019" -A x64 -DBUILD_CUDA_MODULE=ON -DBUILD_COMMON_CUDA_ARCHS=ON -DBUILD_LIBREALSENSE=ON -DBUILD_AZURE_KINECT=ON -DCMAKE_INSTALL_PREFIX="<open3d_install_directory>"
    

    7. Build


    cmake --build . --config Release --target ALL_BUILD
    

    8. Install


    cmake --build . --config Release --target INSTALL
    
    After the installation is complete, the directory will be arranged as follows.
    <open3d_install_directory>
    └── bin
    └── CMake
    └── include   
    └── lib
    
    <open3d_build_directory>
    └── bin
        └── examples
             └── Release
                 ├── AzureKinectMKVReader.exe
                 ├── AzureKinectRecord.exe
                 ├── :
                 ├── VoxelHashingGUI.exe
                 └── Voxelization.exe
    

    9. Run the example program


    Open3D.exe



    VoxelHashingGUI.exe

  • Download dataset and extract it.
  • https://drive.google.com/drive/u/0/folders/0B6qjzcYetERgNGdPQUVMTFZXV3M?resourcekey=0-QtQDUkZg4CtVeBu-FsuwPw
  • Run
  • .\VoxelHashingGUI.exe <dataset path> --intrinsics_json <intrinsics file path> --device CUDA:0
    
    The intrinsics file is located in the "/examples/python/reconstruction_system/config/stanford".
    https://github.com/isl-org/Open3D/tree/master/examples/python/reconstruction_system/config/stanford

    좋은 웹페이지 즐겨찾기