AttributeError: 'Tensor' object has no attribute 'items' #8657
Unanswered
in-moonshadow
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
RE-DETR:
Traceback (most recent call last):
File "tools/train.py", line 209, in
main()
File "tools/train.py", line 205, in main
run(FLAGS, cfg)
File "tools/train.py", line 158, in run
trainer.train(FLAGS.eval)
File "/home/moon/PaddleDetection/ppdet/engine/trainer.py", line 639, in train
self._eval_with_loader(self._eval_loader)
File "/home/moon/PaddleDetection/ppdet/engine/trainer.py", line 676, in _eval_with_loader
metric.update(data, outs)
File "/home/moon/PaddleDetection/ppdet/metrics/metrics.py", line 103, in update
for k, v in outputs.items():
AttributeError: 'Tensor' object has no attribute 'items'
Beta Was this translation helpful? Give feedback.
All reactions