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

Image downsizing results in runtime error RuntimeError: Trying to create tensor with negative dimension -18: [-18] #36

Open
purplebutterfly79 opened this issue Dec 30, 2022 · 1 comment

Comments

@purplebutterfly79
Copy link

purplebutterfly79 commented Dec 30, 2022

Preparing cache for scale 4...
reading sfm result from ../neuralsfm...
Note: training near far will generate from sparse voxel!!!!
Reading images.bin..
Reading cameras.bin..
Compute c2w poses..
Generating rays and rgbs..
100%|██████████| 778613/778613 [00:06<00:00, 116915.10it/s]
2022-12-30 16:36:11.097 | DEBUG | tools.prepare_data.generate_voxel:gen_octree_from_sfm:59 - Points filtered from raw point cloud: 27595/100040
2022-12-30 16:36:11.753 | DEBUG | tools.prepare_data.generate_voxel:gen_octree:124 - number of points for voxel generation: 725832/744660
2022-12-30 16:36:13.536 | DEBUG | tools.prepare_data.generate_voxel:gen_octree:147 - level: 5 for expected voxel size: 0.25
2022-12-30 16:36:15.178 | DEBUG | tools.prepare_data.generate_voxel:gen_octree_from_sfm:59 - Points filtered from raw point cloud: 27595/100040
2022-12-30 16:36:35.314 | DEBUG | tools.prepare_data.generate_voxel:gen_octree:124 - number of points for voxel generation: 3862151/3893596
2022-12-30 16:36:35.339 | DEBUG | tools.prepare_data.generate_voxel:gen_octree:147 - level: 5 for expected voxel size: 0.25
Mean Projection Error: tensor(1.0761)
100%|██████████| 1/1 [00:00<00:00, 32.90it/s]
100%|██████████| 1/1 [00:00<00:00, 35.89it/s]
0%| | 0/1353 [00:00<?, ?it/s]
padding valid depth percentage: from 0.20059621871812974 to 0.2 with padding -18
Traceback (most recent call last):
File "tools/prepare_data/prepare_data_cache.py", line 176, in
dataset = dataset_dictargs.dataset_name
File "/home/imlab/neural3d/NeuralRecon-W/./datasets/phototourism.py", line 122, in init
self.read_meta()
File "/home/imlab/neural3d/NeuralRecon-W/./datasets/phototourism.py", line 666, in read_meta
pad_ind = torch.floor((torch.rand(padding_length) * valid_num)).long()
RuntimeError: Trying to create tensor with negative dimension -18: [-18]

@lt-xiang
Copy link

Hi have you solved it ?

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