Instructions to use Charles-Elena/InstantID with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Charles-Elena/InstantID with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("Charles-Elena/InstantID", 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
Commit ·
cdbbd99
1
Parent(s): b3dc187
load antelopev2 from ce
Browse files- handler.py +1 -1
handler.py
CHANGED
|
@@ -52,7 +52,7 @@ class EndpointHandler():
|
|
| 52 |
# providers=["CPUExecutionProvider"],
|
| 53 |
# )
|
| 54 |
self.app = FaceAnalysis(
|
| 55 |
-
name="
|
| 56 |
root="./",
|
| 57 |
providers=["CPUExecutionProvider"],
|
| 58 |
)
|
|
|
|
| 52 |
# providers=["CPUExecutionProvider"],
|
| 53 |
# )
|
| 54 |
self.app = FaceAnalysis(
|
| 55 |
+
name="antelopev2",
|
| 56 |
root="./",
|
| 57 |
providers=["CPUExecutionProvider"],
|
| 58 |
)
|