Closed hamzagorgulu closed 10 months ago
@hamzagorgulu Seems like there is a problem with your custom data/dataset class/dataloader. First check how the ground truth masks are read are they read as {0,1} or {0, 255}. Make sure they are loading correctly.
My masks are in (0,255) format but I check the dataloader and it is in (0,1) format. I still could not find what the problem is.
Another thing I see when I train with custom dataset is that the metrics becomes nonsense after training e few epochs:
Begin evaluation...
Is_training: False. [1,36], running_mf1: 0.50000
Is_training: False. [11,36], running_mf1: 0.50000
Is_training: False. [21,36], running_mf1: 0.50000
Is_training: False. [31,36], running_mf1: 0.50000
acc: 1.00000 miou: 0.50000 mf1: 0.50000 iou_0: 1.00000 iou_1: 0.00000 F1_0: 1.00000 F1_1: 0.00000 precision_0: 1.00000 precision_1: 0.00000 recall_0: 1.00000 recall_1: 0.00000
@hamzagorgulu Hi by looking at your training statistics, it seems you have some problem with data. Are the labels correctly loading in the training?
Hi. I am training a custom dataset with this repo. Here is how the logs continue for 3rd and 4th epochs as an example:
Its being trained for a few hours with almost complete gpu capacity. I tried to visualize the predictions as follows:
However, the results I got are very weird for every sample as follows:
I thought the model was not learning but when I tried with LEVIR dataset and the pretrained weights, I got very similar weird results:
So am I missing something while visualizing the predictions?