Getting Started With 3D Gaussian Splatting for Windows(submodules error, create env error)

2024. 11. 8. 02:18·기타

Getting Started With 3D Gaussian Splatting for Windows

References

https://www.youtube.com/watch?v=UXtuigy_wYc

https://github.com/jonstephens85/gaussian-splatting-Windows

 

GitHub - jonstephens85/gaussian-splatting-Windows: 3D Gaussian Splatting for Real-Time Radiance Field Rendering - Detailed Windo

3D Gaussian Splatting for Real-Time Radiance Field Rendering - Detailed Windows Install & Usage Instructions - jonstephens85/gaussian-splatting-Windows

github.com

 

1. Install Dependencies/Requirements

    • CUDA 11.8
    • Visual Studio 2019
      • 3DGS has an issue with Visual Studio 2022 !
      • Install VS 2019
      • https://learn.microsoft.com/en-us/visualstudio/releases/2019/history#release-dates-and-build-numbers
  • COLMAP
  • FFMEG(It's for convert a video to images)
    https://www.youtube.com/watch?v=JR36oH35Fgg
  • ImageMagik(not necessary. It's for convert a video to images)

COLMAP install on Windows
https://demuc.de/colmap/

 

COLMAP - Structure-from-Motion and Multi-View Stereo

COLMAP Structure-from-Motion and Multi-View Stereo COLMAP is a general-purpose, end-to-end image-based 3D reconstruction pipeline (i.e., Structure-from-Motion (SfM) and Multi-View Stereo (MVS)) with a graphical and command-line interface. It offers a wide

demuc.de

 

FFMPEG install on Windows

https://www.youtube.com/watch?v=JR36oH35Fgg

2. Run anaconda3 prompt

3. Cloning the repository

# SSH
git clone git@github.com:graphdeco-inria/gaussian-splatting.git --recursive

# HTTPS
git clone <https://github.com/graphdeco-inria/gaussian-splatting> --recursive

4. Setting up the optimizer

1. go into the cloned repo

cd gaussian-splatting

2. type the followings

SET DISTUTILS_USE_SDK=1 # Windows only
conda env create --file environment.yml
conda activate gaussian_splatting

if failed to create conda env, follow the steps below "Conda env create error"

5. Preparing images for the optimizer

Convert a video to images(FFMEPG installed)

cd (root폴더)\data\tube\input
ffmpeg -i (root폴더)\data\tube\tube_input.mp4 -qscale:v 1 -qmin 1 -vf fps=10 %04d.jpg
  1. Create data folder in the repo.
  2. Create input folder and put images into it.(playroom/input, in my case)
  3. Run the following command at gaussian-splatting
(gaussian_splatting) C:\\Users\\ghdth\\gaussian-splatting> python convert.py -s data/playroom

Results are like below

6. Run the optimizer

python train.py -s <path to COLMAP or NeRF Synthetic dataset>

For example,

 

python train.py -s data/playroom

 

Errors

Conda env create error

 

...
× Encountered error while trying to install package.
╰─> simple_knn
...

 

Follow the steps below

# init conda environment
conda create --name gaussian_splatting -y python=3.8
conda activate gaussian_splatting
pip install --upgrade pip
# or it would be like this C:\Users\ghdth\miniconda3\envs\gaussian_splatting\python.exe -m pip install --upgrade pip

# install PyTorch and cuda-toolkit
pip install torch==2.1.2+cu118 torchvision==0.16.2+cu118 --extra-index-url https://download.pytorch.org/whl/cu118
conda install -c "nvidia/label/cuda-11.8.0" cuda-toolkit
conda install -c conda-forge vs2019_win-64

# clone the source
git clone <https://github.com/graphdeco-inria/gaussian-splatting> --recursive
cd gaussian-splatting

# install dependencies
pip install plyfile tqdm ninja

# install submodules
pip install submodules/diff-gaussian-rasterization
pip install submodules/simple-knn

No module named ‘cv2’

pip install opencv-python
저작자표시 변경금지 (새창열림)

'기타' 카테고리의 다른 글

[Doxygen] Doxygen To Drawio Converter  (0) 2024.08.29
'기타' 카테고리의 다른 글
  • [Doxygen] Doxygen To Drawio Converter
깜냥c
깜냥c
게임 개발/클라이언트/AI/PS/기타 연구
  • 깜냥c
    Choice Program
    깜냥c
  • 전체
    오늘
    어제
    • 분류 전체보기 (54)
      • 언어 (11)
        • C,C++ (9)
        • C# (1)
        • Python (1)
      • PS (20)
        • 백준 문제 (19)
        • 알고리즘 (1)
      • 인공지능 (2)
      • 게임제작 (7)
      • 게임개발 (11)
        • Unity (4)
        • Unreal Engine (5)
        • Godot Engine (1)
      • 기타 (2)
  • 블로그 메뉴

    • 홈
    • 방명록
    • 블로그 소개
  • 링크

    • 김병장의 IT 블로그
    • 식품영양과 데이터사이언스
  • 공지사항

  • 인기 글

  • 태그

    UE5
    배낭 문제
    Godot
    C++
    BOJ
    Unreal
    백준
    unity
    C언어
    입출력
  • 최근 댓글

  • 최근 글

  • hELLO· Designed By정상우.v4.10.3
깜냥c
Getting Started With 3D Gaussian Splatting for Windows(submodules error, create env error)
상단으로

티스토리툴바