Keras-retinanet: Training on customized dataset

Created on 8 Mar 2018  路  3Comments  路  Source: fizyr/keras-retinanet

Hi,

I am trying to train on my own dataset that has two types of object(lion and leopard) and there are several questions I hope you guys can help to clarify:

  1. judging by preprocessing/pascal_voc.py, image width and height information are not used from corresponding XML? If so, how does it aquire these information?
  2. if I would like to narrow the classification problems down two category, is there anything else I need to modify besides voc_classes defined in pascal_voc.py?
  3. I trained two models each with 50 epochs and neither of them is giving good estimations even on training sets, do you think hyper parameter tuning is helpful in this case?

Thanks for your time
shr

Most helpful comment

You should not modify pascal_voc.py. I strongly recommend using the CSV format for you own datasets. See the README.md for more details.

There should indeed be no need to modify any of the generator code. If you wish to run on your Pascal dataset, the generator should expose all the necessary arguments you need. Although as @de-vri-es said, I'd advise to use the CSV generator for custom datasets.

I trained two models each with 50 epochs and neither of them is giving good estimations even on training sets, do you think hyper parameter tuning is helpful in this case?

You could try running keras_retinanet/bin/debug.py on your dataset. If there are no results, 9/10 times it's because of the data.

All 3 comments

  1. judging by preprocessing/pascal_voc.py, image width and height information are not used from corresponding XML? If so, how does it aquire these information?

From the image of course ;)

  1. if I would like to narrow the classification problems down two category, is there anything else I need to modify besides voc_classes defined in pascal_voc.py?

You should not modify pascal_voc.py. I strongly recommend using the CSV format for you own datasets. See the README.md for more details.

  1. I trained two models each with 50 epochs and neither of them is giving good estimations even on training sets, do you think hyper parameter tuning is helpful in this case?

I can't help you with that, maybe someone else can.

You should not modify pascal_voc.py. I strongly recommend using the CSV format for you own datasets. See the README.md for more details.

There should indeed be no need to modify any of the generator code. If you wish to run on your Pascal dataset, the generator should expose all the necessary arguments you need. Although as @de-vri-es said, I'd advise to use the CSV generator for custom datasets.

I trained two models each with 50 epochs and neither of them is giving good estimations even on training sets, do you think hyper parameter tuning is helpful in this case?

You could try running keras_retinanet/bin/debug.py on your dataset. If there are no results, 9/10 times it's because of the data.

@Doodleshr is your issue resolved? If so, please close it.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ztf-ucas picture ztf-ucas  路  3Comments

penguinmenac3 picture penguinmenac3  路  5Comments

ktobah picture ktobah  路  3Comments

smehdia picture smehdia  路  4Comments

xyiaaoo picture xyiaaoo  路  5Comments