Skip to content

decision-labs/test-groundingdino-quantized-js

Repository files navigation

What is this?

Usage

Install grounding-dino version of transformers.js

git clone [email protected]:decision-labs/test-groundingdino-quantized-js.git
cd test-groundingdino-quantized-js
git clone [email protected]:huggingface/transformers.js.git
cd transformers.js
git checkout add-grounding-dino
npm run build
cd ..

Install dependencies.

Make sure you are in the root of the repo.

yarn install

Run server

npx nodemon app.js

Run client

python draw_boxes.py
open output_with_boxes.png

output_with_boxes

Trying new labels

In draw_boxes.py change the text to another label like "tree".

output_with_boxes

Example API

http://localhost:3000?model_name=object-detection&text=tree&image_uri=https://content.satimagingcorp.com/static/galleryimages/Satellite-Image-Paris-Pont-des-Arts-bridge.jpg

About

Test quantized model via transformer.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published