Skip to content

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

Merged
dpascualhe merged 1 commit into
JdeRobot:masterfrom
prawnsgupta:master
Sep 23, 2026
Merged

dpascualhe merged 1 commit into
JdeRobot:masterfrom
prawnsgupta:master

Conversation

@prawnsgupta

Copy link
Copy Markdown
Contributor

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.

@dpascualhe

Copy link
Copy Markdown
Collaborator

Good catch! Merging now. Thanks for your contribution 😄

@dpascualhe
dpascualhe merged commit 90edf30 into JdeRobot:master Sep 23, 2026
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

2 participants