Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

SSD (IGIE)

Model Description

SSD is a single convolutional neural network-based object detection model that utilizes multi-scale feature maps and default box designs to perform classification and regression simultaneously. With an efficient structure, it achieves real-time object detection and is suitable for handling objects of various sizes.

Supported Environments

GPU IXUCA SDK Release Branch
MR-V100 4.4.0 26.03 release/26.03
MR-V100 4.3.0 25.12 release/25.12

Note: 请切换到与您的 SDK 版本对应的 Release 分支进行测试。请勿直接在 master 分支上运行测试,因为 master 分支可能包含与您的本地 SDK 版本不兼容的最新更改。

切换分支命令示例:git checkout release/26.03

Model Preparation

Prepare Resources

Pretrained model: https://download.openmmlab.com/mmdetection/v2.0/ssd/ssd300_coco/ssd300_coco_20210803_015428-d231a06e.pth

Dataset:

unzip -q -d ./ coco2017labels.zip
unzip -q -d ./coco/images/ train2017.zip
unzip -q -d ./coco/images/ val2017.zip

coco
├── annotations
│   └── instances_val2017.json
├── images
│   ├── train2017
│   └── val2017
├── labels
│   ├── train2017
│   └── val2017
├── LICENSE
├── README.txt
├── test-dev2017.txt
├── train2017.cache
├── train2017.txt
├── val2017.cache
└── val2017.txt

Install Dependencies

Contact the Iluvatar administrator to get the missing packages:

  • mmcv-*.whl
# Install libGL
## CentOS
yum install -y mesa-libGL
## Ubuntu
apt install -y libgl1-mesa-glx

pip3 install -r requirements.txt

Model Conversion

# export onnx model
python3 export.py --weight ssd300_coco_20210803_015428-d231a06e.pth --cfg ssd300_coco.py --output ssd.onnx

# use onnxsim optimize onnx model
onnxsim ssd.onnx ssd_opt.onnx

Model Inference

export DATASETS_DIR=/Path/to/coco/

FP16

# Accuracy
bash scripts/infer_ssd_fp16_accuracy.sh
# Performance
bash scripts/infer_ssd_fp16_performance.sh

Model Results

Model BatchSize Precision FPS IOU@0.5 IOU@0.5:0.95
SSD 32 FP16 783.83 0.436 0.255

References