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

Exception during training with 3 classes #7

Closed
ghost opened this issue Oct 1, 2018 · 2 comments
Closed

Exception during training with 3 classes #7

ghost opened this issue Oct 1, 2018 · 2 comments

Comments

@ghost
Copy link

ghost commented Oct 1, 2018

We tried to use the code to train a network to identify 3 classes.

To do this using our own image data we modified the class_color_coding dict in data.py to be

# Add colors to this table to make it possible to have more classes
class_color_coding =[
    [0,0,232], #non-gully
    [250,170,30], #gullies
    [207,207,207], #undefined
] 

after doing this the network would not train successfully and an exception occurs. On debugging it appears that the code tries to locate non existent labels with a class_ind > 2

@Jessaminzyx
Copy link

Hi, professor,sorry to bother you . I am the new to the CNN ,I have a question about how to make the label which is only a slice? And if we divide colors according to set thresholds.

@waldeland
Copy link
Owner

Thanks for the update. I have done a few tests now, and it seems to be working. (@Jessaminzyx, please send me an email, and I will try to do my best to help you.)

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