-
Notifications
You must be signed in to change notification settings - Fork 379
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
Remove AugPipe #1978
base: main
Are you sure you want to change the base?
Remove AugPipe #1978
Conversation
How close are we to also removing our custom AugmentationSequential wrapper? |
Pretty close actually. If |
a018184
to
3cde2de
Compare
@ashnair1 is this waiting on kornia 0.7.4 for something? |
Yeah #2147 needs to be merged before this and that needs kornia 0.7.4. |
Note: 0.7.4 will be released by the end of September |
2d281ce
to
d60d6fb
Compare
This is good to go forward now |
Drop in coverage is due to some lines in our |
No, the Have removed |
We need to keep |
Scoping this back to just removing AugPipe. |
@adamjstewart Do we want to remove _ExtractPatches and I can make a PR in kornia for an ExtractTensorPatches augmentation? Pinging @edgarriba for awareness. |
@isaaccorley sounds good to me. Feel free to join our discourse to chat about it: https://discord.gg/Vf3QgRq2 @johnnv1 |
I would like to remove everything in |
Then yes sorry @ashnair1, let's remove AugmentationSequential and _ExtractPatches |
Or deprecate. It may take a while for upstream to make a new release. |
I think it might be better to keep the current scope of the PR as is i.e. removal of |
@@ -238,8 +238,12 @@ def training_step( | |||
""" | |||
x = batch['image'] | |||
batch_size = x.shape[0] | |||
# Get bbox key as it can be one of {"bbox", "bbox_xyxy", "bbox_xywh"} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are our models compatible with all 3, or do we need to assert that a specific format is used?
assert isinstance(x['boxes'], torch.Tensor) | ||
if 'masks' in x: | ||
assert isinstance(x['masks'], torch.Tensor) | ||
assert isinstance(x['class'], torch.Tensor) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why the switch from labels to class? I don't think either are standard in Kornia
x['prediction_labels'] = x['labels'] | ||
x['prediction_boxes'] = x['boxes'] | ||
x['prediction_labels'] = x['class'] | ||
x['prediction_boxes'] = x['bbox_xyxy'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should also change the names of the prediction_*
keys to match the new input keys.
The next version of kornia (
0.7.3
) will contain 2 fixes (kornia/kornia#2846, kornia/kornia#2856) that will allow us to drop AugPipe and have detection only depend on kornia'sAugmentationSequential
.