meituan / YOLOv6

YOLOv6: a single-stage object detection framework dedicated to industrial applications.
GNU General Public License v3.0
5.69k stars 1.03k forks source link

How to apply weighted cross entropy loss while training? #865

Open Rizwan-S opened 1 year ago

Rizwan-S commented 1 year ago

Before Asking

Search before asking

Question

Hi, I wanted to know how I can implement weighted cross entropy loss while fine tuning YOLOv6l6?

Additional

No response

mtjhl commented 1 year ago

You can edit weighted cross entropy here. https://github.com/meituan/YOLOv6/blob/4364f29bf3244f2e73d0c42a103cd7a9cbb16ca9/yolov6/models/losses/loss.py#L194