3dgs

%cd /content
!git clone --recursive https://github.com/Anonytt/gs.git
!pip install -q plyfile

%cd /content/gs
!pip install -q /content/gs/submodules/diff-gaussian-rasterization
!pip install -q /content/gs/submodules/simple-knn

#!wget https://huggingface.co/camenduru/gaussian-splatting/resolve/main/tandt_db.zip
#!unzip tandt_db.zip

!python train.py -s /content/gs/data

# !wget https://huggingface.co/camenduru/gaussian-splatting/resolve/main/GaussianViewTest.zip
# !unzip GaussianViewTest.zip
# !python render.py -m /content/gaussian-splatting/GaussianViewTest/model
# !ffmpeg -framerate 3 -i /content/gaussian-splatting/GaussianViewTest/model/train/ours_30000/renders/%05d.png -vf "pad=ceil(iw/2)*2:ceil(ih/2)*2" -c:v libx264 -r 3 -pix_fmt yuv420p /content/renders.mp4
# !ffmpeg -framerate 3 -i /content/gaussian-splatting/GaussianViewTest/model/train/ours_30000/gt/%05d.png -vf "pad=ceil(iw/2)*2:ceil(ih/2)*2" -c:v libx264 -r 3 -pix_fmt yuv420p /content/gt.mp4 -y

 

posted @ 2024-06-19 15:04  Anonytt  阅读(23)  评论(0编辑  收藏  举报