码农知识堂 - 1000bd
  •   Python
  •   PHP
  •   JS/TS
  •   JAVA
  •   C/C++
  •   C#
  •   GO
  •   Kotlin
  •   Swift
  • Ubuntu 20.04 下DeepSDF环境配置笔记


    根据官方 github 教程: https://github.com/facebookresearch/DeepSDF

    下面详细讲解下列Dependencies的配置:

    CLI11

    git clone https://github.com/CLIUtils/CLI11.git

    修改DeepSDF/CMakeLists.txt添加:

    # find_package(CLI11 CONFIG REQUIRED)

    set(CLI11_DIR "/home/xxx//libraries/CLI11/")

    include_directories(${CLI11_DIR}/include)

    注意需要修改当前CLI11的clone目录。

    Eigen3

    sudo apt install libeigen3-dev

    Nanoflann

    git clone https://github.com/jlblancoc/nanoflann.git

    修改路径

    mkdir -p include/nanoflann

    mv include/nanoflann.hpp include/nanoflann/

    修改DeepSDF/CMakeLists.txt

    # find_package(nanoflann REQUIRED)

    set(nanoflann_DIR "/home/xxx/workspace/object/xxx/DeepSDF/libraries/nanoflann)

    include_directories(${nanoflann_DIR}/include)

    Pangolin

    • 注意需要 0.6 版本 Pangolin

    重点: 若在没有显示器的情况下使用远程服务器,需要考虑 headless mode 做 preprocessing.

    git clone https://github.com/stevenlovegrove/Pangolin.git

    git checkout v0.6

    根据 DeepSDF 介绍

    The preprocessing script requires an OpenGL context, and to acquire one it will open a (small) window for each shape using Pangolin. If Pangolin has been compiled with EGL support, you can use the "headless" rendering mode to avoid the windows stealing focus. Pangolin's headless mode can be enabled by setting the PANGOLIN_WINDOW_URI environment variable as follows:

    调查如何使用 headless 编译 Pangolin

    • Replace GLX with EGL for X11 by christian-rauch · Pull Request #389 · stevenlovegrove/Pangolin · GitHub

    注意安装下列 Dependencies

    Wayland

    * pkg-config: sudo apt install pkg-config

    * Wayland and EGL:sudo apt install libegl1-mesa-dev libwayland-dev libxkbcommon-dev wayland-protocols

    EGL 安装完毕似乎就自动检查了

    -- Checking for module 'wayland-egl'

    --   Found wayland-egl, version 18.1.0

    DeepSDF/CMakeLists.txt中修改无需要的 CLI, Nano Link libraries,将出现的下列两项删除:

    nanoflann::nanoflann

    CLI11::CLI11

    --

    开始编译 DeepSDF

    mkdir build

    cd build

    cmake ..

    make -j

    编译成功。

    --

    开始运行预处理

    为了开启 headless mode,首先在控制台输入:

    export PANGOLIN_WINDOW_URI=headless://

    接着正常执行preprocessing

    python preprocess_data.py --data_dir data --source /home/xxx/ShapeNetCore.v2/ --name ShapeNetV2 --split examples/splits/sv2_chairs_test.json --skip

    成功了!!!

  • 相关阅读:
    Java各种非空判断常用API
    不用任何比较运算符找出两个整数中的较大的值
    JVM 参数及调优
    复习计算机网络——第二章记录(1)
    tp6使用rabb
    Flowable工作流之查询历史流程信息
    PgSQL技术内幕-Bitmap Index Scan
    Python基础语法(2)
    python动态添加属性
    零基础学前端(一) 前端开发环境:vscode、chrome 完成最基础的代码编写和运行
  • 原文地址:https://blog.csdn.net/Crazydogg/article/details/128002913
  • 最新文章
  • 攻防演习之三天拿下官网站群
    数据安全治理学习——前期安全规划和安全管理体系建设
    企业安全 | 企业内一次钓鱼演练准备过程
    内网渗透测试 | Kerberos协议及其部分攻击手法
    0day的产生 | 不懂代码的"代码审计"
    安装scrcpy-client模块av模块异常,环境问题解决方案
    leetcode hot100【LeetCode 279. 完全平方数】java实现
    OpenWrt下安装Mosquitto
    AnatoMask论文汇总
    【AI日记】24.11.01 LangChain、openai api和github copilot
  • 热门文章
  • 十款代码表白小特效 一个比一个浪漫 赶紧收藏起来吧!!!
    奉劝各位学弟学妹们,该打造你的技术影响力了!
    五年了,我在 CSDN 的两个一百万。
    Java俄罗斯方块,老程序员花了一个周末,连接中学年代!
    面试官都震惊,你这网络基础可以啊!
    你真的会用百度吗?我不信 — 那些不为人知的搜索引擎语法
    心情不好的时候,用 Python 画棵樱花树送给自己吧
    通宵一晚做出来的一款类似CS的第一人称射击游戏Demo!原来做游戏也不是很难,连憨憨学妹都学会了!
    13 万字 C 语言从入门到精通保姆级教程2021 年版
    10行代码集2000张美女图,Python爬虫120例,再上征途
Copyright © 2022 侵权请联系2656653265@qq.com    京ICP备2022015340号-1
正则表达式工具 cron表达式工具 密码生成工具

京公网安备 11010502049817号