File: perceptionmetrics/models/tf_segmentation.py
Line: 275–278
Description
In the t_in closure, resize_image() is called without passing the tensor
(image) as the first positional argument. This causes a TypeError at runtime
whenever TF segmentation inference is run with resizing enabled.
Bug
tensor = resize_image(
method="bilinear",
width=self.model_cfg["resize"].get("width", None),
height=self.model_cfg["resize"].get("height", None),
)
Fix
tensor = resize_image(
tensor,
method="bilinear",
width=self.model_cfg["resize"].get("width", None),
height=self.model_cfg["resize"].get("height", None),
)
File:
perceptionmetrics/models/tf_segmentation.pyLine: 275–278
Description
In the
t_inclosure,resize_image()is called without passing thetensor(image) as the first positional argument. This causes a
TypeErrorat runtimewhenever TF segmentation inference is run with resizing enabled.
Bug
Fix