Florence-2: Fine-tune Microsoft’s Multimodal Model

  Рет қаралды 6,142

Roboflow

Roboflow

Күн бұрын

Learn how to fine-tune Microsoft's Florence-2, a powerful open-source Vision Language Model, for custom object detection tasks. This in-depth tutorial guides you through setting up your environment in Google Colab, preparing datasets, and optimizing the model using LoRA.
Chapters:
- 00:00 Introduction: Unlock the Power of Florence-2
- 01:09 Getting Started: Prepare for VLM Fine-Tuning
- 03:55 Florence-2 in Action: Explore Pre-trained Capabilities
- 07:00 Dataset Deep Dive: PyTorch Data Loading for Florence-2
- 13:02 LoRA: Optimize Your VLM Training
- 14:21 Fine-Tuning: Unleash Florence-2's Custom Object Detection
- 17:30 Model Evaluation: Measure Your VLM's Success
- 21:37 Florence-2 vs Other Computer Vision Models
- 24:09 Conclusion and Next Steps
Resources:
- Roboflow: roboflow.com
- 🔴 Community Session July 3th, 2024 at 08:00 AM PST / 11:00 AM EST / 05:00 PM CET: roboflow.stream
- ⭐ Notebooks GitHub: github.com/roboflow/notebooks
- 📓 Florence notebook: colab.research.google.com/git...
- 🗞 Florence-2 arXiv paper: arxiv.org/abs/2311.06242
- 🗞 Florence-2 overview blog post: blog.roboflow.com/florence-2
- 🗞 Florence-2 fine-tuning blog post: blog.roboflow.com/fine-tune-f...
- 🔗 Florence-2 HF Space: huggingface.co/spaces/gokaygo...
- 🗞 Mean Average Precision (mAP) blog post: blog.roboflow.com/mean-averag...
- 🗞 Confusion Matrix blog post: blog.roboflow.com/what-is-a-c...
Stay updated with the projects I'm working on at github.com/roboflow and github.com/SkalskiP! ⭐

