Fix image segmentation and object detection pipeline tests
# What does this PR do?

The recent release of timm has broken two pipeline tests, this PR fixes them.
_The documentation is not available anymore as the PR was closed or merged._