Giter VIP home page Giter VIP logo

ldar_detection's Introduction

LDAR_Detection

1.Goals

The goals of this project are:

-Our project is to detect whether the distance from the probe to the pipeline meets the criteria, utilizing machine learning

-This project aims to perform object detection and distance measurement using YOLOv5 object detection model.

2.How to work

Install Python & Conda

Before you start, you will need Python and Conda on your computer.

2.1 YOLO

2.1.1 Prerequisites

Python 3.6 or higher

PyTorch 1.7.0 or higher

OpenCV 4.2.0 or higher

NumPy 1.18.0 or higher

2.1.2 Installation

  1. Clone this repository(use http/ssh):
git clone https://github.com/AlexandreQ27/LDAR_Detection.git

Warning

You may see below errors that prevent you from connecting to the remote repository, or timeout errors when you do push operations, especially if you are using the HTTP protocol.

Permission denied (publickey).
fatal: Could not read from remote repository.
fatal: unable to access 'https://github.com/AlexandreQ27/LDAR_Detection.git': Recv failure: Connection was reset.
fatal: unable to access 'https://github.com/AlexandreQ27/LDAR_Detection.git': The requested URL returned error : 403.

Solution:

  1. Use SSH protocol to access the repo.
  2. Try more times in case the push operation fails occasionally.
  1. Install YOLOv5
git clone https://github.com/ultralytics/yolov5.git
  1. Install the required packages:
cd yolov5
pip install -r requirements.txt
  1. Download the YOLOv5 model weights from the official repository or from my project(yolov5s.pt)

2.1.3 Acknowledgments

-YOLOv5: https://github.com/ultralytics/yolov5

-OpenCV: https://opencv.org/

-PyTorch: https://pytorch.org/

2.2 Monodepth2

2.2.1 Prerequisites

Python 3.6

PyTorch 0.4.1

OpenCV 4.1

2.2.2 Installation

  1. Install Monodepth2

If this is your first time cloning this repository, use the following command will install both YOLOv5 and Monodepth2.

git submodule update --init --recursive
  1. Install the required packages:

The requirements.txt is in our repository's directory: requirements, create a new Python virtual environment for monodepth2 and use the following command.

pip install -r .\requirements.txt

Warning

You may see errors below that prevent you from installing PyTorch.

ERROR: Could not find a version that satisfies the requirement torch==0.4.1 (from versions: 1.7.0, 1.7.1, 1.8.0, 1.8.1, 1.9.0, 1.9.1, 1.10.0, 1.10.1, 1.10.2)
ERROR: No matching distribution found for torch==0.4.1

Solution:

pip install torch==0.4.1 -f https://download.pytorch.org/whl/torch_stable.html-f https://download.pytorch.org/whl/torch_stable.html

2.2.3 Acknowledgments

-Monodepth2: https://github.com/nianticlabs/monodepth2

ldar_detection's People

Contributors

alexandreq27 avatar lifelongcoding avatar jackwang0318 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.