A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mmpose.readthedocs.io/en/latest/user_guides/prepare_datasets.html below:

Prepare Datasets — MMPose 1.3.2 documentation

Prepare Datasets

In this document, we will give a guide on the process of preparing datasets for the MMPose. Various aspects of dataset preparation will be discussed, including using built-in datasets, creating custom datasets, combining datasets for training, browsing and downloading the datasets.

Use built-in datasets

Step 1: Prepare Data

MMPose supports multiple tasks and corresponding datasets. You can find them in dataset zoo. To properly prepare your data, please follow the guidelines associated with your chosen dataset.

Step 2: Configure Dataset Settings in the Config File

Before training or evaluating models, you must configure the dataset settings. Take td-hm_hrnet-w32_8xb64-210e_coco-256x192.py for example, which can be used to train or evaluate the HRNet pose estimator on COCO dataset. We will go through the dataset configuration.

We recommend copying the dataset configuration from provided config files that use the same dataset, rather than writing it from scratch, in order to minimize potential errors. By doing so, users can simply make the necessary modifications as needed, ensuring a more reliable and efficient setup process.

Use a custom dataset

The Customize Datasets guide provides detailed information on how to build a custom dataset. In this section, we will highlight some key tips for using and configuring custom datasets.

Use mixed datasets for training

MMPose offers a convenient and versatile solution for training with mixed datasets. Please refer to Use Mixed Datasets for Training.

Browse dataset

tools/analysis_tools/browse_dataset.py helps the user to browse a pose dataset visually, or save the image to a designated directory.

python tools/misc/browse_dataset.py ${CONFIG} [-h] [--output-dir ${OUTPUT_DIR}] [--max-item-per-dataset ${MAX_ITEM_PER_DATASET}] [--not-show] [--phase ${PHASE}] [--mode ${MODE}] [--show-interval ${SHOW_INTERVAL}]
ARGS Description CONFIG The path to the config file. --output-dir OUTPUT_DIR The target folder to save visualization results. If not specified, the visualization results will not be saved. --not-show Do not show the visualization results in an external window. --phase {train, val, test} Options for dataset. --mode {original, transformed} Specify the type of visualized images. original means to show images without pre-processing; transformed means to show images are pre-processed. --show-interval SHOW_INTERVAL Time interval between visualizing two images. --max-item-per-dataset Define the maximum item processed per dataset, default to 50

For instance, users who want to visualize images and annotations in COCO dataset use:

python tools/misc/browse_dataset.py configs/body_2d_keypoint/topdown_heatmap/coco/td-hm_hrnet-w32_8xb64-e210_coco-256x192.py --mode original

The bounding boxes and keypoints will be plotted on the original image. Following is an example:

The original images need to be processed before being fed into models. To visualize pre-processed images and annotations, users need to modify the argument mode to transformed. For example:

python tools/misc/browse_dataset.py configs/body_2d_keypoint/topdown_heatmap/coco/td-hm_hrnet-w32_8xb64-e210_coco-256x192.py --mode transformed

Here is a processed sample

The heatmap target will be visualized together if it is generated in the pipeline.

Download dataset via MIM

By using OpenXLab, you can obtain free formatted datasets in various fields. Through the search function of the platform, you may address the dataset they look for quickly and easily. Using the formatted datasets from the platform, you can efficiently conduct tasks across datasets.

If you use MIM to download, make sure that the version is greater than v0.3.8. You can use the following command to update, install, login and download the dataset:

# upgrade your MIM
pip install -U openmim

# install OpenXLab CLI tools
pip install -U openxlab
# log in OpenXLab
openxlab login

# download coco2017 and preprocess by MIM
mim download mmpose --dataset coco2017
Supported datasets

Here is the list of supported datasets, we will continue to update it in the future.

Body Dataset name Download command COCO 2017 mim download mmpose --dataset coco2017 MPII mim download mmpose --dataset mpii AI Challenger mim download mmpose --dataset aic CrowdPose mim download mmpose --dataset crowdpose Face Dataset name Download command LaPa mim download mmpose --dataset lapa 300W mim download mmpose --dataset 300w WFLW mim download mmpose --dataset wflw Hand Dataset name Download command OneHand10K mim download mmpose --dataset onehand10k FreiHand mim download mmpose --dataset freihand HaGRID mim download mmpose --dataset hagrid Whole Body Dataset name Download command Halpe mim download mmpose --dataset halpe Animal Dataset name Download command AP-10K mim download mmpose --dataset ap10k

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4