Giter Site home page Giter Site logo

smoke_class_detection's Introduction

SMOKE_CLASS_DETECTION

Table of content

Install LIBRAIRIES

Clone repo and install requirements.txt in a Python>=3.7.0 environment, including PyTorch>=1.7

git clone https://github.com/ultralytics/yolov5  # clone
cd yolov5
pip install -r requirements.txt  # install

Load Model Yolov5

Models download automatically from the latest YOLOv5 release

import torch

# Model
model = torch.hub.load('ultralytics/yolov5', 'yolov5s')  # or yolov5n - yolov5x6, custom

# Images
img = 'https://img.freepik.com/photos-gratuite/fumee-industrielle-dans-atmosphere_33799-3042.jpg?w=1380'  # or file, Path, PIL, OpenCV, numpy, list

# Inference
results = model(img)

# Results
results.print()  # or .show(), .save(), .crop(), .pandas(), etc.

Dataset

we imported 12336 unlabeled images from kaggle, we labeled 100 images using two classes: 'smoke low density' and 'smoke high density' The same database we found already labeled, with a single class 'smoke'.

Training

We installed wandb to visualize the results directly on the website by creating an account

%pip install -q wandb
import wandb
wandb.login()

The commands below reproduce YOLOv5 data results. Models download automatically from the latest YOLOv5 release

python train.py --data data.yaml --cfg yolov5s.yaml --weights '' --batch-size 64

Performances

Results

The model manages to detect both classes of smoke in this video

smoke_class_detection's People

Contributors

sondrion avatar

Watchers

 avatar

Forkers

shaishmoelov

smoke_class_detection's Issues

Cant find the data.yaml file in your project

I am trying to clone and implement your project and I ran into an issue. At the following point in your README page:
Screen Shot 2022-08-24 at 8 00 44 PM

I believe we are supposed to train the network on your smoke dataset which I believe is in your data.yaml file. The issue is that I cannot located that file. Thank You in advance.

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.