Пікірлер: 39
@abdshomad
@abdshomad 7 күн бұрын
I've been waiting for this tutorial for days. Thank you again for being the first to comprehensively review this new model. Super exited! 🎉🥳
@Roboflow
@Roboflow 7 күн бұрын
As usual you are the first one to comment on the video! Thanks a lot for all the support! 🔥
@jk_c66
@jk_c66 5 күн бұрын
thank you roboflow for providing such nice and lovely tutorials for free and with a nice instructions
@Roboflow
@Roboflow 5 күн бұрын
Pleasure!
@artem-yw8km
@artem-yw8km 5 күн бұрын
Thank you for this turtorial, was working on these kind of setup for a couple of days. You definetely could save lot of time
@Roboflow
@Roboflow 5 күн бұрын
Sad I didn’t save your time this time.
@SatyamKumar-cb2mt
@SatyamKumar-cb2mt 6 күн бұрын
Thanks a ton for this awesome video! Every single term is explained so clearly-it's super helpful. I can't wait to dive in the code and start putting this knowledge to use!
@Roboflow
@Roboflow 6 күн бұрын
Thanks a lot! I really put an effort and try not to fall into a bias (not assume that people know those things).
@SridharanS-vz7re
@SridharanS-vz7re 6 күн бұрын
how to train this model on custom dataset for OCR
@kylewang6704
@kylewang6704 2 күн бұрын
Thank you for the awesome tutorial! I wonder what about the detection accuracy comparing to YOLO based model?
@Roboflow
@Roboflow 2 күн бұрын
We cover that topic in the video ;) something tells me you didn’t watch till the end.
@sandrojunioraraujo3706
@sandrojunioraraujo3706 4 күн бұрын
Wonderful tutorial! Could you make a tutorial about how to fine tune florence 2 for the segmentation task?
@suphotnarapong355
@suphotnarapong355 6 күн бұрын
Thank you
@Jordufi
@Jordufi 7 күн бұрын
Nice video, as usual
@Roboflow
@Roboflow 7 күн бұрын
Thanks a lot!
@user-mc7tg4pf3i
@user-mc7tg4pf3i 5 күн бұрын
Hell Sir Thanks for your all videos and efforts. I am following your channel, but I request you please upload one detail video on how to finetuning Yolov5 model for custome images classification.
@Roboflow
@Roboflow 5 күн бұрын
Does YOLOv5 support classification?
@user-mc7tg4pf3i
@user-mc7tg4pf3i 2 күн бұрын
@@Roboflow Yes
@VLM234
@VLM234 7 күн бұрын
Very informative video. Thanks for making auch a valuable video free of cost. Just one request when your you make tutorials if possible try to do inferencing, training or fine tuning on agricultural or satellite related data.
@Roboflow
@Roboflow 7 күн бұрын
Next time I will try to find some cool datasets from this domains
@yj1548
@yj1548 5 күн бұрын
Good video.and I'm curious about what can be done to improve mispelled class names on object detection tasks,do you have any ideas?
@Roboflow
@Roboflow 5 күн бұрын
I think you asked me this question on Twitter, but let me answers here as well. 1. Longer training could fix it. 2. Fuzzy class matching. In the video we filter out anything that is not exact match. Hamming distance for example.
@dabaizhang-x5b
@dabaizhang-x5b 4 күн бұрын
Master, could you please tell me if Florence-2 can perform SER (Semantic Entity Recognition) and RE (Relation Extraction) tasks? If so, what should my dataset look like? 🤔
@jimshtepa5423
@jimshtepa5423 5 күн бұрын
can you please upload recording of teh community session for those of us who are in different zone or might otherwise miss the call?
@Roboflow
@Roboflow 5 күн бұрын
Sure! All our community sessions are available to re-watch on YT channel
@3DFinalCut1
@3DFinalCut1 4 күн бұрын
Thank you for this very informative video. Something like this helps enormously. Dziękuję! I have a question and maybe someone here can give me a tip. I am looking for a tool that searches for similar images in a folder and shows me the results so that I can clean up the data set later. I have already found tools that do this, but they mainly work with image hashing methods or use fuzzy matching algorithms. But I wonder if there aren't already tools that use AI to solve this task. Does anyone use such a tool?
@Roboflow
@Roboflow 4 күн бұрын
You can make it happen using CLIP model. We covered that topic here: kzbin.info/www/bejne/j6mtnHhse9t6fJY
@8-P
@8-P 6 күн бұрын
For the community session I have a couple of (beginner) questions: - the google collabs on roboflow seem to be linux based, is there an easy way to make them work on windows? - in general, how do I download a model (YOLO) to use in a python app (on windows) - are there models that would run for realtime video detection on a regular laptop with an integrated iGPU? - I am planning to use a YOLO model for a sports live stream, but only have a simple 3 Year old mid range laptop on me - would it be better to send the stream over to my desktop PC with an Rtx3060Ti-8GB and let the model run there (and send back the detection back and sync on the laptop) - if a laptop is underpowered? - for simple applications, like the realtime sports detection of yours, would it be better to run it on my own hardware or investigate in cloud servers for inference? Thank you very much for your tutorials, the help a lot!
@geniusxbyofejiroagbaduta8665
@geniusxbyofejiroagbaduta8665 6 күн бұрын
Thanks Sir. Please do fine-tuning for Oct, captioning and segmentation task
@Roboflow
@Roboflow 6 күн бұрын
Did you tried to run OCR with pre-trained model?
@UhuruSsemakula
@UhuruSsemakula 4 күн бұрын
Can you please make one for Object detection using web camera?
@Roboflow
@Roboflow 4 күн бұрын
You mean using Florence-2 and Webcam? Or webcam in general?
@UhuruSsemakula
@UhuruSsemakula 4 күн бұрын
Yes Florence-2 and Webcam
@richardobiri2642
@richardobiri2642 3 күн бұрын
what if I want to detect fake and authentic certificates ? please any help
@geniusxbyofejiroagbaduta8665
@geniusxbyofejiroagbaduta8665 6 күн бұрын
Please sir also tech us how to annotate with it
@Roboflow
@Roboflow 6 күн бұрын
You mean how to automatically annotate images?
@bladethirst1
@bladethirst1 6 күн бұрын
Is this applicable to grade handwritten pdf math assignments?
@Roboflow
@Roboflow 6 күн бұрын
Florence-2 can be really good at OCR processing of handwritten text. Not sure about math equations. We would need to confirm that.
@bladethirst1
@bladethirst1 6 күн бұрын
@@Roboflow {'': 'In this image we can see a book with some text on it.'} This is the test output of a handwritten math problem deduction, is there someway to get more detailed caption or the OCR output?
БОЛЬШОЙ ПЕТУШОК #shorts
00:21
Паша Осадчий
Рет қаралды 8 МЛН
Heartwarming: Stranger Saves Puppy from Hot Car #shorts
00:22
Fabiosa Best Lifehacks
Рет қаралды 19 МЛН
Happy 4th of July 😂
00:12
Pink Shirt Girl
Рет қаралды 28 МЛН
The moment we stopped understanding AI [AlexNet]
17:38
Welch Labs
Рет қаралды 324 М.
What is Mean Average Precision (mAP)?
13:02
Roboflow
Рет қаралды 45 М.
OCR Using Microsoft's Florence-2 Vision Model on Free Google Colab
16:09
What is an LLM Router?
9:16
Sam Witteveen
Рет қаралды 21 М.
How To Fine-tune LLaVA Model (From Your Laptop!)
16:47
How to Use MMDetection | Train RTMDet on a Custom Dataset
15:28
Florence 2 Fine-Tuning: How to Train a Vision Language Model?
9:33
Mervin Praison
Рет қаралды 4,1 М.
When you have 32GB RAM in your PC
0:12
Deadrig Gaming
Рет қаралды 1,9 МЛН
Мой инст: denkiselef. Как забрать телефон через экран.
0:54
YOTAPHONE 2 - СПУСТЯ 10 ЛЕТ
15:13
ЗЕ МАККЕРС
Рет қаралды 177 М.