Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the Lambda transform #261

Merged
merged 2 commits into from
May 18, 2019
Merged

Fix the Lambda transform #261

merged 2 commits into from
May 18, 2019

Conversation

creafz
Copy link
Contributor

@creafz creafz commented May 18, 2019

In the current implementation of Lambda bbox and keypoint transforms are added to the _targets dict using 'bbox' and 'keypoint' (in singular forms) keys respectively. However, DualTransform uses keys 'bboxes' and 'keypoints' (in plural forms) to find the appropriate transform methods. And because of that Lambda will always use default implementations of apply_to_bbox and apply_to_keypoint methods from NoOp.

Here is a possible fix for this problem, but I am not sure, maybe there is a better way. @BloodAxe what do you think?

@creafz creafz requested review from BloodAxe, albu and ternaus May 18, 2019 13:43
@BloodAxe
Copy link
Contributor

Nice catch!

Copy link
Contributor

@BloodAxe BloodAxe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approve

@creafz creafz merged commit 822c761 into master May 18, 2019
@creafz creafz deleted the fix_lambda_transform branch May 18, 2019 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants