comfyui-optical-flow icon indicating copy to clipboard operation
comfyui-optical-flow copied to clipboard

Update optical_flow.py

Open bmad4ever opened this issue 1 year ago • 0 comments

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

bmad4ever avatar Oct 20 '23 21:10 bmad4ever