You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My model applied which forward like this but end of error. I understand that the error is showing that the output must be in List type, but the super().forward() can also in Dict() type, is that because of another setup or am I do anything wrong?
File "/home/victor-ho/CV/yolo_w_adap/YOLO-World/tools/temp.py", line 68, in <module>
main()
File "/home/victor-ho/CV/yolo_w_adap/YOLO-World/tools/temp.py", line 45, in main
runner.test()
File "/home/victor-ho/miniconda3/envs/yolo-w/lib/python3.9/site-packages/mmengine/runner/runner.py", line 1823, in test
metrics = self.test_loop.run() # type: ignore
File "/home/victor-ho/miniconda3/envs/yolo-w/lib/python3.9/site-packages/mmengine/runner/loops.py", line 463, in run
self.run_iter(idx, data_batch)
File "/home/victor-ho/miniconda3/envs/yolo-w/lib/python3.9/site-packages/torch/autograd/grad_mode.py", line 27, in decorate_context
return func(*args, **kwargs)
File "/home/victor-ho/miniconda3/envs/yolo-w/lib/python3.9/site-packages/mmengine/runner/loops.py", line 489, in run_iter
outputs, self.test_loss = _update_losses(outputs, self.test_loss)
File "/home/victor-ho/miniconda3/envs/yolo-w/lib/python3.9/site-packages/mmengine/runner/loops.py", line 535, in _update_losses
if isinstance(outputs[-1],
KeyError: -1
Additional information
No response
The text was updated successfully, but these errors were encountered:
This is because pr #1503 does not consider the situation when the output is a dict. Maybe you can try mmengine==0.10.4 first through pip install mmengine==0.10.4.
Prerequisite
Environment
Reproduces the problem - code sample
My model applied which forward like this but end of error. I understand that the error is showing that the output must be in List type, but the super().forward() can also in Dict() type, is that because of another setup or am I do anything wrong?
Reproduces the problem - command or script
Reproduces the problem - error message
Additional information
No response
The text was updated successfully, but these errors were encountered: