欢迎来到尧图网

客户服务 关于我们

您的位置:首页 > 房产 > 家装 > 【Code】Street-Gaussian代码复现笔记

【Code】Street-Gaussian代码复现笔记

2024/10/26 3:22:29 来源:https://blog.csdn.net/weixin_62012485/article/details/140784408  浏览:    关键词:【Code】Street-Gaussian代码复现笔记

文章目录

  • 1. Environment
    • Bug 1
  • 2. Training
    • Bug 2
    • Bug 3

1. Environment

Follow the original instructions,

conda create --name street-gaussians-ns -y python=3.8
conda activate street-gaussians-ns
pip install --upgrade pippip install torch==2.1.2+cu118 torchvision==0.16.2+cu118 --extra-index-url https://download.pytorch.org/whl/cu118

Bug 1

and when running this line:

conda install -c "nvidia/label/cuda-11.8.0" cuda-toolkit

Some error messages:

CondaVerificationError: The package for libcufft-dev located at /root/miniconda3/pkgs/libcufft-dev-10.9.0.58-0
appears to be corrupted. The path 'include/cufftw.h'
specified in the package manifest cannot be found.SafetyError: The package for libcufft-dev located at /root/miniconda3/pkgs/libcufft-dev-10.9.0.58-0
appears to be corrupted. The path 'lib/libcufft_static_nocallback.a'
has an incorrect size.reported size: 308031378 bytesactual size: 299421696 bytesClobberError: This transaction has incompatible packages due to a shared path.packages: nvidia/label/cuda-11.8.0/linux-64::libcusparse-11.7.5.86-0, nvidia/label/cuda-11.8.0/linux-64::libcusparse-dev-11.7.5.86-0path: 'lib/libcusparse.so.11'

Solutions: Use a different mirror source

conda config --add channels defaults
conda install -c defaults cudatoolkit=11.8

Then follow:

pip install ninja git+https://github.com/NVlabs/tiny-cuda-nn/#subdirectory=bindings/torch
pip install nerfstudio==1.0.0git clone https://github.com/LightwheelAI/street-gaussians-ns.git --recursivecd street-gaussians-nspip install -e .pip install dependencies/nvdiffrast/# Install data processsing tools
cd dependencies/detectron2
pip install -e .cd dependencies/Mask2Former
pip install -r requirements.txt
cd mask2former/modeling/pixel_decoder/ops
sh make.sh

2. Training

We directly use the preprocessed dataset. When training the model

bash scripts/shells/train.sh /root/autodl-tmp/8398516118967750070_3958_000_3978_000 0

Bug 2

  File "/root/autodl-fs/Projects/street-gaussians-ns/street_gaussians_ns/data/sgn_dataparser.py", line 478, in _load_3D_pointsassert points_filepath.exists()
AssertionError

This is because we don’t have the points3D_withlidar.txt file

在这里插入图片描述

Solution1:

Generate with scripts/shells/points_cloud_generate.sh

Solution2:

Change to --init_points_filename points3D.bin

Bug 3

project_gaussians() missing 1 required positional argument: 'tile_bounds'

Solution:

Use gsplat with version >=0.1.9 : pip install gsplat==0.1.9

Final visualization:

在这里插入图片描述
在这里插入图片描述
完结撒花★,°:.☆( ̄▽ ̄)/$:.°★

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com