YihangChen-ee / HAC

:house: [ECCV 2024] Pytorch implementation of 'HAC: Hash-grid Assisted Context for 3D Gaussian Splatting Compression'
Other
197 stars 11 forks source link

I have encountered a fatal error #2

Closed ZXStudio closed 5 months ago

ZXStudio commented 5 months ago

111 222 333 log.txt

AssertionError: While the loader support other types, the rest of the code assumes PINHOLE

QianyiWu commented 5 months ago

Hi,

Could you check your camera model in cameras.txt? As the current camera model is assumed to be either 'PINHOLE' or 'SIMPLE_PINHOLE' to make sure the splatted 3D Gaussian still has a "Gaussian" shape, we didn't change this part in our HAC but follow the original 3D Gaussian Splatting design. You might also refer to the reason here.

YihangChen-ee commented 5 months ago

Hi ZXStudio,

I have noticed Qianyi has answered part of your questions.

I observe another problem from your log.txt file: ''root@autodl-container-5ee0448de2-e336240c:~/HAC-main/data/sparse# python ~/HAC-main/train.py -s ~/HAC-main/data/ -m ~/HAC-main/data/output'' This means you are running the code under the wrong path ''~/HAC-main/data/sparse'' but using a relative path in your command. This may lead to ''FileNotFoundError'' that you have exactly encountered.

To run the code, please refer to the Readme.md where we have clearly presented the running command as ''python run_shell_xxx.py'', where you may need to change the paths and some hyperparameters in the ''run_shell_xxx.py'' for your own data.

I recommend you can firstly try running the provided datasets such as ''MipNeRF360'', and see whether you can run them correctly. After that, you can try your own dataset.

:)

Best

ZXStudio commented 5 months ago

你好,

你能在cameras.txt中检查你的相机型号吗?由于当前的相机模型假设为“PINHOLE”或“SIMPLE_PINHOLE”,以确保喷射的 3D 高斯仍然具有“高斯”形状,因此我们没有在 HAC 中更改这部分,而是遵循原始的 3D 高斯喷射设计。您也可以参考这里的原因。

The following is the information in cameras.txt:

Camera list with one line of data per camera:

CAMERA-ID, MODEL, WIDTH, HEIGHT, PARAMS

Number of cameras: 1

1 PINHOLE 8064 4536 5888.7518434988024 5884.369955166248 4032 2268

YihangChen-ee commented 5 months ago

Hi ZXStudio,

Thanks for checking your camera type, it seems the camera type is correct.

In this context, I strongly recommend you can firstly try checking your path for running the code, and try running the standard datasets such as "MipNeRF360" (by running python run_shell_mip360.py under the path of ./HAC-main.) before running your own data.

You should run the code under the path of ./HAC-main but not under ./HAC-main/data/sparse. The wrong command path will lead to ''FileNotFoundError''.

:)

YihangChen-ee commented 5 months ago

By the way, I notice you do not have an ./images directory with should be with the same directory level with the ./sparse directory. Please refer to our Readme to see how to prepare your data.

ZXStudio commented 5 months ago

顺便说一句,我注意到您没有./images应该与该目录具有相同目录级别的目录./sparse。请参阅我们的自述文件以了解如何准备数据。

按照你的建议, train.py这个脚本运行起来了, 但运行到0% Training progress这步时报错了。错误信息: invalid value for -- gpu architecture (- arch). 我的GPU服务器默认自带cuda 11.8工具。 log_3.29.txt system 目录1 目录2 目录3

YihangChen-ee commented 5 months ago

你好,

我不能确定你的数据是否有问题,但是我真的强烈建议你先在标准的测试数据集上跑起来之后再跑你自己的数据。 因为对于标准的测试数据集,他们的数据格式是肯定正确的,并且我们也提供了现有的脚本,你可以直接跑。 如果标准的测试数据集跑起来了,你再在自己的测试数据集上跑。

根据控制变量法,如果你在标准的测试数据集上也会报这个错误,就说明你的cuda环境有问题,请你检查你的cuda环境。

另:我们是在4090上跑的,我不知道4090D上会不会出问题。

祝好

ZXStudio commented 5 months ago

你好,

我不能确定你的数据是否有问题,但是我真的强烈建议你先在标准的测试数据集上跑起来之后再跑你自己的数据。 因为对于标准的测试数据集,他们的数据格式是肯定正确的,并且我们也提供了现有的脚本,你可以直接跑。 如果标准的测试数据集跑起来了,你再在自己的测试数据集上跑。

根据控制变量法,如果你在标准的测试数据集上也会报这个错误,就说明你的cuda环境有问题,请你检查你的cuda环境。

另:我们是在4090上跑的,我不知道4090D上会不会出问题。

祝好

公共数据集 我从https://jonbarron.info/mipnerf360/下载了公共数据集解压到了data,然后运行了run_shell_mip360.py,结果报错了。 [Uploading log_3.39_1.txt…]()

YihangChen-ee commented 5 months ago

Seems your data path is wrong. Please form your data in the path like this ./data/mipnerf360/bicycle/, so that you can directly run python run_shell_mip360.py. Otherwise you will need to change paths in the run_shell_mip360.py script before running it.

Feel free to drop me your WeChat ID via my email: yhchen.ee@sjtu.edu.cn, if you really need my help to run the code.

ZXStudio commented 5 months ago

Seems your data path is wrong. Please form your data in the path like this ./data/mipnerf360/bicycle/, so that you can directly run python run_shell_mip360.py. Otherwise you will need to change paths in the run_shell_mip360.py script before running it.

Feel free to drop me your WeChat ID via my email: yhchen.ee@sjtu.edu.cn, if you really need my help to run the code.

按照你说的改了目录结构,我还改使用4090显卡,不是之前的4090D。运行python run_shell_mip360.py后,出现了Training progress: 0%| 但报错了:AssertionError: Could not recognize scene type! log_3.39_2.txt

YihangChen-ee commented 5 months ago

还是你的路径的问题。你可以在./scene/__init__.py的第43行输出一下‘args.source_path’的值,看看和你真正放置‘bicycle’这个文件夹的位置是否一致;你需要注意相对路径和绝对路径的问题。如果你不介意的话,你可以把你的微信号email给我,微信沟通更直接些 👍

ZXStudio commented 5 months ago

还是你的路径的问题。你可以在./scene/__init__.py的第43行输出一下‘args.source_path’的值,看看和你真正放置‘bicycle’这个文件夹的位置是否一致;你需要注意相对路径和绝对路径的问题。如果你不介意的话,你可以把你的微信号email给我,微信沟通更直接些 👍

我微信号:ZX_Create