Instructions to use isatis/kw with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use isatis/kw with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("isatis/kw", 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
change path for imports
Browse files- handler.py +0 -8
handler.py
CHANGED
|
@@ -45,10 +45,6 @@ class EndpointHandler:
|
|
| 45 |
"weight_name": "isatis/kw/embeddings/EasyNegative.safetensors",
|
| 46 |
"token": "easynegative",
|
| 47 |
},
|
| 48 |
-
{
|
| 49 |
-
"weight_name": "isatis/kw/embeddings/EasyNegative.safetensors",
|
| 50 |
-
"token": "EasyNegative",
|
| 51 |
-
},
|
| 52 |
{"weight_name": "isatis/kw/embeddings/badhandv4.pt", "token": "badhandv4"},
|
| 53 |
{
|
| 54 |
"weight_name": "isatis/kw/embeddings/bad-artist-anime.pt",
|
|
@@ -59,10 +55,6 @@ class EndpointHandler:
|
|
| 59 |
"weight_name": "isatis/kw/embeddings/ng_deepnegative_v1_75t.pt",
|
| 60 |
"token": "ng_deepnegative_v1_75t",
|
| 61 |
},
|
| 62 |
-
{
|
| 63 |
-
"weight_name": "isatis/kw/embeddings/ng_deepnegative_v1_75t.pt",
|
| 64 |
-
"token": "NG_DeepNegative_V1_75T",
|
| 65 |
-
},
|
| 66 |
{"weight_name": "isatis/kw/embeddings/bad-hands-5.pt", "token": "bad-hands-5"},
|
| 67 |
]
|
| 68 |
|
|
|
|
| 45 |
"weight_name": "isatis/kw/embeddings/EasyNegative.safetensors",
|
| 46 |
"token": "easynegative",
|
| 47 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
| 48 |
{"weight_name": "isatis/kw/embeddings/badhandv4.pt", "token": "badhandv4"},
|
| 49 |
{
|
| 50 |
"weight_name": "isatis/kw/embeddings/bad-artist-anime.pt",
|
|
|
|
| 55 |
"weight_name": "isatis/kw/embeddings/ng_deepnegative_v1_75t.pt",
|
| 56 |
"token": "ng_deepnegative_v1_75t",
|
| 57 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
| 58 |
{"weight_name": "isatis/kw/embeddings/bad-hands-5.pt", "token": "bad-hands-5"},
|
| 59 |
]
|
| 60 |
|