Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

struct.error: unpack requires a buffer of 4 bytes (error running example data sets on Windows) #458

Open
MrDieAlot opened this issue Oct 18, 2024 · 2 comments

Comments

@MrDieAlot
Copy link

Hi, finally managed to install Gsplat on my Win 11 (RTX3090) machine without issues using CUDA 12.4, but am running into problems running the simple_trainer.py file.
Am getting the following error when trying to run the example data sets:

(gsplat) C:\gsplat>python C:\gsplat\examples\simple_trainer.py default --data_dir data\360_v2\garden
Warning: image_path not found for reconstruction
Traceback (most recent call last):
File "C:\gsplat\examples\simple_trainer.py", line 1094, in
cli(main, cfg, verbose=True)
File "C:\Users\s_m_d\miniforge3\envs\gsplat\lib\site-packages\gsplat\distributed.py", line 360, in cli
return _distributed_worker(0, 1, fn=fn, args=args)
File "C:\Users\s_m_d\miniforge3\envs\gsplat\lib\site-packages\gsplat\distributed.py", line 295, in _distributed_worker
fn(local_rank, world_rank, world_size, args)
File "C:\gsplat\examples\simple_trainer.py", line 1023, in main
runner = Runner(local_rank, world_rank, world_size, cfg)
File "C:\gsplat\examples\simple_trainer.py", line 302, in init
self.parser = Parser(
File "C:\gsplat\examples\datasets\colmap.py", line 52, in init
manager.load_cameras()
File "C:\Users\s_m_d\miniforge3\envs\gsplat\lib\site-packages\pycolmap\scene_manager.py", line 90, in load_cameras
self._load_cameras_bin(input_file)
File "C:\Users\s_m_d\miniforge3\envs\gsplat\lib\site-packages\pycolmap\scene_manager.py", line 102, in _load_cameras_bin
num_cameras = struct.unpack('L', f.read(8))[0]
struct.error: unpack requires a buffer of 4 bytes

@KevinXu02
Copy link
Contributor

This PR might help. (https://github.com/rmbrualla/pycolmap/pull/2)

@MrDieAlot
Copy link
Author

That worked, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants