DSB2017 icon indicating copy to clipboard operation
DSB2017 copied to clipboard

What does the coord mean here?

Open iridescent303 opened this issue 7 years ago • 7 comments

Could you please tell me the meaning of coord in comb2 = self.back2(torch.cat((rev2, out2, coord), 1))?

iridescent303 avatar Jul 19 '17 11:07 iridescent303

If I understand correctly, the coord means the relative coordinates of each voxel with respect to the center of the "lung". It provides location information under the assumption that the nodules usually appear on specific locations (wall of the lung, for example). Please let me know if my understanding is wrong.

totesarana avatar Aug 04 '17 02:08 totesarana

@totesarana that's correct

specifically, the x,y,z posision are all normalized to [-1,1]

lfz avatar Aug 04 '17 08:08 lfz

Thank you for your reply, I feel that it means adding some position information in the network.

iridescent303 avatar Aug 04 '17 08:08 iridescent303

@lfz Thanks. It's good to know I understood it correctly. Is there a specific reason for you to add this coordinate information in the last layer of the network?

Also, I noticed you have the same x,y,z generation procedure for images that are flipped (-1, 0 , 0, 0 ,-1, 0, 0, 0, 1). Should it be fixed during testing and training code? I have done a fix to my version. If needed, I can paste my code here.

Or another solution is to add a fix in the pre-processing step. From the version of code I have (Downloaded on May 13), you flipped the mask but did not flip the image.

totesarana avatar Aug 04 '17 13:08 totesarana

@totesarana In my opinion, if the image is flipped, then flipping either the image or the mask is enough when the label is got from the image that is flipped. But I am not sure about this.

iridescent303 avatar Aug 04 '17 17:08 iridescent303

@iridescent303 I have read his recent updates just now. He added a line in prepare.py that flips the image as well. I think this is important. Otherwise, you will end up with getting an incorrectly masked CT image.

totesarana avatar Aug 04 '17 20:08 totesarana

anyone found the definition of self.back2()?

galactica147 avatar Aug 23 '17 19:08 galactica147