shaunyuan22 / SODA-mmrotate

SODA-A Small Object Detection Toolbox and Benchmark
https://shaunyuan22.github.io/SODA/
Apache License 2.0
37 stars 6 forks source link

How to train? [Bug] #10

Closed GDragon986 closed 1 year ago

GDragon986 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

TorchVision: 0.13.1 OpenCV: 4.8.0 MMCV: 1.5.3 MMCV Compiler: MSVC 191627049 MMCV CUDA Compiler: 11.3 MMRotate: 0.3.3+04da23d

Reproduces the problem - code sample

python tools/train.py configs/sodaa-benchmarks/rotated_faster_rcnn_r50_fpn_1x.py

Reproduces the problem - command or script

python tools/train.py configs/sodaa-benchmarks/rotated_faster_rcnn_r50_fpn_1x.py

Reproduces the problem - error message

Traceback (most recent call last): File "F:\VirtualEnvironment\SODA_A\lib\site-packages\mmcv\utils\registry.py", line 69, in build_from_cfg return obj_cls(**args) TypeError: init() missing 1 required positional argument: 'version'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "tools/train.py", line 192, in main() File "tools/train.py", line 168, in main datasets = [build_dataset(cfg.data.train)] File "f:\codes\soda-mmrotate\mmrotate\datasets\builder.py", line 47, in build_dataset dataset = build_from_cfg(cfg, ROTATED_DATASETS, default_args) File "F:\VirtualEnvironment\SODA_A\lib\site-packages\mmcv\utils\registry.py", line 72, in build_from_cfg raise type(e)(f'{obj_cls.name}: {e}') TypeError: SODAADataset: init() missing 1 required positional argument: 'version'

Additional information

怎么可视化数据集

shaunyuan22 commented 1 year ago

Please upate the code configs/_base_/datasets/sodaa.py and mmrotate/datasets/sodaa.py, in which the keyword angle_version is identical to MMRotate.

GDragon986 commented 1 year ago

Please upate the code configs/_base_/datasets/sodaa.py and mmrotate/datasets/sodaa.py, in which the keyword angle_version is identical to MMRotate.

There is no angle_version keyword in configs/base/datasets/sodaa.py, how do I make sure that angle_version is the same as MMRotate?

shaunyuan22 commented 1 year ago

We've already updated the corresponding code, please download and replace the original codes

GDragon986 commented 1 year ago

We've already updated the corresponding code, please download and replace the original codes

The code has run successfully, thank you very much!

shaunyuan22 commented 1 year ago

You're welcome :)

shaunyuan22 commented 1 year ago

You're welcome :)