๐Ÿ’ก Prop Tip to ๐Ÿš€ fast track your object detection training

All @fastdotai users use this method for free!

It's fine_tune()

We noticed an important increase in the COCO Metric when we train object detection models using this method even with the simple default values
Fine tuning has 2 phases:

๐ŸงŠ Phase 1: Freeze your model's backbone and neck. Train your model for a couple of epochs (e.g. 1 to 5)

๐Ÿ“ˆ Phase 2: Unfreeze the whole model. Train for higher number of periods (depending on your dataset, and how hard/easy your data is)
Phase 1 is a kind of warm-up for your model head.

Here is an example showing how to call the fine_tune() method.

In this case, we freeze both the backbone and the neck for 1 epoch in phase 1, and train for 20 epochs in phase 2.
fine_tune() also uses discriminative learning rate: assigning lower learning rate to the first layers, and higher learning rate for the last layers.

The discriminative learning rate needs a dedicated post on its own. Meanwhile, you can check fastai documentation for more info.
โญ๏ธ If you are interested in mastering object detection, and standing out from the crowd, feel free to follow me
@ai_fast_track

โญ๏ธ If you could give this thread a quick retweet, it would help others discover this content ๐Ÿ™

โ€ข โ€ข โ€ข

Missing some Tweet in this thread? You can try to force a refresh
ใ€€

Keep Current with AI Fast Track (35/45)

AI Fast Track (35/45) Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @ai_fast_track

5 Dec
Interested in testing several object detection models in one single notebook, in @kaggle Competitions?

Here is a getting started notebook where you could test 5 different models: VFNet, EfficientDet, RetinaNet, Faster-RCNN, and YOLOv5.

๐ŸŽ Kaggle NB: kaggle.com/faridone/iceviโ€ฆ Image
The kaggle notebook is a stripped one. Check out the long version in Colab.

๐ŸŽ Colab NB: airctic.com/0.11.0/gettingโ€ฆ

That way, you have access to 2 platforms where you get familiar with IceVision
We have a #kaggle dedicated channel in our IceVision forum where kagglers share their knowledge.

โ€ข IceVision Forum: discord.gg/JDBeZYK

โ€ข IceVision Repo: github.com/airctic/IceVisโ€ฆ
Read 4 tweets
2 Dec
Detecting small object detection is one of the most challenging tasks in object detection.

โ“ Want to know an effective way to overcome thatโ“

Check out the SAHI integration in IceVision๐ŸงŠ
๐Ÿ‘‡
All IceVision models transparently support SAHI (MMDetection, EfficientDet, Torchvision, and YOLOv5). The results are quite impressive!

SAHI is a very cool library that drastically improves detection of small objects.
๐Ÿ“Œ It is simply used at inference time

๐Ÿ“Œ It leverages high resolution images.

๐Ÿ“Œ Your training process remains the same as usual.

๐Ÿ”Ž At the high level, this is how SAHI works:

1- It takes a high resolution (e.g.1920 x 1024 px), and divide it in patches (e.g. 128 x 128 px)
Read 7 tweets
30 Nov
๐ŸŽ‰๐ŸŽŠ๐ŸฅณDay 30/30: Labeling data and training object detection models are time consuming and expensive.

Here is a Survey of Self-Supervised and Few-Shot Object Detection (FSOD). Those technique aim at alleviating those issues.
The authors have categorized, reviewed, and compared several few-shot and self-supervised object detection methods

๐Ÿ“Œ FSOD is about training a model on novel (unseen) object classes with little data. It still requires prior training on many labeled data of base (seen) classes
๐Ÿ“Œ Self-Supervised Learning (SSL) methods aim at learning representations from unlabeled data which transfer well to downstream tasks such as object detection

๐Ÿ“Œ Combining few-shot and self-supervised object detection is a promising research direction
Read 8 tweets
26 Nov
Day 26/30: General Gaussian Heatmap Labeling is Arbitrary-Oriented Object Detection AOOD

๐Ÿ“Œ It uses an anchor-free object-adaptation label assignment strategy to de๏ฌne positive candidates based on 2D GH, re๏ฌ‚ecting shape and direction features of arbitrary-oriented objects.
๐Ÿ“Œ GGHL improves the AOOD performance with low parameter-tuning and time costs.

๐Ÿ“Œ It is also applicable to most AOOD methods to improve their performance including lightweight models.
๐Ÿ“ฐ Paper: A General Gaussian Heatmap Labeling for Arbitrary-Oriented Object Detection

abs: arxiv.org/abs/2109.12848โ€ฆ
pdf: arxiv.org/pdf/2109.12848โ€ฆ
Read 4 tweets
24 Nov
Day 24/30: ๐Ÿฅ‡ EfficientDet is a very popular object detection model for a good reason!

Letโ€™s see why

๐Ÿ“Œ EfficientDet achieved State-Of-The-Art (SOTA) accuracy while reducing both the size of parameters, and the FLOPS, when it was released. Itโ€™s still a very good contender.
๐Ÿ“Œ Before introducing EfficientDet, models were getting impressively big to achieve SOTA results

โ“ The authors asked the following question:
Is it possible to build a scalable detection architecture with both higher accuracy and better efficiency across # resource constraints?
So, they systematically studied neural network architecture design choices for object detection, and proposed several key optimizations to improve efficiency:

1- A weighted bi-directional feature pyramid network (BiFPN), which allows easy and fast multiscale feature fusion
Read 8 tweets
23 Nov
Iโ€™m at Day 23 of my 30 posts (on Object Detection) in 30 days challenge

I gathered 12 visual summaries on OD Modeling ๐ŸŽ

A lot of people find those posts helpful, follow @ai_fast_track to catch the upcoming posts, and give this tweet a quick retweet ๐Ÿ™

Summary of summaries๐Ÿ‘‡
1- Common Object Detector Architecture you should be familiar with:

2- Four Feature Pyramid Network (FPN) Designs you should know:

Read 14 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us on Twitter!

:(