Closed hoanghng closed 2 years ago
This functionality is not supported, because it is not clear how to align the coordinate systems of those images. @hoanghng Could you make a pull request to close this issue?
@hoanghng your usecase is conceptually different from the one meant by the currently library design. We currently assume that one piece of the data (image+..+mask+mask+...+keypoints) has a consistent spatial/coordinate frame. I think we could also support the example you provided, but the issue is a bit deeper than it seems. I will take a look if this could be easily implemented without breaking the usability of the library.
I think at least the lib should check and raise an explicit error message for that assumption violation.
@hoanghng there is already a nice error message for this case in master
(although, I do not recommend to update to it just yet).
Code to reproduce:
Adding a resize transformation at the beginning doesn't help. A clear error message is needed for this case.