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

Padding the Segmentation #4

Closed
sunformoon opened this issue Oct 3, 2017 · 2 comments
Closed

Padding the Segmentation #4

sunformoon opened this issue Oct 3, 2017 · 2 comments

Comments

@sunformoon
Copy link

sunformoon commented Oct 3, 2017

Hello Lequan,

I am curious about a padding operation here:

new_seg = padarray(new_seg,pading_size,100);

If my understanding is correct, you pad the ROI if the size is smaller than the crop size. Why would you pad the segmentation ground truth to be 100? Should we pad it as 0s as the background truth label or is 100 a flag of padding?

Thank you~ :)

Best,
Zhuotun

@yulequan
Copy link
Owner

yulequan commented Oct 4, 2017

Hi Zhuotun,

This is following the idea in deeplab. 100 is a flag of padding and we will remove these voxels(samples) when calculating the loss. In the softmaxloss layer, we can add "ignore_label" in the parameter. I remove the usage in the provided prototxt file. You can refer the following code:

https://github.com/yulequan/3D-Caffe/blob/4bdc9bedf4f306ed6e4e41c3c7587952ec0363e4/src/caffe/layers/softmax_loss_layer.cpp#L23

@sunformoon
Copy link
Author

Hello Lequan,

I see. Thank you a lot for your clarification! I was not aware of that in the beginning. :)

Best,
Zhuotun

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