# NeRF
手机拍摄构建物体数据集,使用NeRF进行三维重建
## 示例图片
<p align="center">
<img src="resources/1.jpg" height="500"/>
</p>
## 3D重建结果
<p align="center">
<img src="resources/COLMAP_test_spiral_001000_rgb.gif" height="500" />
</p>
## 训练的准备工作
### 自建数据集
拍摄的物体图片压缩包 https://pan.baidu.com/s/13DWlJgmLqqrlGUWiJMqRYw?pwd=kp7b
注意解压后所有图片放在 "./data/COLMAP_test/images/" 路径下
### 生成位姿和点云
```
python imgs2poses.py "./data/COLMAP_test"
```
### Install requirements:
```
pip install -r requirements.txt
```
### 更改配置文件
打开 ./configs/COLMAP_test.txt 进行更改, 由于使用的是自建数据集,因此需将`dataset_type` 设置为 `llff`.
## 训练
```
python run_nerf.py --config configs/COLMAP_test.txt
```
It will create an experiment directory in `./logs`, and store the checkpoints and rendering examples there.
## 测试
Once you have the experiment directory (downloaded or trained on your own) in `./logs`,
- to render a video:
```
python run_nerf.py --config configs/COLMAP_test.txt --render_only
```
The video would be stored in the experiment directory.
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
三维重建_使用NeRF对手机拍摄的物体进行三维重建_优质项目分享.zip (31个子文件)
三维重建_使用NeRF对手机拍摄的物体进行三维重建_优质项目分享
run_nerf_helpers.py 16KB
loss.py 4KB
resources
1.jpg 2.64MB
COLMAP_test_spiral_001000_rgb.gif 2.69MB
downsampling.py 871B
configs
COLMAP_test.txt 324B
utils
__init__.py 0B
read_write_model.py 21KB
generate_renderpath.py 2KB
visualization.py 2KB
generate_html.py 10KB
__pycache__
__init__.cpython-310.pyc 133B
generate_renderpath.cpython-310.pyc 2KB
llff
poses
__init__.py 0B
pose_utils.py 9KB
colmap_read_model.py 13KB
colmap_wrapper.py 3KB
load_dtu.py 2KB
run_nerf.py 50KB
data.py 372B
load_llff.py 15KB
requirements.txt 120B
README.md 1KB
colmapUtils
__init__.py 0B
read_write_model.py 21KB
read_write_dense.py 5KB
read_write_fused_vis.py 5KB
__pycache__
read_write_model.cpython-310.pyc 14KB
__init__.cpython-310.pyc 139B
read_write_dense.cpython-310.pyc 3KB
imgs2poses.py 764B
共 31 条
- 1
资源评论
- mnhawh72024-04-04总算找到了想要的资源,搞定遇到的大问题,赞赞赞!
- m0_677844582024-02-16资源不错,很实用,内容全面,介绍详细,很好用,谢谢分享。
极智视界
- 粉丝: 2w+
- 资源: 1425
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功