--- tags: - feature-extraction license: bsd-3-clause library_name: transformers duplicated_from: florentgbelidji/blip_image_embeddings widget: - text: >- iVBORw0KGgoAAAANSUhEUgAAAEQAAABCCAYAAADuSnCvAAAMPWlDQ1BJQ0MgUHJvZmlsZQAASImVVwdYU8kanVuSkEBooUsJvQkiNYCUEFoA6V1UQhIglBgDQcWOLiq4drGADV0VUew0C4ooFhbF3hcLKsq6WLArb1JA133le/N9c++5Z/45f7lzywCgdoIjEuWh6gDkCwvFsSEB9OSUVDrpKcAAGQDgBGgcboGIGR0dAa/A0Pnv7d11gEjPVxykWv8c/69Ng8cv4AKAREOcwSvg5kN8CAC8iisSFwJAlPLmUwpFUgw70BLDACFeKMVZclwlxRlyvE9mEx/LgrgNACUVDkecBYDqJcjTi7hZUEO1X5qZkCcQAqBGh9g3P38SD+J0iG2gjQhiqT4j4wedrL9pZgxrcjhZw1iei6wpBQoKRHmcaf9nOf53y8+TDPmwgl0lWxwaK80Z1u1m7qRwKVaBuE+YERkFsSbEHwQ8mT3EKCVbEpogt0cNuQUsWDOgA7ETjxMYDrEhxMHCvMgIBZ+RKQhmQwxXCDpVUMiOh1gP4oX8gqA4hc1m8aRYhS+0PlPMYir4sxyxzK/U131JbgJTof86m89W6GOqxdnxSRBTILYoEiRGQqwKsWNBbly4wmZMcTYrcshGLImVxm8BcSxfGBIg18eKMsXBsQr7svyCoXyxzdkCdqQCHyjMjg+V1wdr43Jk8cNcsEt8ITNhSIdfkBwxlAuPHxgkzx17xhcmxCl0PogKA2Llc3GKKC9aYY+b8fNCpLwZxK4FRXGKuXhiIVyQcn08U1QYHS+PEy/O4YRFy+PBl4EIwAKBgA4ksGeASSAHCDr7GvrglXwkGHCAGGQBPnBQMEMzkmQjQniMA8XgT4j4oGB4XoBslA+KIP91mJUfHUCmbLRINiMXPIE4H4SDPHgtkc0SDntLBI8hI/iHdw7sXBhvHuzS8X/PD7HfGSZkIhSMZMgjXW3IkhhEDCSGEoOJtrgB7ot74xHw6A+7M87APYfy+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bkSBjHvU1a+0Wz2rHFblIup/5N685MrJ5WklOPqcnJxSoC9KhnMu7+rKA8WWY3eVpaUludSenREBor/69kvKMupucRulVnyRb14r9oT8iBQbEcq8PaOy48Op15qKs6aUQBgsCCCcg5BuQZ81RoZH7YknPurnERsb63b+/Bm965nQwfWyvXPnlrtDLPqyNgfBSjQeaKEvGWlIinNBa15E8YaP1BkACUeBuOJRRYfZokOzoTd1ikkYkyNMAvv0zKz3Wx/cW7DzipPXrj1jJ2dnbWV1TSDsS+687ahmWlle9lrkfwH6cBn/krzo5wAAAABJRU5ErkJggg== --- # Fork of [salesforce/BLIP](https://github.com/salesforce/BLIP) for a `feature-extraction` task on 🤗Inference endpoint. This repository implements a `custom` task for `feature-extraction` for 🤗 Inference Endpoints. The code for the customized pipeline is in the [pipeline.py](https://huggingface.co./florentgbelidji/blip-embeddings/blob/main/pipeline.py). To use deploy this model a an Inference Endpoint you have to select `Custom` as task to use the `pipeline.py` file. -> _double check if it is selected_ ### expected Request payload ```json { "inputs": "/9j/4AAQSkZJRgABAQEBLAEsAAD/2wBDAAMCAgICAgMC....", // base64 image as bytes } ``` below is an example on how to run a request using Python and `requests`. ## Run Request 1. prepare an image. ```bash !wget https://huggingface.co./datasets/mishig/sample_images/resolve/main/palace.jpg ``` 2.run request ```python import json from typing import List import requests as r import base64 ENDPOINT_URL = "https://api-inference.huggingface.co/models/radames/blip_image_embeddings" HF_TOKEN = "" def predict(path_to_image: str = None): with open(path_to_image, "rb") as i: b64 = base64.b64encode(i.read()) payload = {"inputs": b64.decode("utf-8")} response = r.post( ENDPOINT_URL, headers={"X-Wait-For-Model": "true", "Authorization": f"Bearer {HF_TOKEN}"}, json=payload ) return response.json() prediction = predict( path_to_image="palace.jpg" ) ``` expected output ```python [0.016450975090265274, -0.5551009774208069, 0.39800673723220825, -0.6809228658676147, 2.053842782974243, -0.4712907075881958,...] ```