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

Why did this error occur during verification? #540

Open
LiuShiChen-Chn opened this issue Nov 8, 2023 · 0 comments
Open

Why did this error occur during verification? #540

LiuShiChen-Chn opened this issue Nov 8, 2023 · 0 comments

Comments

@LiuShiChen-Chn
Copy link

output = self._evaluation_step(**kwargs)
File "/site-packages/pytorch_lightning/loops/epoch/evaluation_epoch_loop.py", line 234, in _evaluation_step
output = self.trainer._call_strategy_hook(hook_name, *kwargs.values())
File "/site-packages/pytorch_lightning/trainer/trainer.py", line 1494, in _call_strategy_hook
output = fn(*args, **kwargs)
File "/site-packages/pytorch_lightning/strategies/strategy.py", line 390, in validation_step
return self.model.validation_step(*args, **kwargs)
File "/nanodet/nanodet/trainer/task.py", line 140, in validation_step
dets = self.model.head.post_process(preds, batch)
File "/nanodet/model/head/nanodet_plus_head.py", line 440, in post_process
det_bboxes[:, :4] = warp_boxes(
File "/nanodet/nanodet/data/transform/warp.py", line 212, in warp_boxes
xy = (xy[:, :2] / xy[:, 2:3]).reshape(n, 8) # rescale
ValueError: cannot reshape array of size 18 into shape (3,8)

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

1 participant