keras-team / keras

Deep Learning for humans
http://keras.io/
Apache License 2.0
61.9k stars 19.45k forks source link

Metrics for YOLOv8 model #19416

Closed alejones closed 6 months ago

alejones commented 6 months ago

Will User metrics ever be supported for YOLOV8 or is it expected that I use a COCO callback?

Current Behavior:

When I compile a YOLOv8 model with metrics I get an error

model.compile(
    classification_loss="binary_crossentropy",
    box_loss="ciou",
    optimizer=optimizer,
    metrics = [keras.metrics.Recall(), keras.metrics.Precision()]
)
ValueError: User metrics not yet supported for YOLOV8

Expected Behavior:

Adding the requested metrics

Steps To Reproduce:

Gist

Version:

Keras version: 3.1.1 Keras_cv version: 0.8.2

SuryanarayanaY commented 6 months ago

Hi @alejones ,

I have replicated the reported behaviour and attached gist. These metrics seems not yet supported for YOLO. IMO, this should be reported at keras_cv as we have separate repo for same.

grasskin commented 6 months ago

Hi @alejones, thank you for opening the bug in keras-cv. Closing this for now and we'll address this in our domain package.