This article is a mirror article of machine translation, please click here to jump to the original article.

View: 1664|Reply: 3

Two commonly used data sets for object detection, COCO and VOC

[Copy link]
Posted on 10/30/2024 10:35:37 PM | | |
Problems to solve:

What is a dataset?
What are COCO and VOCs?
What format are they?

Q1: What is a dataset?

A dataset, literally, is a collection of data.
Datasets typically contain sample data used to train and validate the model, which can be in the form of numbers, text, images, audio, or video.
Datasets are used to train algorithmic models, enabling the model to learn patterns and patterns in the data.
Datasets are usually divided into:Training set, validation set, and test setThree subsets.
The training set is used to train the machine learning model, the validation set is used to select and adjust the model's hyperparameters and structure, and the test set is used to evaluate the model's performance and accuracy.
Training sets, validation sets, and test sets are commonly understood:
Training set: Just like a lesson for students, we use this data to teach machine learning models how to recognize and process information.
Validation sets: It's like giving students a quiz to check how well the model is learning and see what needs to be adjusted.
Test set: It's like giving students a final exam, using this data to finally evaluate the model's performance to see if it learns well.

Q2: What are COCO and VOC?

COCO (Common Objects in Context) and VOC (Visual Object Classes) are two well-known datasets in the field of computer vision, which are widely used in image recognition and object detection tasks.


Create:


The COCO dataset was created by Microsoft Research.
The VOC dataset was created by the computer vision group at the University of Oxford in the United Kingdom.


Introduce:


COCO is a large-scale dataset for image recognition, segmentation, and caption generation.
It contains over 91,000 images, each with detailed labeling and segmentation.
The COCO dataset emphasizes the context of objects in natural scenes, i.e., objects often appear with other objects and have complex scenes and backgrounds.
COCO datasets are commonly used to evaluate the performance of tasks such as object detection, image segmentation, and image caption generation.
VOC is an older image recognition and object detection dataset.
It contains 20,000 images in about 20 categories, each with precise area callouts and category labels.
VOC datasets focus more on category identification and object detection than on the context of images.
The VOC Challenge is an important competition in the field of computer vision, which promotes the development of object detection and image recognition technology.

Peculiarity:

VOC datasets are characterized by the fact that they provide very precise annotation, especially in object detection tasks. The objects in each image are precisely labeled with a rectangular box, and each object has a category label. This precise annotation makes VOC datasets ideal for training and testing object detection algorithms, as they can learn how to accurately identify and locate objects in images.
While the COCO dataset also provides detailed annotations, it focuses on broader image recognition and scene understanding. Annotations in COCO include object detection, segmentation, and subtitle generation. This means that COCO's data includes not only the rectangular box of the object, but also more complex scene information and relationships between objects. Therefore, the COCO dataset is more suitable for training and testing more advanced computer vision tasks, such as scene understanding, image caption generation, etc.

Summary: VOC can be identified and located more quickly and accurately, mainly because its annotation method is very suitable for object detection tasks, while COCO provides richer scene information and is suitable for more complex visual tasks. Both have their own focuses and are very important datasets in computer vision research.

Q3: What are their formats?

  • The labeling format of VOC datasets is XML. Each image corresponds to an XML file.
  • The labeling format of the COCO dataset is JSON or txt. All target box annotations are in the same JSON or txt.


Original:The hyperlink login is visible.




Previous:Windows install the Conda environment management tool
Next:MikroTik (2) prohibits a device from accessing the external network, only internal network access
 Landlord| Posted on 11/1/2024 11:39:47 AM |
The Coco dataset is a JSON file that contains a total of 5 parts.

{
    "info": info, # basic information about the dataset
    "licenses": [license], # license
    "images": [image], # image information, name, and height
    "annotations": [annotation], # annotation
    "categories": [category] # tag information
}
info{ # Dataset information description
    "year": int, # dataset year
    "version": str, # dataset version
    "description": str, # dataset description
    "contributor": str, # dataset provider
    "url": str, # dataset download link
    "date_created": datetime, # dataset creation date
}
license{
    "id": int,
    "name": str,
    "url": str,
}
image{ # images is a list that stores all the image (dict) information. image is a dict that stores information about a single image
    "id": int, # ID number of the image (unique for each image ID)
    "width": int, # image width
    "height": int, # image height
    "file_name": str, # image name
    "license": int, # agreement
    "flickr_url": str, # flickr link address
    "coco_url": str, # network connection address
    "date_captured": datetime, # dataset fetch date
}
annotation{ # annotations is a list that stores all dict information. An annotation is a dict that stores a single target annotation information.
    "id": int, # Target object ID (unique for each object ID), each image may have multiple targets
    "image_id": int, # corresponds to the image ID
    "category_id": int, # corresponds to the category ID, corresponding to the ID in the categories
    "segmentation": RLE or [polygon], # instance segmentation, the boundary point coordinates of the object [x1,y1,x2,y2,....,xn,yn]
    "area": float, # The area of the object area
    "bbox": [xmin,ymin,width,height], # object detection, object positioning border[x,y,w,h]
    "iscrowd": 0 or 1, # indicates whether it is a crowd or not
}
categories{ # Category description
    "id": int, # The ID corresponding to the category (0 defaults to the background)
    "name": str, # subcategory name
    "supercategory": str, # main category name
}



Reference:

The hyperlink login is visible.
The hyperlink login is visible.
The hyperlink login is visible.
The hyperlink login is visible.

 Landlord| Posted on 11/11/2024 9:16:46 AM |
Data COCO Set Format:The hyperlink login is visible.


 Landlord| Posted on 11/11/2024 11:43:50 AM |
.NET/C# calculates the area of a polygon
https://www.itsvse.com/thread-10870-1-1.html
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com