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

Confused about the camVid dataset used to train encoder #66

Open
jay98 opened this issue Jul 18, 2017 · 5 comments
Open

Confused about the camVid dataset used to train encoder #66

jay98 opened this issue Jul 18, 2017 · 5 comments

Comments

@jay98
Copy link

jay98 commented Jul 18, 2017

I saw that the camVid dataset downloaded from the Segnet repo has no co colors in the ground-truth, but when you get the dataset from camVid, it has ground-truth with colors in it, so I'm confused as to how exactly does it differentiate between a car and road

Thank You

@codeAC29
Copy link
Contributor

@jay98 we load ground-truth here. Till this point it is a grayscale image same as Segnet repo but after this we create a label tensor which is not just a single channel (grayscale) but has as many channels as number of classes.

@jay98
Copy link
Author

jay98 commented Jul 19, 2017

So the label tensor is created in the loadCamVid.lua ?

@jay98
Copy link
Author

jay98 commented Jul 19, 2017

Also @codeAC29 I'm trying to train the network on 6 classes, how would I convert the camVid images ground truths to grayscale

Thank You

@codeAC29
Copy link
Contributor

  1. Yes it is created in loadCamVid.lua
  2. You target label should be a tensor of dimension # classes x height x width. First channel should preferably belong to unlabeled category, given you have unlabeled category and you want to ignore it during training. Each channel will basically be a mask for each class.

@jay98
Copy link
Author

jay98 commented Jul 19, 2017

I'm new to this how exactly would I convert the ground truths? Will I have to write a script to do that?

Thank 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