Computer Graphics Course (COMP130018.01) Project-3 of Fudan University.
——使用百度飞桨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重建和测评