Page MenuHomePhabricator

Support building and running of logo-detection model-server via Makefile
Closed, ResolvedPublic2 Estimated Story Points

Description

The LiftWing model-server repo has a Makefile that makes building and running of model-servers locally much easier.

In this task, we will update the existing Makefile to support building and running the logo-detection model-server.

Event Timeline

Change #1023532 had a related patch set uploaded (by Kevin Bazira; author: Kevin Bazira):

[machinelearning/liftwing/inference-services@main] Makefile: add support for logo-detection

https://gerrit.wikimedia.org/r/1023532

Change #1023532 merged by jenkins-bot:

[machinelearning/liftwing/inference-services@main] Makefile: add support for logo-detection

https://gerrit.wikimedia.org/r/1023532

kevinbazira set the point value for this task to 2.Apr 26 2024, 7:27 AM

Support for building and running the logo-detection model-server using the Makefile was added and it can be tested using:

# first terminal
$ make logo-detection

# second terminal
$ curl -s localhost:8080/v1/models/logo-detection:predict -X POST -d '{"instances": [ { "filename": "Cambia_logo.png", "url": "http://commons.wikimedia.org/w/index.php?title=Special:FilePath&file=Cambia_logo.png&width=224", "target": "logo" }, { "filename": "Blooming_bush_(14248894271).jpg", "url": "http://commons.wikimedia.org/w/index.php?title=Special:FilePath&file=Blooming_bush_%2814248894271%29.jpg&width=224", "target": "logo" }, { "filename": "12_rue_de_Condé_-_detail.jpg", "url": "http://commons.wikimedia.org/w/index.php?title=Special:FilePath&file=12_rue_de_Cond%C3%A9_-_detail.jpg&width=224", "target": "logo" } ] }' -i --header "Content-type: application/json"

# delete test environment
$ MODEL_TYPE=logo-detection make clean