Auto-Labeling Images with Florence 2 and SAM

FIRAS TLILI

🎯 Auto-Labeling Images with Microsoft Florence 2 and Meta AI SAM

Unlock the potential of Florence 2 & SAM with this step-by-step guide to automatically label images and simplify your AI workflows!
This beginner-friendly project showcases how to leverage Microsoft’s Florence 2 multimodal model and Meta AI's SAM multimodal model for:
🏷️ Automatic data labeling
đź§  Object detection
🖼️ Image classification
đź§© Segmentation
Perfect for AI beginners and enthusiasts alike, these two notebooks provides a clear, well-structured approach to mastering modern AI tools like Hugging Face and Google Colab.

🚀 What You’ll Learn

âś… Set up and use Florence 2 and SAM for various vision tasks
🗂️ Process image data and handle prompts
🔍 Auto-generate annotations for models like YOLOv9
đź”§ Use platforms like Roboflow to enhance your pipeline
đź§  Understand the power of multimodal AI

🖼️ Auto Object Detection with Florence-2

🖼️ Auto Image Segmentation with SAM

đź›  Tech Stack

Python
Microsoft Florence 2
Hugging Face
Google Colab
Roboflow

đź“‚ How to Run

# Clone the repo
git clone https://github.com/TLILIFIRAS/Automatic-Data-Annotation-With-LLMs.git
cd Automatic-Data-Annotation-With-LLMs

# Set up the environment
pip install -r requirements.txt

# Launch the notebook of Data_Labeling with Florence-2
jupyter notebook Automatic_Data_Labeling_with_Florence_2.ipynb

# Launch the notebook of Data_Labeling for Image Segmentation
jupyter notebook Automatic_Data_Annotation_for_Image_Segmentation.ipynb
Or run it on Google Colab:

📸 Example Use Cases

đź›  Preprocessing datasets for object detection with YOLOv9
đź§Ş Creating labeled datasets for image segmentation
⚙️ Rapid prototyping of AI models without manual annotation

🤝 Contributions & Feedback

Have suggestions or improvements? Feel free to open a pull request or issue. Let’s build smarter AI pipelines together!
Like this project

Posted May 2, 2025

Auto-label images using Florence 2 & SAM for AI workflows.

AI-Generated Imagery with Hugging Face Diffusion Models
AI-Generated Imagery with Hugging Face Diffusion Models
AI-Generated Imagery with Hugging Face Diffusion Models
AI-Generated Imagery with Hugging Face Diffusion Models
Football Video Analysis System with YOLO, OpenCV, and Python
Football Video Analysis System with YOLO, OpenCV, and Python
End-to-End Medical Chatbot Project
End-to-End Medical Chatbot Project