How to train net with high class imbalance?
조회 수: 13 (최근 30일)
이전 댓글 표시
Hi, I am doing a semantic segmentation that has a large difference between the two classes. So that, it tends to overpredict when I train the network. Is there any way to train the network specifically in one of the classes?
I am using classweights already, but as most of the pictures is background, the training accuracy tends to increase and the loss to decrease until constant, which generates zero accuracy when testing in the most important but imbalanced class.
댓글 수: 0
채택된 답변
Kenta
2020년 7월 11일
Over-sampling can be one solution for that task. Copy the image of smaller classes so that the number of images in each class can balance and perform training using data augmentation function.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Image Data Workflows에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!