mmrotate icon indicating copy to clipboard operation
mmrotate copied to clipboard

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

Open XiaoBzi opened this issue 1 year ago • 4 comments

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?

XiaoBzi avatar Sep 30 '23 14:09 XiaoBzi

请问您解决了吗?

tom123478 avatar Jan 27 '24 11:01 tom123478

请问您解决了吗?

Joey-He avatar Mar 05 '24 09:03 Joey-He

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

Joey-He avatar Mar 05 '24 13:03 Joey-He

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

kaunghtetsan275 avatar Mar 09 '24 18:03 kaunghtetsan275