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.4.tar.gz (1.6 MB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: odcommonapp-0.0.4.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.4.tar.gz
Algorithm Hash digest
SHA256 4e30e4a22f8bb8d54d717e551a4849ec7b7352272fa81722e93756fed8f3251b
MD5 6974b746e861c7a668db539b286a542c
BLAKE2b-256 9908c929d6b8755da76ba8ade2360e131a638394f47cd4411e2c0aa7293b76e3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: odcommonapp-0.0.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 337c3f644d38e1d2875b5f62f25f77ec75e4075f9ebfd17cf9f5546832aa0e0b
MD5 135fd2138d6e0434ff136501cd644e50
BLAKE2b-256 5cd465bd1cca89916e40ebb786f230e0959c4327dc6632bfd3f97435106281ba

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