rattydave/ai-object-detect

By rattydave

Updated almost 2 years ago

Image
0

594

rattydave/ai-object-detect repository overview

Object Detection

The purpose is to get the object detection and proof of concept working in the minimum time.

Ethos:

  • We use pre-compiled binaries where possible.
  • The python code contains the minimal needed to be functional.
Defaults
  • Image size of 640x480
  • ssdlite_mobilenet_v2_coco_2018_05_09

This uses pretrained models and can has the ability to change the model easy using the configuration file.

Scripts

To install run the following.
xhost +
docker run -it \
           --name camera_go \
           -e DISPLAY=$DISPLAY \
           -v /tmp/.X11-unix:/tmp/.X11-unix \
           --device /dev/video0 \
           rattydave/ai-object-detect:latest
To start the object detetection run the following
xhost +
docker start -i camera_go
Auto Update

To automatically update I recomend using watchtower.

docker run -d \
    --name watchtower \
    -v /var/run/docker.sock:/var/run/docker.sock \
    containrrr/watchtower
To change the object detetection model
  • start up the container with docker exec -it camera_go bash
  • edit /root/download.sh and uncomment the download line.
  • edit ~/tensorflow1/models/research/object_detection/obj-config.ini to change to the right model.
  • run /root/startup.sh to start the detection.

Models

All models are taken from Tensorflow detection model zoo

The default is ssdlite_mobilenet_v2_coco_2018_05_09.

COCO-trained models from COCO dataset

90 Classes

SizeModel
73MBssd_mobilenet_v1_coco_2018_01_28
44MBssd_mobilenet_v1_0.75_depth_300x300_coco14_sync_2018_07_03
81MBssd_mobilenet_v1_quantized_300x300_coco14_sync_2018_07_18
49MBssd_mobilenet_v1_0.75_depth_quantized_300x300_coco14_sync_2018_07_18
29MBssd_mobilenet_v1_ppn_shared_box_predictor_300x300_coco14_sync_2018_07_03
129MBssd_mobilenet_v1_fpn_shared_box_predictor_640x640_coco14_sync_2018_07_03
349MBssd_resnet50_v1_fpn_shared_box_predictor_640x640_coco14_sync_2018_07_03
179MBssd_mobilenet_v2_coco_2018_03_29
138MBssd_mobilenet_v2_quantized_300x300_coco_2019_01_03
48MBssdlite_mobilenet_v2_coco_2018_05_09
265MBssd_inception_v2_coco_2018_01_28
142MBfaster_rcnn_inception_v2_coco_2018_01_28
363MBfaster_rcnn_resnet50_coco_2018_01_28
363MBfaster_rcnn_resnet50_lowproposals_coco_2018_01_28
622MBrfcn_resnet101_coco_2018_01_28
565MBfaster_rcnn_resnet101_coco_2018_01_28
565MBfaster_rcnn_resnet101_lowproposals_coco_2018_01_28
641MBfaster_rcnn_inception_resnet_v2_atrous_coco_2018_01_28
641MBfaster_rcnn_inception_resnet_v2_atrous_lowproposals_coco_2018_01_28
1.09GBfaster_rcnn_nas_coco_2018_01_28
1.09GBfaster_rcnn_nas_lowproposals_coco_2018_01_28
693MBmask_rcnn_inception_resnet_v2_atrous_coco_2018_01_28
169MBmask_rcnn_inception_v2_coco_2018_01_28
631MBmask_rcnn_resnet101_atrous_coco_2018_01_28
428MBmask_rcnn_resnet50_atrous_coco_2018_01_28
Kitti-trained models from Kitti dataset

2 Classes

SizeModel
555MBfaster_rcnn_resnet101_kitti_2018_01_28
Open Images-trained models from Open Images dataset

601 Classes

SizeModel
680MBfaster_rcnn_inception_resnet_v2_atrous_oid_2018_01_28
680MBfaster_rcnn_inception_resnet_v2_atrous_lowproposals_oid_2018_01_28
124MBfacessd_mobilenet_v2_quantized_320x320_open_image_v4
682MBfaster_rcnn_inception_resnet_v2_atrous_oid_v4_2018_12_12
151MBssd_mobilenet_v2_oid_v4_2018_12_12
608MBssd_resnet101_v1_fpn_shared_box_predictor_oid_512x512_sync_2019_01_20
iNaturalist Species-trained models from iNaturalist Species Detection Dataset

2854 Classs

SizeModel
868MBfaster_rcnn_resnet101_fgvc_2018_07_19
666MBfaster_rcnn_resnet50_fgvc_2018_07_19
AVA v2.1 trained models from AVA v2.1 dataset

AVA is a project that provides audiovisual annotations of video for improving our understanding of human activity.

90 Classes

SizeModel
565MBfaster_rcnn_resnet101_ava_v2.1_2018_04_30

Tag summary

Content type

Image

Digest

sha256:ca75ca92e

Size

1.5 GB

Last updated

almost 2 years ago

docker pull rattydave/ai-object-detect