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

OpenCV function remap in Tensorflow #34

Closed
jackieyung opened this issue May 25, 2017 · 4 comments
Closed

OpenCV function remap in Tensorflow #34

jackieyung opened this issue May 25, 2017 · 4 comments

Comments

@jackieyung
Copy link

Hi, @cysmith

I found you used the OpenCV function 'remap' to warp the current frame to the last frame. I just want to use the Tensorflow function for backpropagation. Do you know whether it have the similar function in Tensorflow or not?

Thank you very much.

@cysmith
Copy link
Owner

cysmith commented May 25, 2017

Hi jackieyung,

No, but I don't think the remap function would be difficult to implement in TF. Are you by any chance trying to implement techniques from this paper?

Cam

@jackieyung
Copy link
Author

jackieyung commented May 26, 2017

Hi, cysmith,

Yes, I want to implement the stable fast style transfer from this paper. But sadly I found it used warp method, it need to backpropagation. Tensorflow doesn't have the warp function.

But I have another question. I have reviewed your video processing code.You just used the 'remap' function to warp current frame to last frame. then used it to calculate loss.The loss also need to backpropagation.My question is when the gradient backpropagating,did it really through the OpenCV 'remap' function?

@cysmith I am looking forward for your reply.

Thanks very much.

@cysmith
Copy link
Owner

cysmith commented May 27, 2017

Hi jackieyung,

No, 'remap' is used in pre-processing to warp the previous stylized frame to the current frame. 'remap' is not used to calculate the loss.

Cam

@jackieyung
Copy link
Author

OK,Thanks.

@cysmith cysmith closed this as completed Jun 3, 2017
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