When I choose --pixel-per-view 64 after a few epochs training on Wineholder, I get this error:
Traceback (most recent call last):
data_utils.py: get_uv File "/tmp/kghasemi/conda/lib/python3.8/contextlib.py", line 131, in __exit__
self.gen.throw(type, value, traceback)
File "/tmp/kghasemi/conda/lib/python3.8/site-packages/fairseq/logging/metrics.py", line 95, in aggregate
yield agg
File "/tmp/kghasemi/conda/lib/python3.8/contextlib.py", line 75, in inner
return func(*args, **kwds)
File "/tmp/kghasemi/GRF/fairnr_cli/train.py", line 184, in train
log_output = trainer.train_step(samples)
File "/tmp/kghasemi/conda/lib/python3.8/contextlib.py", line 75, in inner
return func(*args, **kwds)
File "/tmp/kghasemi/conda/lib/python3.8/site-packages/fairseq/trainer.py", line 457, in train_step
raise e
File "/tmp/kghasemi/conda/lib/python3.8/site-packages/fairseq/trainer.py", line 425, in train_step
loss, sample_size_i, logging_output = self.task.train_step(
File "/tmp/kghasemi/GRF/fairnr/tasks/neural_rendering.py", line 300, in train_step
return super().train_step(sample, model, criterion, optimizer, update_num, ignore_grad)
File "/tmp/kghasemi/conda/lib/python3.8/site-packages/fairseq/tasks/fairseq_task.py", line 351, in train_step
loss, sample_size, logging_output = criterion(model, sample)
File "/tmp/kghasemi/conda/lib/python3.8/site-packages/torch/nn/modules/module.py", line 532, in __call__
result = self.forward(*input, **kwargs)
File "/tmp/kghasemi/GRF/fairnr/criterions/rendering_loss.py", line 42, in forward
net_output = model(**sample)
File "/tmp/kghasemi/conda/lib/python3.8/site-packages/torch/nn/modules/module.py", line 532, in __call__
result = self.forward(*input, **kwargs)
File "/tmp/kghasemi/GRF/fairnr/models/fairnr_model.py", line 77, in forward
results = self._forward(ray_start, ray_dir, **kwargs)
File "/tmp/kghasemi/GRF/fairnr/models/nsvf.py", line 79, in _forward
samples = self.encoder.ray_sample(intersection_outputs)
File "/tmp/kghasemi/GRF/fairnr/modules/encoder.py", line 355, in ray_sample
sampled_idx, sampled_depth, sampled_dists = uniform_ray_sampling(
File "/tmp/kghasemi/GRF/fairnr/clib/__init__.py", line 192, in forward
pts_idx = pts_idx.reshape(G, -1, P)
RuntimeError: shape '[256, -1, 60]' is invalid for input of size 15240
Process finished with exit code 1
Running script:
When I choose
--pixel-per-view 64
after a few epochs training on Wineholder, I get this error: