All Projects → yqyao → Ssd_pytorch

yqyao / Ssd_pytorch

Licence: mit
support different SSDs and different scale test, support refineDet.

Programming Languages

python
139335 projects - #7 most used programming language

Labels

Projects that are alternatives of or similar to Ssd pytorch

Ssd Knowledge Distillation
A PyTorch Implementation of Knowledge Distillation on SSD
Stars: ✭ 51 (-63.31%)
Mutual labels:  ssd
Openseachest
Cross platform utilities useful for performing various operations on SATA, SAS, NVMe, and USB storage devices.
Stars: ✭ 98 (-29.5%)
Mutual labels:  ssd
Subscribe2clash
v2ray\trojan\ss\ssr\ssd订阅转换Clash规则配置,自动更新ACL4SSR路由规则
Stars: ✭ 112 (-19.42%)
Mutual labels:  ssd
Ssd
High quality, fast, modular reference implementation of SSD in PyTorch
Stars: ✭ 1,060 (+662.59%)
Mutual labels:  ssd
Tf Object Detection
Simpler app for tensorflow object detection API
Stars: ✭ 91 (-34.53%)
Mutual labels:  ssd
Rootonnvme
Switch the rootfs to a NVMe SSD on the Jetson Xavier NX and Jetson AGX Xavier
Stars: ✭ 103 (-25.9%)
Mutual labels:  ssd
Unburden Home Dir
Automatically unburden $HOME from caches, etc. Useful for $HOME on SSDs, small disks or slow NFS homes. Can be triggered via an hook in /etc/X11/Xsession.d/.
Stars: ✭ 48 (-65.47%)
Mutual labels:  ssd
Ios tensorflow objectdetection example
An iOS application of Tensorflow Object Detection with different models: SSD with Mobilenet, SSD with InceptionV2, Faster-RCNN-resnet101
Stars: ✭ 126 (-9.35%)
Mutual labels:  ssd
Ezfio
Simple NVME/SAS/SATA SSD test framework for Linux and Windows
Stars: ✭ 91 (-34.53%)
Mutual labels:  ssd
Tabulo
Table Detection and Extraction Using Deep Learning ( It is built in Python, using Luminoth, TensorFlow<2.0 and Sonnet.)
Stars: ✭ 110 (-20.86%)
Mutual labels:  ssd
Ssd Models
把极速检测器的门槛给我打下来make lightweight caffe-ssd great again
Stars: ✭ 62 (-55.4%)
Mutual labels:  ssd
Badger
Fast key-value DB in Go.
Stars: ✭ 10,127 (+7185.61%)
Mutual labels:  ssd
Handtracking
Building a Real-time Hand-Detector using Neural Networks (SSD) on Tensorflow
Stars: ✭ 1,506 (+983.45%)
Mutual labels:  ssd
Training toolbox caffe
Training Toolbox for Caffe
Stars: ✭ 51 (-63.31%)
Mutual labels:  ssd
Linux
The linux kernel source repository for Open-Channel SSDs
Stars: ✭ 119 (-14.39%)
Mutual labels:  ssd
Pytorch Ssd
MobileNetV1, MobileNetV2, VGG based SSD/SSD-lite implementation in Pytorch 1.0 / Pytorch 0.4. Out-of-box support for retraining on Open Images dataset. ONNX and Caffe2 support. Experiment Ideas like CoordConv.
Stars: ✭ 1,054 (+658.27%)
Mutual labels:  ssd
Pytorch Ssd
Single Shot MultiBox Detector in PyTorch [deprecated]
Stars: ✭ 100 (-28.06%)
Mutual labels:  ssd
Vehicle Detection
Compare FasterRCNN,Yolo,SSD model with the same dataset
Stars: ✭ 130 (-6.47%)
Mutual labels:  ssd
Crossplatformdisktest
Windows, macOS and Android storage (HDD, SSD, RAM) speed testing/performance benchmarking app
Stars: ✭ 123 (-11.51%)
Mutual labels:  ssd
Ssd Pytorch
SSD: Single Shot MultiBox Detector pytorch implementation focusing on simplicity
Stars: ✭ 107 (-23.02%)
Mutual labels:  ssd

