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

Update optical_flow.py #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

bmad4ever
Copy link

@bmad4ever bmad4ever commented Oct 20, 2023

Dear Maintainer,

This minor change should enable the use of single-channel images in remap without breaking or changing the implemented functionalities.

Prior to this request, I tried using expand_dims in the input image passed to image_transform_optical_flow, but the image sent to center_crop_image would not keep the 3rd shape value (I did not investigate why since this alternative solution was trivial to implement).

Best Regards

only access required shape values; this minor change enables the use of single-channel images in remap.
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

Successfully merging this pull request may close these issues.

1 participant