Skip to content

Releases: fcakyon/yolov5-pip

v7.0.3

20 Dec 10:12
5edbc9e
Compare
Choose a tag to compare

🤗 HuggingFace Hub Integration

  • Use yolov5 models from hub:
import yolov5

# load model
model = yolov5.load('fcakyon/yolov5s-v7.0')

# set image
img = 'https://github.com/ultralytics/yolov5/raw/master/data/images/zidane.jpg'

# perform inference
results = model(img, size=640)

# show detection bounding boxes on image
results.show()
  • Fine-tune yolov5 models from hub:
yolov5 train --img 640 --batch 16 --weights fcakyon/yolov5s-v7.0 --epochs 10 --device cuda:0
  • Automatically push fine-tuned weight and training logs to hub (with autogenerated model card):
yolov5 train --data data.yaml --weights yolov5s.pt --hf_model_id username/modelname --hf_token YOUR-HF-WRITE-TOKEN

Available models: https://huggingface.co/models?other=yolov5

What's Changed

Full Changelog: 7.0.2...7.0.3

v7.0.2

14 Dec 08:43
73a6de3
Compare
Choose a tag to compare

What's Changed

Full Changelog: 7.0.1...7.0.2

v7.0.1

14 Dec 07:20
7c010a1
Compare
Choose a tag to compare

What's Changed

  • support loading models from huggingface hub by @fcakyon in #172

Full Changelog: 7.0.0...7.0.1

v7.0.0

13 Dec 21:02
bba5f85
Compare
Choose a tag to compare

What's Changed

  • better exception handling for hublike loading by @fcakyon in #167
  • update to ultralytics/yolov5 13.12.22 by @fcakyon in #170

Full Changelog: 6.2.3...7.0.0

v6.2.3

26 Oct 12:52
3abe7cf
Compare
Choose a tag to compare

What's Changed

Full Changelog: 6.2.2...6.2.3

v6.2.2

11 Oct 09:53
2344599
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 6.2.1...6.2.2

v6.2.1

24 Sep 23:06
9c3a9df
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 6.2.0...6.2.1

v6.2.0

16 Sep 11:41
b8a5130
Compare
Choose a tag to compare

New Features

Classify

Train/Val/Predict with YOLOv5 image classifier:

$ yolov5 classify train --img 640 --data mnist2560 --weights yolov5s-cls.pt --epochs 1
$ yolov5 classify predict --img 640 --weights yolov5s-cls.pt --source images/
from yolov5.classify import train, val, predict

train.run(imgsz=640, data='mnist2560.yaml')
val.run(imgsz=640, weights='yolov5s-cls.pt')
predict.run(imgsz=640)
import yolov5

model = yolov5.load('yolov5s-cls.pt')

Segment

Train/Val/Predict with YOLOv5 instance segmentation model:

$ yolov5 segment train --img 640 --weights yolov5s-seg.pt --epochs 1
$ yolov5 segment predict --img 640 --weights yolov5s-seg.pt --source images/
from yolov5.segment import train, val, predict

train.run(imgsz=640, data='coco128.yaml')
val.run(imgsz=640, weights='yolov5s-seg.pt')
predict.run(imgsz=640)
import yolov5

model = yolov5.load('yolov5s-seg.pt')

What's Changed

New Contributors

Full Changelog: 6.1.9...6.2.0

v6.1.9

06 Sep 13:03
c217248
Compare
Choose a tag to compare

What's Changed

Full Changelog: 6.1.8...6.1.9

v6.1.8

13 Aug 07:52
41501a4
Compare
Choose a tag to compare

What's Changed

Full Changelog: 6.1.7...6.1.8