second.pytorch icon indicating copy to clipboard operation
second.pytorch copied to clipboard

RuntimeError: cannot perform reduction function max on tensor with no elements (Custom Dataset)

Open StephenEkaputra opened this issue 4 years ago • 2 comments

Hi,

I would like to ask about the error. I trained a custom dataset in kitti format. The training goes well, however when the eval result start processing, the error occured. Note: I changed the class name in eval.py

error

Error: x_max = torch.max(x, dim=1, keepdim=True)[0] RuntimeError: cannot perform reduction function max on tensor with no elements because the operation does not have an identity.

Anyone knows what the error is about? and how to solve it?

StephenEkaputra avatar May 18 '20 13:05 StephenEkaputra

Hi, I found the same error. Did you solve it?

curiousboy20 avatar Nov 05 '21 17:11 curiousboy20

Hi, I found the same error. Did you solve it?

have you solved it?

MakerFace avatar Nov 17 '21 05:11 MakerFace