SSD Pytorch

A PyTorch implementation of SSDs (include original ssd, DRFNet, RefineDet)

Table of Contents

       

Installation

  • Install PyTorch-0.4.0 by selecting your environment on the website and running the appropriate command.
  • Clone this repository.
    • Note: We currently only support Python 3+.
  • Then download the dataset by following the instructions below.
  • Compile the nms and install coco tools:
cd SSD_Pytorch
# if you use anaconda3, maybe you need https://github.com/rbgirshick/py-faster-rcnn/issues/706
./make.sh
pip install pycocotools

Note*: Check you GPU architecture support in utils/build.py, line 131. Default is:

'nvcc': ['-arch=sm_52',

Datasets

To make things easy, we provide a simple VOC dataset loader that inherits torch.utils.data.Dataset making it fully compatible with the torchvision.datasets API.

VOC Dataset

Download VOC2007 trainval & test
# specify a directory for dataset to be downloaded into, else default is ~/data/
sh data/scripts/VOC2007.sh # <directory>
Download VOC2012 trainval
# specify a directory for dataset to be downloaded into, else default is ~/data/
sh data/scripts/VOC2012.sh # <directory>
Merge VOC2007 and VOC2012
move all images in VOC2007 and VOC2012 into VOCROOT/VOC0712/JPEGImages
move all annotations in VOC2007 and VOC2012 into VOCROOT/VOC0712/JPEGImages/Annotations
rename and merge some txt VOC2007 and VOC2012 ImageSets/Main/*.txt to VOCROOT/VOC0712/JPEGImages/ImageSets/Main/*.txt
the merged txt list as follows:
2012_test.txt, 2007_test.txt, 0712_trainval_test.txt, 2012_trainval.txt, 0712_trainval.txt

COCO Dataset

Install the MS COCO dataset at /path/to/coco from official website, default is ~/data/COCO. Following the instructions to prepare minival2014 and valminusminival2014 annotations. All label files (.json) should be under the COCO/annotations/ folder. It should have this basic structure

$COCO/
$COCO/cache/
$COCO/annotations/
$COCO/images/
$COCO/images/test2015/
$COCO/images/train2014/
$COCO/images/val2014/

UPDATE: The current COCO dataset has released new train2017 and val2017 sets which are just new splits of the same image sets.

Training

mkdir weights
cd weights
mkdir pretrained_models

wget https://s3.amazonaws.com/amdegroot-models/vgg16_reducedfc.pth
wget https://download.pytorch.org/models/resnet50-19c8e357.pth
wget https://download.pytorch.org/models/resnet101-5d3b4d8f.pth
wget https://download.pytorch.org/models/resnet152-b121ed2d.pth
mv download_weights pretrained_models
  • To train SSD_Pytorch using the train script simply specify the parameters listed in train.py as a flag or manually change them.
python train.py --cfg ./configs/ssd_vgg_voc.yaml
  • Note: All training configs are in ssd_vgg_voc.yaml, you can change it by yourself.

  • To evaluate a trained network:

python eval.py --cfg ./configs/ssd_vgg_voc.yaml --weights ./eval_weights
  • To detect one images
 # you need put some images in ./images
python demo.py --cfg ./configs/ssd_vgg_voc.yaml --images ./images --save_folder ./output

You can specify the parameters listed in the eval.py or demo.py file by flagging them or manually changing them.

Performance

VOC2007 Test

mAP

we retrained some models, so it's different from the origin paper size = 300

ssd_vgg ssd_res ssd_darknet drf_ssd_vgg drf_ssd_res refine_drf_vgg refine_ssd_vgg
77.5% 77.0 77.6% 79.6 % 79.0% 80.2% 80.4 %

References

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].