Closed bobbender closed 5 months ago
The model has to be trained with bounding boxes, it was an oversight from our side to allow training without. I don't expect the model that was trained without bboxes to work for testing.
The issue that training is not working was the result of a recent code cleanup, it should be working now.
The command you used should be working as is, because coarse-class
is the default value for target-task
. To specify it explicitly, use:
python3 tools/train/bbavector.py \
--train-image-folder /satellitepy/data/small_1024/train/images/ \
--train-label-folder /satellitepy/data/small_1024/train/annfiles/ \
--train-label-format dota \
--valid-image-folder /satellitepy/data/small_1024/val/images/ \
--valid-label-folder /satellitepy/data/small_1024/val/annfiles/ \
--valid-label-format dota \
--tasks coarse-class obboxes \
--target-task coarse-class \
--input-h 1024 \
--input-w 1024 \
--out-folder /mount_dir/training/ \
--num-epoch 1
I will be done with such fixes for all functions soon, but right now there are a few things that are not working.
The difference between tasks
and target-tasks
is only important when training with multiple tasks. target-task
is used to detect instances and determine bbox parameters, for the remaining tasks we make predictions for those detected objects. It is also used for thresholding based on confidence scores and non maximum suppression.
'target-task' always has to be a classification task.
Hey thanks for the example call and the code improvements it the training works now.
I can train a model with the following command using only the task "coarse-class":
However as far as I understand this does NOT include obboxes (?)
So a training tried to start a training with obboxes, by adding the task "obboxes", with the following command:
But I get the following error:
My training data consists of png image patches the size 1024x1024 and corresponding dota annotation files that look like this, e.g.
So what am I missing here, how can I train a model with the task "obboxes" ? Furthermore, regarding the tasks, whats the difference between the parameters "--tasks" and "--target-task"
All the best and thx for any replies