InternLandMark / LandMark

Other
441 stars 39 forks source link

IndexError: index 0 is out of bounds for dimension 0 with size 0 #52

Open Crush1111 opened 8 months ago

Crush1111 commented 8 months ago

IndexError: index 0 is out of bounds for dimension 0 with size 0
88%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▊ | 7/8 [04:31<00:38, 38.76s/it] 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▉| 9999/10000 [1:17:46<00:00, 2.14it/s] Traceback (most recent call last):
File "/home/songjiali/LandMark-1/app/trainer.py", line 664, in
train(init_args)
File "/home/songjiali/LandMark-1/app/trainer.py", line 438, in train
psnrs_test = evaluation(
File "/home/songjiali/anaconda3/envs/landmark1/lib/python3.9/site-packages/torch/autograd/grad_mode.py", line 27, in decorate_context
return func(*args, *kwargs)
File "/home/songjiali/LandMark-1/app/tools/render_utils.py", line 140, in evaluation
allret, = renderer(
File "/home/songjiali/LandMark-1/app/tools/render_utils.py", line 52, in renderer_fn
ret, extra_loss = gridnerf(
File "/home/songjiali/anaconda3/envs/landmark1/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1190, in _call_impl
return forward_call(
input, **kwargs)
File "/home/songjiali/LandMark-1/app/models/gridnerf_parallel.py", line 1119, in forward
(mask[self.args.part].sum(), sum(self.app_n_comp)),
IndexError: index 1 is out of bounds for dimension 0 with size 0
我在训练到添加nerf的阶段,最后输出的时候就会报这个错 ,您知道是什么原因吗?怎么解决?感谢