instant ngp复现

instant ngp简单复现demo

github地址:GitHub - NVlabs/instant-ngp: Instant neural graphics primitives: lightning fast NeRF and more

配置要求:

在这里插入图片描述

我用的win11和visual studio 2022目前没发现什么问题

`git clone --recursive https://github.com/nvlabs/instant-ngp
cd instant-ngp`

因为有很多子模块,下载速度会比较慢,而且有的子模块会不能下载。

`Cloning into 'E:/instant-ngp/dependencies/tinylogger'...
fatal: unable to access 'https://github.com/Tom94/tinylogger/': Failed to connect to github.com port 443 after 21104 ms: Timed out
fatal: clone of 'https://github.com/Tom94/tinylogger' into submodule path 'E:/instant-ngp/dependencies/tinylogger' failed
Failed to clone 'dependencies/tinylogger'. Retry scheduled`
Cloning into 'E:/instant-ngp/dependencies/eigen'...
fatal: unable to access 'https://github.com/Tom94/eigen/': Send failure: Connection was reset
fatal: clone of 'https://github.com/Tom94/eigen' into submodule path 'E:/instant-ngp/dependencies/eigen' failed
Failed to clone 'dependencies/eigen'. Retry scheduled

解决办法:给子模块的链接单独设置了代理

#git config <option> <value>
git config submodule.dependencies/eigen.url https://ghproxy.com/https://github.com/Tom94/eigen
git submodule update --init --recursive

然后就可以编译了。

cmake . -B build
cmake --build build --config RelWithDebInfo -j

编译成功后出现可执行文件build/testbed

运行小狐狸demo

instant-ngp> .\build\testbed --scene data\nerf\fox

在这里插入图片描述
下载zip后解压到对应路径不可行。因为git clone 的包包含修改历史,下载的没有,只有最终状态。检查版本或者校验和的时候可能会没结果。或许可以单独git clone再移动。

  • 2
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值