Diffusers
English
stable-diffusion
stable-diffusion-diffusers
inpainting
art
artistic
anime
absolute-realism
Instructions to use diffusers/tools with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use diffusers/tools with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("diffusers/tools", 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 ·
b3f3336
1
Parent(s): e58dd86
up
Browse files- spaces_per_model_repo.py +9 -0
spaces_per_model_repo.py
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
from huggingface_hub import HfApi
|
| 3 |
+
import sys
|
| 4 |
+
|
| 5 |
+
api = HfApi()
|
| 6 |
+
model_id = str(sys.argv[1])
|
| 7 |
+
|
| 8 |
+
likes = sum(space.likes for space in HfApi().list_spaces(models=model_id))
|
| 9 |
+
print(f"{model_id}\t{likes}")
|