Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Adding SOTA Ensembling for vision tasks #131

Closed
kartik4949 opened this issue Feb 18, 2021 · 4 comments
Closed

Adding SOTA Ensembling for vision tasks #131

kartik4949 opened this issue Feb 18, 2021 · 4 comments
Labels
enhancement New feature or request help wanted Extra attention is needed won't fix This will not be worked on

Comments

@kartik4949
Copy link

kartik4949 commented Feb 18, 2021

🚀 Feature

So Ensemble a De-Facto for winning competitions and even in real world scenario it is used given enough time budget on inference

multi model ensembling

classification

better_prediction = flash.ensemble(models=[model1, model2], type='classification', method='some_sota_method')

object detection

# Weighted Boxes Fusion
better_prediction = flash.ensemble(models=[model1, model2], type='object_detection', method='WBF')

TTA support is possible too.

e.g

# classification.
model = ImageClassifier.load_from_checkpoint("https://flash-weights.s3.amazonaws.com/image_classification_model.pt")
config = {'transformations':['original', 'flip_lr']}
better_predictions = model.ensemble(type='TTA', task='classification', config=config})
# object detection
model
config = {'transformations : ['original', [1024, 1024], [1080, 1920]], 'fusion':'WBF'} #['original', 'resize', 'resize']
better_predictions = model.ensemble(type='TTA', task='detection', config=config) # fuse using WBF i.e weighted bounding box fusion (SOTA)

Motivation

Pitch

Alternatives

Additional context

@kartik4949 kartik4949 added enhancement New feature or request help wanted Extra attention is needed labels Feb 18, 2021
@stale
Copy link

stale bot commented Apr 21, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the won't fix This will not be worked on label Apr 21, 2021
@kaushikb11 kaushikb11 removed the won't fix This will not be worked on label Apr 21, 2021
@edgarriba
Copy link
Contributor

duplicated feature request #186

@kartik4949
Copy link
Author

duplicated feature request #186

This issue was created in feb
While the referenced one was created in march hence this one is older one!

@edenlightning edenlightning added this to the 0.4 milestone May 9, 2021
@ethanwharris ethanwharris removed this from the 0.4 milestone Jun 14, 2021
@stale
Copy link

stale bot commented Aug 14, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the won't fix This will not be worked on label Aug 14, 2021
@stale stale bot closed this as completed Aug 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request help wanted Extra attention is needed won't fix This will not be worked on
Projects
None yet
Development

No branches or pull requests

5 participants