Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing Class Weights In YOLOv10 #496

Open
Lokesh-1015 opened this issue Nov 15, 2024 · 0 comments
Open

Changing Class Weights In YOLOv10 #496

Lokesh-1015 opened this issue Nov 15, 2024 · 0 comments

Comments

@Lokesh-1015
Copy link

Lokesh-1015 commented Nov 15, 2024

Question:
I trained my model on a dataset using YOLOv10. But my model did not perform well in some classes. When I examined my data set, I saw that there was very little data in those classes. Instead of methods such as data augmentation, I want my model to give more weight to classes with less data. How can I make this happen? What changes are supposed to be made while training model?

Dataset:
I am using vindr cxr dataset. Images are resized to 224x224.
Imabalance -
Class Name - Count:
Aortic enlargement - 7193
Cardiomegaly - 5443
Pleural thickening - 4884
Pulmonary fibrosis - 4659
Nodule/Mass - 2611
Lung Opacity - 2493
Pleural effusion - 2483
Other lesion - 2228
Infiltration - 1247
ILD - 1015
Calcification - 967
Consolidation - 556
Rib fracture - 300
Atelectasis - 280
Mediastinal shift - 270
Pneumothorax - 226
Enlarged PA - 188
Emphysema - 141
Lung cavity - 91
Lung cyst - 43
Clavicle fracture - 30
Edema - 19

Note:
I also used weighted dataloader, it did improve performance by some extent but still performance is not good at all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant