Run this model with HF Jobs
Run InvokeAI/ip_adapter_sd_image_encoder 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/InvokeAI/ip_adapter_sd_image_encoder. 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/InvokeAI/ip_adapter_sd_image_encoder 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 InvokeAI/ip_adapter_sd_image_encoder with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use InvokeAI/ip_adapter_sd_image_encoder with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, CLIPVisionModelWithProjection tokenizer = AutoTokenizer.from_pretrained("InvokeAI/ip_adapter_sd_image_encoder") model = CLIPVisionModelWithProjection.from_pretrained("InvokeAI/ip_adapter_sd_image_encoder", device_map="auto") - Notebooks
- Google Colab
- Kaggle
This is the Image Encoder required for SD1.5 IP Adapter model to function correctly. It is compatible with version 3.2+ of Invoke AI.
IP Adapter allows for users to input an Image Prompt, which is interpreted by the system, and passed in as conditioning for the image generation process.
The Community Edition of Invoke AI can be found at invoke.ai or on GitHub at https://github.com/invoke-ai/InvokeAI
Note: This model is a copy of https://huggingface.co/h94/IP-Adapter/tree/5c2eae7d8a9c3365ba4745f16b94eb0293e319d3/models/image_encoder. It is hosted here in a format compatibile with InvokeAI.
- Downloads last month
- 6,442
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, CLIPVisionModelWithProjection tokenizer = AutoTokenizer.from_pretrained("InvokeAI/ip_adapter_sd_image_encoder") model = CLIPVisionModelWithProjection.from_pretrained("InvokeAI/ip_adapter_sd_image_encoder", device_map="auto")