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

关于补充文档公式(2)的问题 #9

Open
cjp02160 opened this issue Aug 1, 2024 · 7 comments
Open

关于补充文档公式(2)的问题 #9

cjp02160 opened this issue Aug 1, 2024 · 7 comments

Comments

@cjp02160
Copy link

cjp02160 commented Aug 1, 2024

您好,我想问一下,在公式(2)中,p,q的范围应该是0到DM-1,0到DN-1吧

@Linwei-Chen
Copy link
Owner

您这样可以可以理解为用0来讲图片padding D倍,实际上也等价于加到M-1,N-1

@cjp02160
Copy link
Author

cjp02160 commented Aug 2, 2024

不好意思,我还是不太明白,虽然是用0来padding D倍,但是p,q的坐标范围也扩大了D倍呀。还有一个问题是在运行您给的FADC代码时,当我的输入维度是(2,4,16,16),输出通道为4 时,代码报错:ext_module.modulated_deform_conv_forward(
RuntimeError: The size of tensor a (8) must match the size of tensor b (4) at non-singleton dimension 1。您可以解答一下我的困惑吗? 非常感谢!

@Linwei-Chen
Copy link
Owner

谢谢提醒,我检查一下

@cjp02160
Copy link
Author

cjp02160 commented Aug 2, 2024

好的

@cjp02160
Copy link
Author

cjp02160 commented Aug 5, 2024

您好,请问可以帮我解答一下困惑吗?十分感谢!

@Linwei-Chen
Copy link
Owner

维度不匹配的问题已经得到解决,是bias的形状不对导致的,目前已经更新!
https://github.com/Linwei-Chen/FADC/blob/main/FADC_only/conv_custom.py

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