SwinT_detectron2 icon indicating copy to clipboard operation
SwinT_detectron2 copied to clipboard

Sudden increment in loss values during training

Open purvang3 opened this issue 2 years ago • 5 comments

Screen Shot 2022-03-03 at 6 13 53 PM

purvang3 avatar Mar 03 '22 20:03 purvang3

@purvang3 do you test your dataset by other detection models?

xiaohu2015 avatar Mar 04 '22 12:03 xiaohu2015

Thank you for the reply. It was dataset only. Could you point out to the document and responsible script, which periodically evaluate saved checkpoint on validation data?

purvang3 avatar Mar 09 '22 01:03 purvang3

@purvang3 you can reference detectron2 document. For the checkpoint, you can set https://github.com/facebookresearch/detectron2/blob/main/detectron2/config/defaults.py#L541 for eval, you can set https://github.com/facebookresearch/detectron2/blob/main/detectron2/config/defaults.py#L592

xiaohu2015 avatar Mar 09 '22 03:03 xiaohu2015

@xiaohu2015 Thank you for the reply and pointing out to the doc regarding eval. I am able to run periodic eval but coco metric validation result show either garbage values or not improving mAP but I do see decrement in training loss. Below I have attached image. Do you have any suggestion? let me know if you need any additional information.

Screen Shot 2022-03-09 at 2 09 41 PM Screen Shot 2022-03-09 at 2 09 02 PM

purvang3 avatar Mar 09 '22 22:03 purvang3

check your dataset, use https://github.com/facebookresearch/detectron2/blob/main/tools/visualize_data.py to show dataloader to check if your data is good.

xiaohu2015 avatar Mar 10 '22 06:03 xiaohu2015