jessemelpolio / Faster_RCNN_for_DOTA

Code used for training Faster R-CNN on DOTA
https://arxiv.org/abs/1711.10398
Apache License 2.0
336 stars 102 forks source link

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

Closed Shamsa279 closed 6 years ago

Shamsa279 commented 6 years ago

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

jessemelpolio commented 6 years ago

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.

Shamsa279 commented 6 years ago

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.

jessemelpolio commented 6 years ago

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