Skip to content

PJ with NeRF, Computer Graphics Course Project-3 of Fudan University.

License

Notifications You must be signed in to change notification settings

jeekzhang/PJNeRF

Repository files navigation

PJ with NeRF(Graphics-project)

Computer Graphics Course (COMP130018.01) Project-3 of Fudan University.

Part1--基于JNeRF的实拍物重建

环境搭建

——使用百度飞桨AI平台搭建环境(GPU:16G V100)

pip install -r requirements.txt -i https://pypi.mirrors.ustc.edu.cn/simple/

运行代码(训练、测试、生成视频一体化)

python run_net.py --config-file ./projects/ngp/configs/ngp_bear.py

数据处理

新建文件夹存放.mp4视频文件(以/data/chick.mp4为例,文件太大未上传)
将视频切分为图片

python .\scripts\colmap2nerf.py --video_in .\data\chick.mp4 --video_fps 2 --run_colmap --aabb_scale 16 --overwrite

挑选好图片后生成位姿信息

cd data
python ..\scripts\colmap2nerf.py --colmap_matcher exhaustive --run_colmap --aabb_scale 16 --overwrite

在transforms.json文件中将会有相机信息和所有图片位姿信息,可自行将数据划分为训练集,验证集和测试集用以3D重建和测评

参考代码仓库

Jittor/JNeRF(github.com)

About

PJ with NeRF, Computer Graphics Course Project-3 of Fudan University.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published