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

Training on custom datasets in CCT. #70

Closed
TinaWut opened this issue Jan 4, 2024 · 4 comments
Closed

Training on custom datasets in CCT. #70

TinaWut opened this issue Jan 4, 2024 · 4 comments

Comments

@TinaWut
Copy link

TinaWut commented Jan 4, 2024

First of all, thank you very much for sharing your paper and code. I have also read the previous answers regarding issues with training on custom datasets, but I still haven't resolved the problems I encountered during my own dataset training.

My dataset has two classes (0 for background, 1 for another category). I modified num_classes = 2 in voc.py and also adjusted the color mapping in palette.py with def get_voc_palette(num_classes) to represent two classes (black and white). I am training using a supervised approach, but I am encountering a situation where the intersection over union (IoU) for one of the classes is 0. Additionally, when loading the same model weights in inference.py, the output results vary with each run. I have no idea how to resolve these issues. Any guidance would be greatly appreciated
微信图片_20240104212524
Uploading 微信截图_20240104212624.png…

@TinaWut
Copy link
Author

TinaWut commented Jan 4, 2024

微信截图_20240104212624

@TinaWut
Copy link
Author

TinaWut commented Jan 5, 2024

The code issue has been resolved

@yassouali
Copy link
Owner

Hi @TinaWut, happy to hear that the problem was resolved, I'll close the issue for now

@79zzz
Copy link

79zzz commented Feb 29, 2024

您好,请问你是如何自定义数据集的

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

3 participants