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

about the labels of suncg data #25

Open
KnightOfTheMoonlight opened this issue Oct 22, 2017 · 2 comments
Open

about the labels of suncg data #25

KnightOfTheMoonlight opened this issue Oct 22, 2017 · 2 comments

Comments

@KnightOfTheMoonlight
Copy link

KnightOfTheMoonlight commented Oct 22, 2017

Dear Shuran,

I tried to use your great dataset as the input of my own network. But there's one issue I encountered recently, I find there's one sample that has labels [ 0, 1, 2, 3, 4, 7, 13, 14, 18, 27, 37] This is so weird, from your matlab_code, I think the labels for suncg dataset is [0,1, ... 36], and you map them into 11 classes.

@KnightOfTheMoonlight
Copy link
Author

KnightOfTheMoonlight commented Nov 15, 2017

Here are the training samples that I found at present, the label is out of range.

SUNCGtrain_3001_5000/00016521_17da926b54ab4a91126d43718dc2e9a2_fl001_rm0006_0000.bin
SUNCGtrain_3001_5000/00016524_17da926b54ab4a91126d43718dc2e9a2_fl001_rm0006_0000.bin

@KnightOfTheMoonlight
Copy link
Author

KnightOfTheMoonlight commented Nov 15, 2017

And I found that in your code, actually you just ignore this by c++ language rules.
From this function ReadVoxLabel

for (size_t i = 0; i < scene_vox_RLE.size() / 2; ++i) {
unsigned int vox_val = scene_vox_RLE[i * 2];
unsigned int vox_iter = scene_vox_RLE[i * 2 + 1];
for (size_t j = 0; j < vox_iter; ++j) {
if (vox_val == 255) {
segmentation_label_fullsize[vox_idx] = Dtype(255);
occupancy_label_fullsize[vox_idx] = Dtype(0.0f);
} else {
segmentation_label_fullsize[vox_idx] = Dtype(
segmentation_class_map[vox_val]);
if (vox_val > 0)
occupancy_label_fullsize[vox_idx] = Dtype(1.0f);
else
occupancy_label_fullsize[vox_idx] = Dtype(0.0f);
}
vox_idx++;
}
}

Acturally even if vox_val is over 36, segmentation_class_map[vox_val] can still return 0, instead of error report.

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