dlr: fix predictions

This commit is contained in:
Starbeamrainbowlabs 2023-01-10 19:19:30 +00:00
parent 2591cbe6bc
commit 0e3de8f5fc
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -252,10 +252,10 @@ def plot_predictions(filepath, input_items, colormap, model):
for input_tensor in input_items:
prediction_mask = infer(image_tensor=input_tensor, model=model)
prediction_colormap = decode_segmentation_masks(prediction_mask, colormap, 20)
overlay = get_overlay(input_tensor, prediction_colormap)
plot_samples_matplotlib(
filepath,
[input_tensor, overlay, prediction_colormap],
[input_tensor, prediction_colormap],
figsize=(18, 14)
)