Skip to content

ben-omji/serve_yolov5

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Contributors Forks Stargazers Issues MIT License LinkedIn


Logo

Serve YOLOv5

Deploy YOLOv5 model in TorchServe environment
Explore the docs »

View Demo · Report Bug · Request Feature

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Roadmap
  5. Contributing
  6. License
  7. Contact
  8. Acknowledgments

About The Project

Product Name Screen Shot

(back to top)

Built With

  • Next

(back to top)

Getting Started

Here is an instructions on setting up this project locally. To get a local copy up and running follow these simple example steps.

Prerequisites

Before proceeding, you MUST install things listed below.

Quickstart

  1. Clone the repo
    git clone https://github.com/ben-omji/serve_yolov5.git
  2. Setup
    cd serve_yolov5
    
    # Object detection
    ./setup.sh box
    
    # Object segmentation
    ./setup.sh seg
    
    # Check generated model archive
    ls ./resources/model-store/
  3. Run
    # Object detection
    ./run_ts.sh coco_yolov5s.mar
    
    docker logs $(docker ps -lq)
    
    # !WARNING! >> If you want to run both models simultaneously, YOU MUST CHANGE THE PORT IN SCRIPT for preventing the conflict.
    
    # Object segmentation
    ./run_ts.sh coco_yolov5s-seg.mar
    
    
    docker logs $(docker ps -lq)
  4. Test
    # Object detection
    curl -T PATH/TO/TEST/IMAGE 127.0.0.1:9080/predictions/coco_yolov5s
    
    # Object segmentation
    curl -T PATH/TO/TEST/IMAGE 127.0.0.1:9080/predictions/coco_yolov5s-seg

(back to top)

Usage

TODO: Add instruction to deploy our own yolov5 model which is trained on custom datatset.

(back to top)

Roadmap

  • gRPC client
    • python

See the open issues for a full list of proposed features (and known issues).

(back to top)

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

(back to top)

License

Distributed under the Apache License, Version 2.0. See LICENSE for more information.

(back to top)

Acknowledgments

(back to top)

About

Deploy YOLOv5 model in TorchServe

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published