Instructions to use h94/IP-Adapter-FaceID with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use h94/IP-Adapter-FaceID with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("h94/IP-Adapter-FaceID", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps
- Draw Things
- DiffusionBee
Your document is outdated
#69
by oddball516 - opened
The ip model generate method has changed from purely **kwargs, your readme is misleading.
I had to call this method with positional parameters instead. Please update your documents accordingly.
images = ip_model.generate(
faceid_embeds,
prompt,
negative_prompt,
7,
4,
None,
40,
width=1024,
height=1024
).images