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

C++ files of the image_warp function needed to be compiled? #46

Closed
huliyu1203 opened this issue Aug 31, 2018 · 4 comments
Closed

C++ files of the image_warp function needed to be compiled? #46

huliyu1203 opened this issue Aug 31, 2018 · 4 comments

Comments

@huliyu1203
Copy link

In your folder,image_warp function has been designed using python and tensorflow . And you still have compiled the c++ files in src/e2eflow/ops.py to compute the gradients of image_warp.I think it is unnecessary because the back propogation will be calculated automatically if you use python statement and the c++ files used in Caffe should not be here anymore. Am i wrong?

@simonmeister
Copy link
Owner

Yes, you are right in that the custom c++ module for backward warping is currently not used (in favor of the native tensorflow implementation in image_warp.py). It is possible to remove it from compilation in ops.py, but it's not a big deal (as in should not be noticeable) as compilation is done only once upon setup and it should be very fast.

@huliyu1203
Copy link
Author

And can you offer me the help ?There is a little problem with me about the complilation of correlation function and i found there is no any python statement to complete the operation of correlation function.Could you give some suggestion?

@simonmeister
Copy link
Owner

simonmeister commented Aug 31, 2018

The correlation function is only possible as a custom op right now (would likely be too slow otherwise). Which error are you getting? Are the other ops compiling?

@huliyu1203
Copy link
Author

I have little knowledge about the complilation,so i do not know how to do the complication.But still thank you very much, i have complete the correlation layer with python on the condition that stride_1=1 and stride_2=1.

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