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

Render Mesh Error #73

Open
zhqy513z opened this issue Jun 12, 2024 · 1 comment
Open

Render Mesh Error #73

zhqy513z opened this issue Jun 12, 2024 · 1 comment

Comments

@zhqy513z
Copy link

(surfel_splatting) C:\Users\Zqy\2d-gaussian-splatting>python render.py -m C:\Users\Zqy\2d-gaussian-splatting\output\dengzi -s C:\Users\Zqy\2d-gaussian-splatting\data\dengzi --unbounded
Looking for config file in C:\Users\Zqy\2d-gaussian-splatting\output\dengzi\cfg_args
Config file found: C:\Users\Zqy\2d-gaussian-splatting\output\dengzi\cfg_args
Rendering C:\Users\Zqy\2d-gaussian-splatting\output\dengzi
Loading trained model at iteration 30000
Reading camera 1/207C:\Users\Zqy\anaconda3\envs\surfel_splatting\lib\site-packages\PIL\TiffImagePlugin.py:870: UserWarning: Corrupt EXIF data. Expecting to read 2 bytes but only got 0.
warnings.warn(str(msg))
Reading camera 207/207
Loading Training Cameras
[ INFO ] Encountered quite large input images (>1.6K pixels width), rescaling to 1.6K.
If this is not desired, please explicitly specify '--resolution/-r' as 1
Loading Test Cameras
export training images ...
reconstruct radiance fields: 207it [00:04, 44.90it/s]
Traceback (most recent call last):
File "render.py", line 62, in
gaussExtractor.reconstruction(scene.getTrainCameras())
File "C:\Users\Zqy\anaconda3\envs\surfel_splatting\lib\site-packages\torch\utils_contextlib.py", line 115, in decorate_context
return func(*args, **kwargs)
File "C:\Users\Zqy\2d-gaussian-splatting\utils\mesh_utils.py", line 110, in reconstruction
self.rgbmaps = torch.stack(self.rgbmaps, dim=0)
RuntimeError: stack expects each tensor to be equal size, but got [3, 1035, 1600] at entry 0 and [3, 1060, 1600] at entry 13

@hbb1
Copy link
Owner

hbb1 commented Jun 12, 2024

Seems like that your training set has images with different resolutions. You can store the rgbmap without stack.

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