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

train on my data #80

Open
hadi1994shokati opened this issue Dec 9, 2023 · 2 comments
Open

train on my data #80

hadi1994shokati opened this issue Dec 9, 2023 · 2 comments

Comments

@hadi1994shokati
Copy link

Hello. Thanks for sharing the code.
I want to train the model with my data. Instead of 20 Pascal classes, my data has only 1 class and it is binary classification. Should I just use a split? What parts of the code should I change?
Looking forward to hearing you.

@tianzhuotao
Copy link
Collaborator

In this case, you may change the dataset.py and let the training/val use the same split, as there is only a single class in your dataset.

@hadi1994shokati
Copy link
Author

Thank you so much for your answer. I want to use this code for soil erosion binary segmentation. My segmentation task doesn't have base classes and just has 0 and 1 (erosion and non-erosion). Is this code able to do this segmentation? If yes, Should I just change the getitem function in the dataset file? I tried to use 1 split for my data but I got an assertion error in line 171 of the dataset file which means label_class is 0 in some cases.
Thank you in advance.

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

2 participants