Run this model with HF Jobs
Run radames/blip_image_embeddings on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/radames/blip_image_embeddings. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/radames/blip_image_embeddings on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use radames/blip_image_embeddings with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use radames/blip_image_embeddings with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="radames/blip_image_embeddings")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("radames/blip_image_embeddings", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update pipeline.py
Browse files47 unmodified lines484950515253545547 unmodified lines# decode base64 image to PILimage = Image.open(BytesIO(base64.b64decode(inputs))).convert("RGB")elif isinstance(inputs, Image.Image):image = inputs.convert("RGB")image = self.transform(image).unsqueeze(0).to(device)47 unmodified lines484950515253545547 unmodified lines# decode base64 image to PILimage = Image.open(BytesIO(base64.b64decode(inputs))).convert("RGB")elif isinstance(inputs, "Image.Image"):image = Image.open(inputs).convert("RGB")image = self.transform(image).unsqueeze(0).to(device)
pipeline.py+2-2