Skip to content

Fix #562: pass image tensor to resize_image() in TF segmentation t_in#616

Open
prawnsgupta wants to merge 1 commit into
JdeRobot:masterfrom
prawnsgupta:master
Open

Fix #562: pass image tensor to resize_image() in TF segmentation t_in#616
prawnsgupta wants to merge 1 commit into
JdeRobot:masterfrom
prawnsgupta:master

Conversation

@prawnsgupta

Copy link
Copy Markdown

Fixes #562.

In TfSemanticSegmentationModel's t_in input transform, resize_image() was called without its required first positional argument (image), raising TypeError whenever TF segmentation inference runs with resize enabled. This passes tensor (already produced by tf.convert_to_tensor(image) on the preceding line), consistent with the resize_image(image, ...) call at line ~191 and the crop_center(tensor, ...) call immediately below it.

resize_image( appears at only these two call sites in the codebase; this was the only affected one.

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.

resize_image missing image argument in tf_segmentation.py causes TypeError at runtime

1 participant