Skip to content

leoneversberg/mmdet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mmdet

Train a Faster-RCNN object detection model on CVAT data with containerized MMDetection. Training can be visualized with Tensorboard. For more details, see Learn How to Train Object Detection Models With MMDetection

training output

Installation & Setup

CVAT

You can create an account for the free online version app.cvat.ai or run your own server.

After labeling your data, export a train and a test dataset in the COCO 1.0 format. This will give you images and annotations folders, which should be placed in the data folder in train and test.

CVAT example

Docker Image

Build an image with sudo docker build -t mmdet:latest .

Tensorboard

pip install tensorboard

Training

Run MMDetection training

Run the image with the following command (modify path to mmdet folder):

docker run --gpus all \
  -v "/path/to/mmdet/my_configs:/mmdetection/my_configs:ro" \
  -v "/path/to/mmdet/data:/mmdetection/data:ro" \
  -v "/path/to/mmdet/workdir:/mmdetection/workdir" \
  mmdet:latest

Tensorboard

To visualize the training process, cd to the latest folder in workdir and run tensorboard --logdir vis_data/. In your browser, open http://localhost:6006/.

Tensorboard example

Used Frameworks