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

Black boy zeus batchwisevectorization amg utils #237

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

BlackBoyZeus
Copy link

Key Changes from the Previous Script:

mask_to_rle_pytorch_optimized Added: This function replaces the original mask_to_rle_pytorch function and provides significant performance improvements using vectorization and batch-wise processing.
fill_holes_in_mask_scores Updated: This function Key Changes from the Previous Script:

mask_to_rle_pytorch_optimized Added: This function replaces the original mask_to_rle_pytorch function and provides significant performance improvements using vectorization and batch-wise processing.
fill_holes_in_mask_scores Updated: This function now uses PyTorch operations (thresholding and torch.where) for hole filling instead of cv2.connectedComponentsWithStats. This makes it faster and eliminates the need for data conversions.
No Changes to mask_intersection, mask_union, mask_subtraction, and boxes_to_masks: These functions are already tensor-based and remain unchanged.now uses PyTorch operations (thresholding and torch.where) for hole filling instead of cv2.connectedComponentsWithStats. This makes it faster and eliminates the need for data conversions.
No Changes to mask_intersection, mask_union, mask_subtraction, and boxes_to_masks: These functions are already tensor-based and remain unchanged.

Key Changes from the Previous Script:

mask_to_rle_pytorch_optimized Added: This function replaces the original mask_to_rle_pytorch function and provides significant performance improvements using vectorization and batch-wise processing.
fill_holes_in_mask_scores Updated: This function now uses PyTorch operations (thresholding and torch.where) for hole filling instead of cv2.connectedComponentsWithStats. This makes it faster and eliminates the need for data conversions.
No Changes to mask_intersection, mask_union, mask_subtraction, and boxes_to_masks: These functions are already tensor-based and remain unchanged.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants