Skip to content

Commit

Permalink
CTX-5783: Added type: ignores
Browse files Browse the repository at this point in the history
  • Loading branch information
Vuk Manojlovic committed Jul 5, 2024
1 parent 3a272f5 commit 0d76879
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tasks/image-segmentation/src/detect.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ def run(taskRun: TaskRun, model: KerasModel, dataset: ImageDataset) -> None:

fig, axes = plt.subplots(1, 3)

axes[0].set_title("Input image")
axes[0].imshow(resized)
axes[0].set_title("Input image") # type: ignore[index]
axes[0].imshow(resized) # type: ignore[index]

axes[1].set_title("Groundtruth mask")
axes[1].imshow(groundtruth)
axes[1].set_title("Groundtruth mask") # type: ignore[index]
axes[1].imshow(groundtruth) # type: ignore[index]

axes[2].set_title("Predicted mask")
axes[2].imshow(prediction)
axes[2].set_title("Predicted mask") # type: ignore[index]
axes[2].imshow(prediction) # type: ignore[index]

plotPath = folder_manager.temp / f"{sample.id}.png"

Expand Down

0 comments on commit 0d76879

Please sign in to comment.