back to home

roboflow / notebooks

A collection of tutorials on state-of-the-art computer vision models and techniques. Explore everything from foundational architectures like ResNet to cutting-edge models like RF-DETR, YOLO11, SAM 3, and Qwen3-VL.

9,196 stars
1,419 forks
74 issues
Jupyter NotebookPython

AI Architecture Analysis

This repository is indexed by RepoMind. By analyzing roboflow/notebooks in our AI interface, you can instantly generate complete architecture diagrams, visualize control flows, and perform automated security audits across the entire codebase.

Our Agentic Context Augmented Generation (Agentic CAG) engine loads full source files into context, avoiding the fragmentation of traditional RAG systems. Ask questions about the architecture, dependencies, or specific features to see it in action.

Embed this Badge

Showcase RepoMind's analysis directly in your repository's README.

[![Analyzed by RepoMind](https://img.shields.io/badge/Analyzed%20by-RepoMind-4F46E5?style=for-the-badge)](https://repomind-ai.vercel.app/repo/roboflow/notebooks)
Preview:Analyzed by RepoMind

Repository Summary (README)

Preview
<div align="center"> <p> <a align="center" href="" target="_blank"> <img width="850" src="https://raw.githubusercontent.com/roboflow/notebooks/main/assets/roboflow-notebooks-banner.png" > </a> </p> <br>

notebooks | inference | autodistill | RF-DETR

<br> <div align="center"> <a href="https://youtube.com/roboflow"> <img src="https://media.roboflow.com/notebooks/template/icons/purple/youtube.png?ik-sdk-version=javascript-1.4.3&updatedAt=1672949634652" width="3%" /> </a> <img src="https://github.com/SkalskiP/SkalskiP/blob/master/icons/transparent.png" width="3%"/> <a href="https://roboflow.com"> <img src="https://media.roboflow.com/notebooks/template/icons/purple/roboflow-app.png?ik-sdk-version=javascript-1.4.3&updatedAt=1672949746649" width="3%" /> </a> <img src="https://github.com/SkalskiP/SkalskiP/blob/master/icons/transparent.png" width="3%"/> <a href="https://www.linkedin.com/company/roboflow-ai/"> <img src="https://media.roboflow.com/notebooks/template/icons/purple/linkedin.png?ik-sdk-version=javascript-1.4.3&updatedAt=1672949633691" width="3%" /> </a> <img src="https://github.com/SkalskiP/SkalskiP/blob/master/icons/transparent.png" width="3%"/> <a href="https://docs.roboflow.com"> <img src="https://media.roboflow.com/notebooks/template/icons/purple/knowledge.png?ik-sdk-version=javascript-1.4.3&updatedAt=1672949634511" width="3%" /> </a> <img src="https://github.com/SkalskiP/SkalskiP/blob/master/icons/transparent.png" width="3%"/> <a href="https://discuss.roboflow.com"> <img src="https://media.roboflow.com/notebooks/template/icons/purple/forum.png?ik-sdk-version=javascript-1.4.3&updatedAt=1672949633584" width="3%" /> <img src="https://github.com/SkalskiP/SkalskiP/blob/master/icons/transparent.png" width="3%"/> <a href="https://blog.roboflow.com"> <img src="https://media.roboflow.com/notebooks/template/icons/purple/blog.png?ik-sdk-version=javascript-1.4.3&updatedAt=1672949633605" width="3%" /> </a> </a> </div> </div>

👋 hello

This repository offers a growing collection of computer vision tutorials. Learn to use SOTA models like YOLOv11, SAM 2, Florence-2, PaliGemma 2, and Qwen2.5-VL for tasks ranging from object detection, segmentation, and pose estimation to data extraction and OCR. Dive in and explore the exciting world of computer vision!

<!--- AUTOGENERATED-NOTEBOOKS-TABLE --> <!--- WARNING: DO NOT EDIT THIS TABLE MANUALLY. IT IS AUTOMATICALLY GENERATED. HEAD OVER TO CONTRIBUTING.MD FOR MORE DETAILS ON HOW TO MAKE CHANGES PROPERLY. -->

🚀 model tutorials (58 notebooks)

notebookopen in colab / kaggle / sagemaker studio labcomplementary materialsrepository / paper
How to Track Objects with RF-DETR and ByteTrack TrackerColab KaggleGitHub arXiv
Fine-Tune YOLO26 on Object Detection DatasetColab KaggleRoboflowGitHub
Fine-Tune YOLO26 on Instance Segmentation DatasetColab KaggleRoboflowGitHub
Segment Images with SAM3Colab KaggleRoboflow YouTubeGitHub arXiv
Segment Videos with SAM3Colab KaggleRoboflow YouTubeGitHub arXiv
Open Vocabulary Object Detection with Qwen3-VLColab KaggleGitHub
Fine-Tune RF-DETR Segmentation on Custom DatasetColab KaggleRoboflowGitHub arXiv
Zero-Shot Object Detection and Segmentation with Google Gemini 2.5Colab KaggleRoboflowarXiv
Fine-Tune RF-DETR on Object Detection DatasetColab KaggleRoboflow YouTubeGitHub arXiv
Zero-Shot Object Detection and Segmentation with YOLOEColab KaggleRoboflow YouTubeGitHub arXiv
Fine-Tune YOLOv12 on Object Detection DatasetColab KaggleRoboflowGitHub arXiv
Zero-Shot Object Detection with Qwen2.5-VLColab KaggleRoboflow YouTubeGitHub arXiv
Fine-Tune Qwen2.5-VL for JSON Data ExtractionColab KaggleYouTubeGitHub arXiv
Fine-Tune PaliGemma2 on Object Detection DatasetColab KaggleRoboflowGitHub arXiv
Fine-Tune PaliGemma2 for JSON Data ExtractionColab KaggleRoboflowGitHub arXiv
Fine-Tune PaliGemma2 for LaTeX OCRColab KaggleRoboflowGitHub arXiv
Fine-Tune SAM-2.1Colab KaggleRoboflow YouTubeGitHub
Fine-Tune GPT-4o on Object Detection DatasetColab KaggleRoboflow YouTube
Fine-Tune YOLO11 on Object Detection DatasetColab KaggleRoboflow YouTubeGitHub
Fine-Tune YOLO11 on Instance Segmentation DatasetColab KaggleRoboflow YouTubeGitHub
Segment Images with SAM2Colab KaggleRoboflow YouTubeGitHub arXiv
Segment Videos with SAM2Colab KaggleRoboflow YouTubeGitHub arXiv
Fine-Tune RT-DETR on Object Detection DatasetColab KaggleRoboflowGitHub arXiv
Fine-Tune Florence-2 on Object Detection DatasetColab KaggleRoboflow YouTubearXiv
Run Different Vision Tasks with Florence-2Colab KaggleRoboflow YouTubearXiv
Fine-Tune PaliGemma on Object Detection DatasetColab KaggleRoboflow YouTubeGitHub arXiv
Fine-Tune YOLOv10 on Object Detection DatasetColab KaggleRoboflowGitHub arXiv
Zero-Shot Object Detection with YOLO-WorldColab KaggleRoboflow YouTubeGitHub arXiv
Fine-Tune YOLOv9 on Object Detection DatasetColab KaggleRoboflow YouTubeGitHub arXiv
Fine-Tune RTMDet on Object Detection DatasetColab KaggleRoboflow YouTubeGitHub arXiv
Segment Images with FastSAMColab KaggleRoboflow YouTubeGitHub arXiv
Fine-Tune YOLO-NAS on Object Detection DatasetColab KaggleRoboflow YouTubeGitHub
Segment Images with Segment Anything Model (SAM)Colab KaggleRoboflow YouTubeGitHub arXiv
Zero-Shot Object Detection with Grounding DINOColab KaggleRoboflow YouTubeGitHub arXiv
Fine-Tune DETR Transformer on Object Detection DatasetColab KaggleRoboflow YouTubeGitHub arXiv
Classify Images with DINOv2Colab KaggleRoboflowGitHub arXiv
Fine-Tune YOLOv8 on Object Detection DatasetColab KaggleRoboflow YouTubeGitHub
Fine-Tune YOLOv8 on Pose Estimation DatasetColab KaggleRoboflowGitHub
Fine-Tune YOLOv8 on Oriented Bounding Boxes (OBB) DatasetColab KaggleRoboflowGitHub
Fine-Tune YOLOv8 on Instance Segmentation DatasetColab KaggleRoboflow YouTubeGitHub
Fine-Tune YOLOv8 on Classification DatasetColab KaggleRoboflowGitHub
Fine-Tune YOLOv7 on Object Detection DatasetColab KaggleRoboflow YouTubeGitHub arXiv
Fine-Tune YOLOv7 on Instance Segmentation DatasetColab KaggleRoboflow YouTubeGitHub arXiv
Fine-Tune MT-YOLOv6 on Object Detection DatasetColab KaggleRoboflow YouTubeGitHub arXiv
Fine-Tune YOLOv5 on Object Detection DatasetColab KaggleRoboflow YouTubeGitHub
Fine-Tune YOLOv5 on Classification DatasetColab KaggleRoboflow YouTubeGitHub
Fine-Tune YOLOv5 on Instance Segmentation DatasetColab KaggleRoboflow YouTubeGitHub
Fine-Tune Faster RCNN on Instance Segmentation DatasetColab KaggleRoboflow YouTubeGitHub arXiv
Fine-Tune SegFormer on Instance Segmentation DatasetColab KaggleRoboflow YouTubeGitHub arXiv
Fine-Tune ViT on Classification DatasetColab KaggleRoboflow YouTubeGitHub arXiv
Fine-Tune Scaled-YOLOv4 on Object Detection DatasetColab KaggleRoboflow YouTubeGitHub arXiv
Fine-Tune YOLOS on Object Detection DatasetColab KaggleRoboflow YouTubeGitHub arXiv
Fine-Tune YOLOR on Object Detection DatasetColab KaggleRoboflow YouTubeGitHub arXiv
Fine-Tune YOLOX on Object Detection DatasetColab KaggleRoboflow YouTubeGitHub arXiv
Fine-Tune ResNet34 on Classification DatasetColab KaggleRoboflow YouTube
Image Classification with OpenAI ClipColab KaggleRoboflow YouTubeGitHub arXiv
Fine-Tune YOLOv4-tiny Darknet on Object Detection DatasetColab KaggleRoboflow YouTubeGitHub arXiv
Train a YOLOv8 Classification Model with No LabelingColab KaggleRoboflowGitHub

📍 tracker tutorials (2 notebooks)

notebookopen in colab / kaggle / sagemaker studio labcomplementary materialsrepository / paper
How to Track Objects with RF-DETR and ByteTrack TrackerColab KaggleGitHub arXiv
How to Track Objects with RF-DETR and SORT TrackerColab KaggleGitHub arXiv

🛠️ computer vision skills (23 notebooks)

notebookopen in colab / kaggle / sagemaker studio labcomplementary materialsrepository / paper
Basketball AI: Detect NBA 3 Second ViolationColab KaggleRoboflow
Basketball AI: How to Detect Track and Identify Basketball PlayersColab KaggleRoboflow YouTube
Football AIColab KaggleRoboflow YouTubeGitHub
Auto-Annotate Dataset with GroundedSAM 2Colab KaggleRoboflowGitHub
Run YOLOv7 Object Detection with OpenVINO + TorchORTColab KaggleRoboflowGitHub arXiv
Estimate Vehicle Speed with YOLOv8Colab KaggleRoboflow YouTubeGitHub
Detect and Count Objects in Polygon Zone with YOLOv5 / YOLOv8 / Detectron2 + SupervisionColab KaggleRoboflow YouTubeGitHub
Track and Count Vehicles with YOLOv8 + ByteTRACK + SupervisionColab KaggleRoboflow YouTubeGitHub arXiv
Football Players Tracking with YOLOv5 + ByteTRACKColab KaggleRoboflow YouTubeGitHub arXiv
Auto Train YOLOv8 Model with AutodistillColab KaggleRoboflow YouTubeGitHub
Image Embeddings Analysis - Part 1Colab KaggleYouTubeGitHub arXiv
Automated Dataset Annotation and Evaluation with Grounding DINO and SAMColab KaggleRoboflow YouTubeGitHub arXiv
Automated Dataset Annotation and Evaluation with Grounding DINOColab KaggleYouTubeGitHub arXiv
Roboflow Video Inference with Custom AnnotatorsColab KaggleRoboflowGitHub
DINO-GPT-4V Object DetectionColab KaggleRoboflow
Train a Segmentation Model with No LabelingColab KaggleRoboflowGitHub
DINOv2 Image RetrievalColab KaggleGitHub arXiv
Vector Analysis with Scikit-learn and BokehColab KaggleRoboflow
RF100 Object Detection Model BenchmarkingColab KaggleRoboflow YouTubeGitHub arXiv
Create Segmentation Masks with RoboflowColab KaggleRoboflow
How to Use PolygonZone and Roboflow SupervisionColab KaggleRoboflow
Train a Package Detector With Two Labeled ImagesColab KaggleRoboflowGitHub
Image-to-Image Search with CLIP and faissColab KaggleRoboflow
<!--- AUTOGENERATED-NOTEBOOKS-TABLE -->

🎬 videos

Almost every week we create tutorials showing you the hottest models in Computer Vision. 🔥 Subscribe, and stay up to date with our latest YouTube videos!

<p align="left"> <a href="https://youtu.be/CilXrt3S-ws" title="How to Choose the Best Computer Vision Model for Your Project"><img src="https://github.com/roboflow/notebooks/assets/26109316/73a01d3b-cf70-40c3-a5e4-e4bc5be38d42" alt="How to Choose the Best Computer Vision Model for Your Project" width="300px" align="left" /></a> <a href="https://youtu.be/CilXrt3S-ws" title="How to Choose the Best Computer Vision Model for Your Project"><strong>How to Choose the Best Computer Vision Model for Your Project</strong></a> <div><strong>Created: 26 May 2023</strong> | <strong>Updated: 26 May 2023</strong></div> <br/> In this video, we will dive into the complexity of choosing the right computer vision model for your unique project. From the importance of high-quality datasets to hardware considerations, interoperability, benchmarking, and licensing issues, this video covers it all... </p> <br/> <p align="left"> <a href="https://youtu.be/oEQYStnF2l8" title="Accelerate Image Annotation with SAM and Grounding DINO"><img src="https://github.com/SkalskiP/SkalskiP/assets/26109316/ae1ca38e-40b7-4b35-8582-e8ea5de3806e" alt="Accelerate Image Annotation with SAM and Grounding DINO" width="300px" align="left" /></a> <a href="https://youtu.be/oEQYStnF2l8" title="Accelerate Image Annotation with SAM and Grounding DINO"><strong>Accelerate Image Annotation with SAM and Grounding DINO</strong></a> <div><strong>Created: 20 Apr 2023</strong> | <strong>Updated: 20 Apr 2023</strong></div> <br/> Discover how to speed up your image annotation process using Grounding DINO and Segment Anything Model (SAM). Learn how to convert object detection datasets into instance segmentation datasets, and see the potential of using these models to automatically annotate your datasets for real-time detectors like YOLOv8... </p> <br/> <p align="left"> <a href="https://youtu.be/D-D6ZmadzPE" title="SAM - Segment Anything Model by Meta AI: Complete Guide"><img src="https://github.com/SkalskiP/SkalskiP/assets/26109316/6913ff11-53c6-4341-8d90-eaff3023c3fd" alt="SAM - Segment Anything Model by Meta AI: Complete Guide" width="300px" align="left" /></a> <a href="https://youtu.be/D-D6ZmadzPE" title="SAM - Segment Anything Model by Meta AI: Complete Guide"><strong>SAM - Segment Anything Model by Meta AI: Complete Guide</strong></a> <div><strong>Created: 11 Apr 2023</strong> | <strong>Updated: 11 Apr 2023</strong></div>

<br/> Discover the incredible potential of Meta AI's Segment Anything Model (SAM)! We dive into SAM, an efficient and promptable model for image segmentation, which has revolutionized computer vision tasks. With over 1 billion masks on 11M licensed and privacy-respecting images, SAM's zero-shot performance is often superior to prior fully supervised results... </p>

💻 run locally

We try to make it as easy as possible to run Roboflow Notebooks in Colab and Kaggle, but if you still want to run them locally, below you will find instructions on how to do it. Remember don't install your dependencies globally, use venv.

# clone repository and navigate to root directory
git clone git@github.com:roboflow-ai/notebooks.git
cd notebooks

# setup python environment and activate it
python3 -m venv venv
source venv/bin/activate

# install and run jupyter notebook
pip install notebook
jupyter notebook

☁️ run in sagemaker studio lab

You can now open our tutorial notebooks in Amazon SageMaker Studio Lab - a free machine learning development environment that provides the compute, storage, and security—all at no cost—for anyone to learn and experiment with ML.

Stable Diffusion Image GenerationYOLOv5 Custom Dataset TrainingYOLOv7 Custom Dataset Training
SageMakerSageMakerSageMaker

🐞 bugs & 🦸 contribution

Computer Vision moves fast! Sometimes our notebooks lag a tad behind the ever-pushing forward libraries. If you notice that any of the notebooks is not working properly, create a bug report and let us know.

If you have an idea for a new tutorial we should do, create a feature request. We are constantly looking for new ideas. If you feel up to the task and want to create a tutorial yourself, please take a peek at our contribution guide. There you can find all the information you need.

We are here for you, so don't hesitate to reach out.