You need to agree to share your contact informations to access this model
This repository is publicly accessible, but
you have to accept the conditions to access its files and content.
Log in
or
Sign Up
to review the conditions and access this model content.
How to use
pip install -U yolov5
- Load model and perform prediction:
import yolov5
model = yolov5.load('sajinpgupta/smoke_detect')
model.conf = 0.25
model.iou = 0.45
model.agnostic = False
model.multi_label = False
model.max_det = 1000
img = 'https://github.com/ultralytics/yolov5/raw/master/data/images/zidane.jpg'
results = model(img)
results = model(img, size=640)
results = model(img, augment=True)
predictions = results.pred[0]
boxes = predictions[:, :4]
scores = predictions[:, 4]
categories = predictions[:, 5]
results.show()
results.save(save_dir='results/')
- Finetune the model on your custom dataset:
yolov5 train --img 640 --batch 16 --weights sajinpgupta/smoke_detect --epochs 10 --device cuda:0