zhanggang001 / HEDNet

HEDNet (NeurIPS 2023) & SAFDNet (CVPR 2024 Oral)
Apache License 2.0
88 stars 7 forks source link

How to calculate spconv.SparseInverseConv3d in detail mathematically? #5

Open qifeng22 opened 3 months ago

qifeng22 commented 3 months ago

@zhanggang001

zhanggang001 commented 3 months ago

@zhanggang001

Please refer to the implementation here.

qifeng22 commented 3 months ago

I have seen it, but I cant undetstand the Implementation details. Specifically, for data that has already been downsampled, what is the way to expand the position of one position element and fill in zeros for all other positions? @zhanggang001

qifeng22 commented 3 months ago

SparseInverseConv3d(kernel=3),在这一步过程中,针对某个位置的元素,如何实现扩展位置元素的,我运行了一个简单代码测试了下,发现是用0 补充的,但是kernel起什么作用。是首先对数据用0补充,然后再对indice位置计算吗?

zhanggang001 commented 3 months ago

I have seen it, but I cant undetstand the Implementation details. Specifically, for data that has already been downsampled, what is the way to expand the position of one position element and fill in zeros for all other positions? @zhanggang001

Actually, I've forgotten the exact implementation now, but I know that each SparseInverseConv3d is paired with one SparseConv3d. The indices used in the paired SparseConv3d are also used in the corresponding SparseInverseConv3d, to make sure that the output indices of the SparseInverseConv3d are the same as those of the paired SparseConv3d.

If I figure it out, I will reply to you.

qifeng22 commented 3 months ago

okok, thanks for your reply.

MSunDYY commented 2 months ago

I think it's to search the position surrounded by 26 nonempty voxels and then conv.

github-actions[bot] commented 1 month ago

This issue is stale because it has been open for 30 days with no activity.