-
Notifications
You must be signed in to change notification settings - Fork 0
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
Augmentation SpeedUp #147
Merged
Merged
Augmentation SpeedUp #147
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
5b80ec2
Excluded masks from augmentations when not present in the dataset.
JSabadin 68d0194
Slight code modifications
JSabadin 6a78ad1
Optimizing the _load_image_with_annotations function
JSabadin 1a40419
Merge remote-tracking branch 'origin/dev' into fix/annotation-loading…
JSabadin 7350dd6
opencv version 4.10.0
JSabadin 79c4c5c
Update requirements.txt
kozlov721 b166ac3
Merge remote-tracking branch 'origin/fix/annotation-loading-speedup' …
JSabadin 44404bd
fix: image only augs after mosaic aug
sokovninn 395e2e7
Merge branch 'fix/augmentation_speedup' into fix/augmentation-speedup…
sokovninn 0d6d962
fix: replace cv2 imread with pillow image open
sokovninn 60120fe
Revert "fix: replace cv2 imread with pillow image open"
sokovninn 4bcf34b
fix: move resize augmentation to the beginning
sokovninn bc5fd4e
style: formatting
sokovninn 8a2e692
Merge branch 'dev' into fix/augmentation-speedup-order
sokovninn 8124c29
type fixes
kozlov721 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Do we see any concerns with mask_batch missing downstream? Would it be safer to keep it in dict but have it as an empty value?
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.
No, the augmentations will still work if mask_batch is simply missing. I think it does not pose any threat.
Additionally, if we simply enter an empty value for masks instead of adding it when necessary, it fails.
It cannot be empty; it would have to contain zeros, but this is slow because augmentations are then applied to that dummy mask. This is what we were doing before, and it was slowing the code down
Moreover, using dummy keypoints (just one keypoint at x:0, y:0) or bounding boxes does not affect the time it takes to apply the augmentations.
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.
CC: @JSabadin