jessemelpolio / Faster_RCNN_for_DOTA

Code used for training Faster R-CNN on DOTA

Home Page:https://arxiv.org/abs/1711.10398

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

test.py: error: the following arguments are required: --cfg

Shamsa279 opened this issue · comments

I was testing satellite images on your trained model, while running text.py on spyder(python 3.6) I faced some errors and I couldn't find its solution anywhere.

usage: test.py [-h] --cfg CFG
test.py: error: the following arguments are required: --cfg
An exception has occurred, use %tb to see the full traceback.

SystemExit: 2

It means you haven't specified a configure file. You may want to have a look at the files in experiments/faster_rcnn/cfgs and then specify your configure file.

I have seen those files in experiments/faster_rcnn/cfgs directory and in those files we are only specifying the pre-trained models directory. I dont know how to specify my configure file. I'll be thankful if can help me out.

Hi @Shamsa279 , actually I cannot get your problem clearly. I'm confused about your problem. Would you like us to give a detailed testing command?

It should go like this:
python experiments/faster_rcnn/rcnn_dota_quadrangle_test.py --cfg experiments/faster_rcnn/cfgs/DOTA_quadrangle.yaml