roboflow / inference

A fast, easy-to-use, production-ready inference server for computer vision supporting deployment of many popular model architectures and fine-tuned models.
https://inference.roboflow.com
Other
1.12k stars 84 forks source link

Workflows `clip` block to return classes list #465

Open PawelPeczek-Roboflow opened 3 weeks ago

PawelPeczek-Roboflow commented 3 weeks ago

Search before asking

Description

Currently we return only similarity from clip block - we should make it more verbose and index by class names (compared texts)

Output now:

{'output': [], 'clip': [{'similarity': [0.1963316947221756, 0.26972252130508423, 0.20355430245399475], 'parent_id': 'image', 'prediction_type': 'embeddings-comparison', 'frame_id': None, 'time': 0.19132976199762197}], 'img': [{'width': 367, 'height': 400}]}

Use case

No response

Additional

No response

Are you willing to submit a PR?