Skip to content

Conversation

@mudler
Copy link
Owner

@mudler mudler commented Jul 26, 2025

Description

This PR fixes #5907 - It adds object detection endpoint and the model rfdetr-base to the gallery.

In short:

  • Creates a new /v1/detection endpoint that takes as input an image and return list of identified objects
  • Adds a new object-detection category across the code
  • Adds rfdetr as backend in the gallery
  • Updates CI accordingly to push new images
  • Add to the model gallery the rfdetr-base model, after this is is merged it can be installed with: rfdetr-base

Testing with:

make backends/rfdetr build
./local-ai run --debug
curl -X POST http://localhost:8080/v1/detection -H "Content-Type: application/json" -d '{
    "model": "rfdetr",
    "image": "https://media.roboflow.com/dog.jpeg"
  }'

model file:

name: rfdetr
backend: rfdetr
parameters:
  model: rfdetr-base

Notes for Reviewers

Tested, works also on CPU quite well.

Signed commits

  • Yes, I signed my commits.

@netlify
Copy link

netlify bot commented Jul 26, 2025

Deploy Preview for localai ready!

Name Link
🔨 Latest commit 317f022
🔍 Latest deploy log https://app.netlify.com/projects/localai/deploys/688685d2dfa70e0008f49783
😎 Deploy Preview https://deploy-preview-5923--localai.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@mudler mudler force-pushed the feat/object_detection branch 2 times, most recently from 142fada to 1480f57 Compare July 27, 2025 09:21
@mudler mudler marked this pull request as ready for review July 27, 2025 09:51
@github-actions github-actions bot added the kind/documentation Improvements or additions to documentation label Jul 27, 2025
@mudler mudler force-pushed the feat/object_detection branch 2 times, most recently from a921cda to ac7b6cf Compare July 27, 2025 17:05
@mudler mudler added enhancement New feature or request new-backend and removed dependencies labels Jul 27, 2025
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
@mudler mudler force-pushed the feat/object_detection branch from 9adb17c to 317f022 Compare July 27, 2025 20:02
@mudler mudler merged commit 949e5b9 into master Jul 27, 2025
19 of 21 checks passed
@mudler mudler deleted the feat/object_detection branch July 27, 2025 20:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/ai-model dependencies enhancement New feature or request kind/documentation Improvements or additions to documentation new-backend

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Request to Add RF-DETR as Backend

2 participants