Open himanshurawlani opened 5 years ago
I guess your dataset contains bounding boxes with zero width or height.
0 is the 'background' class and 1 is the 'text' class. Therefore you have at least 2 classes in the GTUtility
...
Okay will check my dataset. By "1 class" I meant one positive class. Also, I want to train this model for multiple classes (say 5 classes), please can you help me how to go about it?
I tried modifying the utils scripts for multiple classes and converted my dataset in the format as required by GTUtility
(Images/
and .mat file) but the training couldn't start.
After some debugging, I realized the output shape of the last layer had changed from (x, 19) (for 1 class) to (x, 23) (for 5 classes). So what all needs to be changed to train TBPP512
or TBPP512_dense
model for 5 classes?
I have checked my dataset, there are no bounding boxes with zero width or height.
Maybe a type issue. The model input should be float32
. If I remember it right, I had similar issues with float64
. Otherwise, I have no idea...
btw, log of a negative number results in NaN...
When I execute the following code:
I get the following RuntimeWarning
I get the same warning when I try to train TBPP512 or TBPP512_dense model. Also while training my Precision, recall metrics are 0 and
conf_loss
andloc_loss
are NaN. Is it due to the above warning ? If not then how can I debug? Here are the metrics for 1st epoch:I have used a custom dataset with 1 class only and modified it according to the format required by
GTUtility
. I've also verified the values ingt_util_train
andgt_util_val
and they seem to be correct.