Yolov5: Remove unwanted classes using pre-trained weights

Created on 23 Sep 2020  路  3Comments  路  Source: ultralytics/yolov5

How to remove unwanted classes using pre-trained weights

I want to detect only persons from the pre-trained weights. I don't want to train the model again.
How to remove others labels and classes?

question

Most helpful comment

@lan786 if you want to use pretrained weights for person detection only:
python detect.py --classes 0

All 3 comments

Hello @lan786, thank you for your interest in our work! Please visit our Custom Training Tutorial to get started, and see our Jupyter Notebook Open In Colab, Docker Image, and Google Cloud Quickstart Guide for example environments.

If this is a bug report, please provide screenshots and minimum viable code to reproduce your issue, otherwise we can not help you.

If this is a custom model or data training question, please note Ultralytics does not provide free personal support. As a leader in vision ML and AI, we do offer professional consulting, from simple expert advice up to delivery of fully customized, end-to-end production solutions for our clients, such as:

  • Cloud-based AI systems operating on hundreds of HD video streams in realtime.
  • Edge AI integrated into custom iOS and Android apps for realtime 30 FPS video inference.
  • Custom data training, hyperparameter evolution, and model exportation to any destination.

For more information please visit https://www.ultralytics.com.

@lan786 if you want to use pretrained weights for person detection only:
python detect.py --classes 0

@glenn-jocher Thanks for your help

Was this page helpful?
0 / 5 - 0 ratings

Related issues

KangHoyong picture KangHoyong  路  3Comments

ShreshthSaxena picture ShreshthSaxena  路  4Comments

linhaoqi027 picture linhaoqi027  路  4Comments

maykulkarni picture maykulkarni  路  3Comments

jaqub-manuel picture jaqub-manuel  路  4Comments