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

Implementation of reverse deformation and PE in PPDM #2

Closed
severous opened this issue Apr 22, 2023 · 4 comments
Closed

Implementation of reverse deformation and PE in PPDM #2

severous opened this issue Apr 22, 2023 · 4 comments

Comments

@severous
Copy link

Thanks for your excellent work.
I have some questions about the implementation of PPDM

  • I would like to know the implementation details of the $PE(\cdot)$ operation in Equation $\psi^{\prime}(x)=Up(h^{\prime}(P E(x)))$. Besides, I would like to know the difference between PE and CoordConv. Can you provide some code references?
  • $L_{c y c}=\left|x-x \circ O_1 \cdots \circ O_K \circ O_K^T \cdots \circ O_1^T\right|_2$. Could you provide some implementation details of the grid-sampling function $\circ$?

Thanks for your reply:)

@FlappyPeggy
Copy link
Owner

FlappyPeggy commented Apr 25, 2023

  • $PE(\cdot)$ is the AddCoords2d function in CoorConv2d, where CoorConv2d apply a Conv2d after $PE(\cdot)$. You can find the code in resnet.py -> class OffsetNet -> self.conv_offset1 and the definition is at the beginning of the code.
  • The function $\circ$ is just a torch function: F.grid_sample.
  • I apologize for removing the PPDM version "test.py" (including the references of $\circ$) at the moment, as I noticed that someone misunderstood our code. If you need to test PPDM, you can refer to the PDM version or provide an email address so that I can send you the uncleaned (but runnable) code.

@FlappyPeggy FlappyPeggy changed the title The implementation of PPDM Implementation of reverse deformation and PE in PPDM Apr 26, 2023
@severous
Copy link
Author

Thanks for your reply. My email address is [email protected]. please send me the code about PDM and PPDM.

@FlappyPeggy
Copy link
Owner

Thanks for your reply. My email address is [email protected]. please send me the code about PDM and PPDM.

I have re-uploaded this version :)

@FlappyPeggy
Copy link
Owner

re-uploaded the file

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