Image Labeling API | Automatically Label Computer Vision Data
Key Takeaways
The Roboflow Inference API is used for automatic image labeling, which can save time when expanding a dataset or kickstarting a new one. The API can be leveraged to auto-annotate images using an existing model.
Full Transcript
hi everybody it's Peter from roboflow here let me show you how easy it is to use ruleflow inference API to how to annotate your images this is really useful in at least two cases first of all when you already have a data set and when you already trained their model using roboflow but you notice that the model under performs in some specific edge cases it is very common practice to gather new images that would represent that edge case and add them to your data set and retrain the model you can leverage your existing model and roboflow inference API to Auto annotate those images second of all when you would like to Kickstart your new data set and you noticed some model in roboflow universe that have some classes that you would like to use or some very similar objects then you could leverage that model to Auto annotate your new images okay so here I am logged into my roboflow account and I would like to add new images into my food herbal player detection project I already have the data set that is annotated and I already have the model that is trained using the data set I just want to add new images to do that we can use roboflow Auto annotate script that is accessible in one of our repositories the link to that script is in the description okay so let's follow installation instructions first of all we need to clone the Repository and then we need to get inside the directory containing the script the next step is to create python virtual environment to separate your code over here from other projects that you have on your machine so let's copy that command to create vmf let's get into that VM now we need to install the script inside our virtual environment and we are basically ready to go the next step is to set up virtual environment variable with your roboflow API key so let's copy that part of the command into the terminal and the API key can be found in your roboflow profile under the settings roboflow roboflow API and the private key over here is the one that we are looking for so let's copy that go back to the terminal and instead of those three dots let's paste the API key over here and hit enter it is important to keep your API key as private as possible don't commit that into your repository especially when it's public now the last step is to actually execute the command to annotate so let's copy that from the repository readme into the terminal and we need to fill those missing pieces over here in the meantime I decided to increase the font size in the terminal a bit so it would be a little bit easier for you to read what I'm doing the first thing is input image directory I already prepared a set of images that I would like to annotate and they are located over here in that directory so I will use PWD to have full path to that directory and inside that directory when I hit LS I see images directory so here under source image directory I will just paste the path to the general directory and then I will type images at the end I want the results to be safe in the same directory just under different sub directory so let's call it labels now I need to provide information about the model that I would like to use to Auto annotate so let's go back to roboflow into my projects football player detection deploy and over here I need to get project ID and model version so I have my project ID in the path over here so it's football player detection and those four characters at the end so let's copy that and the version of the model that I would like to use is the second one and the only thing that is left to do is press the enter and let it annotate automatically so you immediately see that we see roboflow workspace being fetched and roboflow project being fed and now we just Loop over the images and Save The annotation Json in the labels directory we can see it happening in the real time if we go to labels we see that the labels for already processed images already here and it's done so let's test if my newly annotated images will get correctly uploaded into my already existing project I rearranged my windows a little bit so it would be easy for me to drag and drop images and labels so let's now go to annotate upload more images grab those two directories and just drop them over here and we immediately see that the images were loaded but also on the thumbnail we see that annotations are also visible you can examine That Into The annotation tool and here on the slightly larger screen we see that all the classes bottle keeper player referee were loaded and correctly annotated now we are ready for data set refined so over here for example our current model we're not able to correctly detect that player so we would be able to just manually add that bounding box around the player over here and continue the work for all other images this way we can add more images but most of the heavy lifting is already done by our model and that's it I hope that you find it useful I definitely do I use it all the time during model refinement to spend as little time as possible on labeling
Original Description
GitHub repo: https://github.com/roboflow/auto-annotate
Automatic image labeling can save you tons of time and is especially useful when:
1. You already have a dataset and a model trained and you want to expand your dataset with a new batch of images to retrain the model and improve its accuracy. You can use the model you already have to automatically apply annotations.
2. You want to create a new dataset, but you have found on a model capable of detecting objects visually similar to those in your future dataset. You can do automatic annotation and then refine the labels by changing their class name or removing redundant bounding boxes.
Watch on YouTube ↗
(saves to browser)
Sign in to unlock AI tutor explanation · ⚡30
Playlist
Uploads from Roboflow · Roboflow · 0 of 60
← Previous
Next →
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
YOLOv3 PyTorch Notebook Tutorial
Roboflow
How to Train YOLOv4 on a Custom Dataset (PyTorch)
Roboflow
How to Train YOLOv5 on a Custom Dataset
Roboflow
How to Use the Roboflow Dataset Health Check
Roboflow
What is Mean Average Precision (mAP)?
Roboflow
How to Use the Roboflow Model Library
Roboflow
How to Train EfficientDet in TensorFlow 2 Object Detection
Roboflow
How to Train YOLO v4 Tiny (Darknet) on a Custom Dataset
Roboflow
Ask the Roboflow Team Anything - Episode 1
Roboflow
Exploring The COCO Dataset
Roboflow
Community Spotlight: Improving Uno with Computer Vision
Roboflow
Mosaic Data Augmentation - Deep Dive
Roboflow
Hands on with the OAK-1
Roboflow
Glenn Jocher: What is New in YOLO v5?
Roboflow
How to Use Amazon Rekognition Custom Labels and Roboflow to Build an Object Detection Model
Roboflow
An Interview with Brandon Gilles, Luxonis Founder and OAK Chief Architect
Roboflow
How to Train a Custom Mobile Object Detection Model (with YOLOv4 Tiny and TensorFlow Lite)
Roboflow
Tackling the Small Object Problem in Object Detection
Roboflow
Fast.ai v2 Released - What's New?
Roboflow
Teaser: Roboflow Train (1-Click Computer Vision AutoML)
Roboflow
How to Train a Custom Resnet34 Image Classification Model
Roboflow
How to Label Images for Object Detection with CVAT
Roboflow
Deploy YOLOv5 to Jetson Xavier NX at 30 FPS
Roboflow
Elisha Odemakinde Hosts Roboflow ML Engineer, Jacob Solawetz
Roboflow
Getting Started with VoTT - Computer Vision Annotation
Roboflow
How to Manage Classes in Object Detection (Rename, Combine, Balance)
Roboflow
How to Train YOLOv4 on a Custom Dataset in Darknet
Roboflow
Is Grayscale a Preprocessing or Augmentation Step in Computer Vision?
Roboflow
Getting Started with Image Data Augmentation
Roboflow
Glenn Jocher: Image Augmentation in YOLO v5 and Beyond
Roboflow
GA Hosts Roboflow - Healthcare and AI
Roboflow
How do self driving cars know when to stop?
Roboflow
What is PASCAL VOC XML?
Roboflow
AutoML Showdown: Google vs Amazon vs Microsoft
Roboflow
How is computer vision changing manufacturing?
Roboflow
The Alphabet in American Sign Language
Roboflow
Luxonis OAK-D: Computer Vision on Device
Roboflow
How to Train a Custom Faster R-CNN Model with Facebook AI's Detectron2 | Use Your Own Dataset
Roboflow
TensorFlow vs PyTorch: Fireside
Roboflow
Occlusion Techniques in Computer Vision
Roboflow
A Customizable Web Application for Your Computer Vision Model
Roboflow
Model Tradeoffs and the Future of Computer Vision
Roboflow
Designing an Augmented Reality Board Game App
Roboflow
YOLOv4 - Advanced Tactics
Roboflow
How to Use CreateML and Build a Computer Vision iPhone App | AR Object Detection
Roboflow
Fireside Chat: Computer Vision in Agriculture
Roboflow
Scaled-YOLOv4 Tops EfficientDet: Research Rundown
Roboflow
What is Image Preprocessing?
Roboflow
Building a Community of Creators with BlkArthouse and Von Deon
Roboflow
How to Train Scaled-YOLOv4 to Detect Custom Objects
Roboflow
Intro to Computer Vision: Fireside
Roboflow
The Best Way to Annotate Images for Object Detection
Roboflow
The Computer Vision Process: Fireside
Roboflow
How to Annotate Images with Your Team Using Roboflow
Roboflow
Introducing the Roboflow Object Count Histogram
Roboflow
How Fast is the M1 at Machine Learning? Benchmarking Apple's M1 and Intel's Chips
Roboflow
CLIP: OpenAI's amazing new zero-shot image classifier
Roboflow
How I hacked my Nest camera to run custom models
Roboflow
Getting Started with the Roboflow Inference API
Roboflow
Transfer Learning in Computer Vision | What, How, Why
Roboflow
More on: CV Basics
View skill →Related AI Lessons
⚡
⚡
⚡
⚡
When the Camera Becomes an Exam Proctor: Building an AI-Powered Exam Monitoring System with…
Medium · Python
When the Camera Becomes an Exam Proctor: Building an AI-Powered Exam Monitoring System with…
Medium · Deep Learning
When the Camera Becomes an Exam Proctor: Building an AI-Powered Exam Monitoring System with…
Medium · Cybersecurity
Your Face Is About to Become Your Phone Number
Dev.to AI
🎓
Tutor Explanation
DeepCamp AI