open-mmlab / mmrotate

OpenMMLab Rotated Object Detection Toolbox and Benchmark
https://mmrotate.readthedocs.io/en/latest/
Apache License 2.0
1.85k stars 549 forks source link

id_list, dets_list = self.merge_det(results, nproc) ValueError: not enough values to unpack (expected 2, got 0) #949

Open XiaoBzi opened 1 year ago

XiaoBzi commented 1 year ago

Prerequisite

Task

I'm using the official example scripts/configs for the officially supported tasks/models/datasets.

Branch

master branch https://github.com/open-mmlab/mmrotate

Environment

install all the requirement as the writer says.

Reproduces the problem - code sample

python ./tools/test.py configs/lsknet/lsk_s_ema_fpn_1x_dota_le90.py checkpoints/lsk_s_ema_fpn_1x_dota_le90_20230212-30ed4041.pth --format-only --eval-options submission_dir=work_dirs/Task1_results

Traceback (most recent call last): File "D:\遥感\code\LSKNet-main\tools\test.py", line 263, in main() File "D:\遥感\code\LSKNet-main\tools\test.py", line 245, in main dataset.format_results(outputs, **kwargs) File "d:\遥感\code\lsknet-main\mmrotate\datasets\dota.py", line 327, in format_results id_list, dets_list = self.merge_det(results, nproc) ^^^^^^^^^^^^^^^^^^ ValueError: not enough values to unpack (expected 2, got 0)

Reproduces the problem - command or script

I have change the data root and test the DOTA dataset as the way which the writer has wrote in the readme. But the problem happens as mentioned above,if anyone can help me?

Reproduces the problem - error message

python ./tools/test.py configs/lsknet/lsk_s_ema_fpn_1x_dota_le90.py checkpoints/lsk_s_ema_fpn_1x_dota_le90_20230212-30ed4041.pth --format-only --eval-options submission_dir=work_dirs/Task1_results

Traceback (most recent call last): File "D:\遥感\code\LSKNet-main\tools\test.py", line 263, in main() File "D:\遥感\code\LSKNet-main\tools\test.py", line 245, in main dataset.format_results(outputs, **kwargs) File "d:\遥感\code\lsknet-main\mmrotate\datasets\dota.py", line 327, in format_results id_list, dets_list = self.merge_det(results, nproc) ^^^^^^^^^^^^^^^^^^ ValueError: not enough values to unpack (expected 2, got 0)

Additional information

I have change the data root and test the DOTA dataset as the way which the writer has wrote in the readme. But the problem happens as mentioned above,if anyone can help me?

tom123478 commented 8 months ago

请问您解决了吗?

Joey-He commented 7 months ago

请问您解决了吗?

Joey-He commented 7 months ago

看看你data_root的路径是否正确 你这是没有读到test中的images

kaunghtetsan275 commented 7 months ago

For me, I had to change the data_root path in model config file in config/.py to solve it. It was quite a headache for me to figure it out as well.