Skip to main content

Object detection common framework application

Project description

object_detection_common_application

This repo will help to predict the object with in image using various framework like TF2 ,Detectron and Yolo5 and also user can choose the model they need to experiment

How to use? Fork or clone the repo. 1.Create the separate conda or virtual envoriment. 2.pip install -r requirements.txt 3. Run python clientApp.py

Note:

If already model copied into respective framework model folder it won't download. Otherwise first time detection the model will download.

TF2 Models Prediction:

1.EfficientDet D1 640x640:

image

Terminal Output: No_of_objects_detected_by_mode: 3

Time Taken to execute the model 86.15892791748047

2.SSD MobileNet v2 320x320:

image

Terminal Output: No_of_objects_detected_by_mode: 8

Time Taken to execute the model 27.62358021736145

3.SSD MobileNet V2 FPNLite 320x320:

image

Terminal Output:

No_of_objects_detected_by_mode: 5

Time Taken to execute the model 27.080549240112305

4.Faster R-CNN ResNet50 V1 640x640:

image

Terminal Output: No_of_objects_detected_by_mode: 8

Time Taken to execute the model 78.90951347351074

5.Faster R-CNN ResNet101 V1 640x640:

image

Terminal Output:

No_of_objects_detected_by_mode: 9

Time Taken to execute the model 189.88386058807373

Detectron2 Models Prediction:

The model will download and stored into your local PC following path:

C:\Users<username>.torch\iopath_cache\detectron2\COCO-Detection

1.R50-FPN:(faster_rcnn_R_50_FPN_1x)

image

Terminal Output: The no.of object detected by model are: 10

['bowl 99%', 'chair 98%', 'refrigerator 95%', 'sink 93%', 'oven 81%', 'bottle 66%', 'dining table 61%', 'vase 61%', 'cup 58%', 'bowl 57%']

Time Taken to execute the model 25.72547149658203

2.R50-C4:(faster_rcnn_R_50_C4_1x)

image

Terminal Output:

The no.of object detected by model are: 8 ['bowl 99%', 'bowl 98%', 'bowl 96%', 'bowl 95%', 'carrot 95%', 'carrot 93%', 'carrot 77%', 'dining table 72%'] Time Taken to execute the model 27.740586757659912

3.R101-FPN (faster_rcnn_R_101_C4_3x) image

Terminal Output: The no.of object detected by model are: 8 ['bowl 99%', 'dining table 96%', 'broccoli 95%', 'cake 94%', 'broccoli 84%', 'broccoli 80%', 'broccoli 76%', 'sandwich 75%'] Time Taken to execute the model 46.38965344429016

4.R101-FPN (faster_rcnn_R_101_FPN_3x) image

Terminal Output: The no.of object detected by model are: 20 ['clock 100%', 'clock 100%', 'car 99%', 'person 99%', 'person 98%', 'person 98%', 'person 96%', 'person 96%', 'person 94%', 'car 90%', 'fire hydrant 77%', 'handbag 75%', 'person 75%', 'person 74%', 'person 60%', 'stop sign 59%', 'traffic light 59%', 'person 59%', 'person 57%', 'oven 56%'] Time Taken to execute the model 31.190783977508545

YOLO5

1.YOLOv5s

image

Terminal O/P: 1 bowl, 1 sandwich, 1 dining table Time Taken to execute the model 4.314246654510498

2.YOLOv5m image

Terminal O/P:

14 persons, 1 baseball bat, 1 baseball glove, Done. (0.441s)

3.YOLOv5l

image

3 bowls, 1 apple, 2 chairs, 1 dining table, 1 microwave, 1 oven, 1 sink, 1 refrigerator, Done. (1.559s) Terminal O/P:

4.YOLOv5x image

Terminal O/P: 8 persons, 2 cars, 2 clocks, Done. (2.369s)

5.YOLOv5s6 image

Terminal O/P: 12 persons, 9 chairs, 1 dining table, 1 tv, 1 clock, Done. (1.738s)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

odcommonapp-0.0.5.tar.gz (1.6 MB view details)

Uploaded Source

Built Distribution

odcommonapp-0.0.5-py3-none-any.whl (2.1 MB view details)

Uploaded Python 3

File details

Details for the file odcommonapp-0.0.5.tar.gz.

File metadata

  • Download URL: odcommonapp-0.0.5.tar.gz
  • Upload date:
  • Size: 1.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for odcommonapp-0.0.5.tar.gz
Algorithm Hash digest
SHA256 aa3c6d8c6ea8872f293bee805b217a0020d417bcc9cfa20ae00f098be71b3c37
MD5 0689e566a2ea81bb49a026945eb3bbb8
BLAKE2b-256 9e5655003ebce57a6eae96bd0782ebd9db6eca66e2d382e2f0e5f6b9fad7b2f2

See more details on using hashes here.

File details

Details for the file odcommonapp-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: odcommonapp-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 2.1 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for odcommonapp-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 faf68188d2aabff79ced588e350bd3eb7109bd00a0280afb1efb9d2f688329b8
MD5 c5ebde582592be9fd949e596b3c6780c
BLAKE2b-256 a014a71418345985dd2b5fdedd7b8059d76bb58c5c64b1ccca9f786a378fd670

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page