Open 3051617781 opened 7 months ago
just run python gaussian_spltiing\convert.py -s gaussian_splatting\sherioc_dataset\rongrong
then just run the same scripts like before:
python gaussian_splatting/train.py -s <path to COLMAP dataset> --iterations 7000 -m <path to the desired output directory>
obj mesh, seems okay
hybrid presentation
I was able to successfully use this on Windows because of this post! thank you so much :)
after following your guides I was able to extract a mesh and textures... but like your example images, the quality of the mesh is very low. Do you know of any way to improve mesh quality? The images in the SuGaR repo look amazing, but mine don't look like it at all... Thanks
Hello, I'm having trouble deploying the environment using Windows. It seems that simply using conda env create -f environment.yml
isn't working. What should I do?
Hello, I'm having trouble deploying the environment using Windows. It seems that simply using
conda env create -f environment.yml
isn't working. What should I do?
in the installation instructions it also explains how to install all the dependencies if that command fails. You have to do it that way
after following your guides I was able to extract a mesh and textures... but like your example images, the quality of the mesh is very low. Do you know of any way to improve mesh quality? The images in the SuGaR repo look amazing, but mine don't look like it at all... Thanks
To be honest, I don't know exactly how to get the high-quality mesh. /cry I'm not very familiar with the SuGaR project source code and method too. (Also a little white in the CV field). Very Sorry. In this post the author mentioned, I guess you have read it. https://github.com/Anttwo/SuGaR/issues/141#issuecomment-1950228142
I'm studying hard to learn about the project. I hope somedays later I could give you some advice about it.
Hello, I'm having trouble deploying the environment using Windows. It seems that simply using
conda env create -f environment.yml
isn't working. What should I do?
You could install the packages seperately.
In addition, there are some problems I encountered during the installation, maybe helpful.
I failed to install the package pytorch3d
at first.
set DISTUTILS_USE_SDK=1
set PYTORCH3D_NO_NINJA=1
python setup.py install
after some minutes, you could check if the pytorch3d installed using the following commands.
python import pytorch3d print(pytorch3d.version)
Hello, I'm having trouble deploying the environment using Windows. It seems that simply using
conda env create -f environment.yml
isn't working. What should I do?You could install the packages seperately.
In addition, there are some problems I encountered during the installation, maybe helpful. I failed to install the package
pytorch3d
at first.
- clone the pytorch3d repo https://github.com/facebookresearch/pytorch3d/
- open the VS2019 prompt
- cd the directory of pytorch3d
set DISTUTILS_USE_SDK=1
set PYTORCH3D_NO_NINJA=1
python setup.py install
after some minutes, you could check if the pytorch3d installed using the following commands.python import pytorch3d print(pytorch3d.version)
Thank you for your help. I did encounter an issue with installing the package pytorch3d
, but I successfully resolved it following your method.
Hello, I'm having trouble deploying the environment using Windows. It seems that simply using
conda env create -f environment.yml
isn't working. What should I do?in the installation instructions it also explains how to install all the dependencies if that command fails. You have to do it that way
You are right, I didn't notice that. Thank you for your help. I have successfully deployed the environment.
Is there a way to preceed with digital video. Not recorded on video cam. I creating Gaussian Splats in Lucid Dreamer for backgrounds and searching a way to add mesh. So I don't have COLMAP dataset only .ply or record from viewer
Hello, I'm having trouble deploying the environment using Windows. It seems that simply using
conda env create -f environment.yml
isn't working. What should I do?You could install the packages seperately.
In addition, there are some problems I encountered during the installation, maybe helpful. I failed to install the package
pytorch3d
at first.
- clone the pytorch3d repo https://github.com/facebookresearch/pytorch3d/
- open the VS2019 prompt
- cd the directory of pytorch3d
set DISTUTILS_USE_SDK=1
set PYTORCH3D_NO_NINJA=1
python setup.py install
after some minutes, you could check if the pytorch3d installed using the following commands.python import pytorch3d print(pytorch3d.version)
Hi,I have a result from 3dgaussaian splatting,include iteration_7000 and iteration_30000,what can i do to extract a mesh from ply?
- clone the pytorch3d repo https://github.com/facebookresearch/pytorch3d/
- open the VS2019 prompt
- cd the directory of pytorch3d
set DISTUTILS_USE_SDK=1
set PYTORCH3D_NO_NINJA=1
python setup.py install
Hello. During the installation phase of pytorch3d the following error occurs (installation is performed on Windows 10):
Traceback (most recent call last):
File "C:\Users\Admin\pytorch3d\setup.py", line 15, in
Here is the complete list of commands I run: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community>cd C:\Users\Admin\pytorch3d
C:\Users\Admin\pytorch3d>set DISTUTILS_USE_SDK=1
C:\Users\Admin\pytorch3d>set PYTORCH3D_NO_NINJA=1
C:\Users\Admin\pytorch3d>python setup.py install
Maybe I'm doing something wrong? Help please
- clone the pytorch3d repo https://github.com/facebookresearch/pytorch3d/
- open the VS2019 prompt
- cd the directory of pytorch3d
set DISTUTILS_USE_SDK=1
set PYTORCH3D_NO_NINJA=1
python setup.py install
Hello. During the installation phase of pytorch3d the following error occurs (installation is performed on Windows 10): Traceback (most recent call last): File "C:\Users\Admin\pytorch3d\setup.py", line 15, in import torch ModuleNotFoundError: No module named 'torch'
Here is the complete list of commands I run: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community>cd C:\Users\Admin\pytorch3d
C:\Users\Admin\pytorch3d>set DISTUTILS_USE_SDK=1
C:\Users\Admin\pytorch3d>set PYTORCH3D_NO_NINJA=1
C:\Users\Admin\pytorch3d>python setup.py install
Maybe I'm doing something wrong? Help please
Hei, it seems that you haven‘t install the pytorch, you should ref to the setup process of 3d Gaussian Splatting
@3051617781
大佬,为什么我在执行
python extract_refined_mesh_with_texture.py -s /mnt/d/Project/res-gaussian/data/penhu/ -c ./output/vanilla_gs/penhu/ -m ./output/coarse/penhu/sugarcoarse_3Dgs7000_densityestim02_sdfnorm02/15000.pt
这个命令时会报错:
Traceback (most recent call last): File "/opt/project/SuGaR/extract_refined_mesh_with_texture.py", line 45, in <module> extract_mesh_and_texture_from_refined_sugar(args) File "/opt/project/SuGaR/sugar_extractors/refined_mesh.py", line 32, in extract_mesh_and_texture_from_refined_sugar n_gaussians_per_surface_triangle = int(refined_model_path.split('/')[-2].split('_gaussperface')[-1]) ValueError: invalid literal for int() with base 10: 'sugarcoarse_3Dgs7000_densityestim02_sdfnorm02'
望回复,谢谢!
1. gaussian_splatting
1.1 run train.py (gaussian_splatting):
This should be easy:
run:
python gaussian_splatting/train.py -s <path to COLMAP dataset> --iterations 7000 -m <path to the desired output directory>
my for example:python gaussian_splatting/train.py -s gaussian_splatting\sherioc_dataset\train --iterations 7000 -m gaussian_splatting\sherioc_output\train\
1.2 output example
sherioc_dataset
is input foldersherioc_dataset
is output folder2. sugar
2.1 change all the path that for Windows(change all the '/' to '\')
2.2 train.py contains four parts:
you can choose run whole script-Ⅰ or run seperately-Ⅱ Ⅰ. run whole script (train.py)
python train.py -s gaussian_splatting\sherioc_dataset\train -c gaussian_splatting\sherioc_output\train\ -r "density"
Ⅱ. run seperately
suppose you choose
"density"
like mepython train_coarse_density.py -s gaussian_splatting\sherioc_dataset\train -c gaussian_splatting\sherioc_output\train\
python extract_mesh.py -s gaussian_splatting\sherioc_dataset\train -c gaussian_splatting\sherioc_output\train\ -m output\coarse\train\sugarcoarse_3Dgs7000_densityestim02_sdfnorm02\15000.pt
then run
python train_refined.py -s gaussian_splatting\sherioc_dataset\train -c gaussian_splatting\sherioc_output\train\ -m output\coarse_mesh\train\sugarmesh_3Dgs7000_densityestim02_sdfnorm02_level05_decim1000000.ply
python extract_refined_mesh_with_texture.py -s gaussian_splatting\sherioc_dataset\train -c gaussian_splatting\sherioc_output\train\ -m output\refined\train\sugarfine_3Dgs7000_densityestim02_sdfnorm02_level05_decim200000_normalconsistency01_gaussperface1\15000.pt
Finally, you should get a result like this:3. viewer on Windows
3.1 obj model
you can observe the ply and obj model online or in blender, this needn't the viewer: this is the rendered mesh, of course there is a problem that there is a large amount of debris.
3.2 viewer
just run
conda install -c conda-forge nodejs
after that, change to the sugar_viewer dictorycd sugar_viewer
runnpm install
then change to the root dictorycd ..
then runpython run_viewer.py -p output\refined_ply\train\<ply model name>
Viewer result: